Hrvoje Niksic <hniksic(a)xemacs.org> wrote:
I'm not sure how the future package is supposed to work, but I
like
the Lisp code that is universally loaded not to load the "advice"
package. I don't use "advice" myself, and it has the nasty habit of
loading the byte-compiler, which well-behaved code shouldn't do.
Okay, that is precisely what I was concerned about.
To preserve the docstring, you can put the `defun' inside
`lexical-let', but then the arglist becomes "&rest --cl-rest--", which
sucks. I'd use this:
(fset 'pos-visible-in-window-p
`(lambda (&optional pos window partially)
"...docstring goes here..."
(funcall ,(symbol-function 'pos-visible-in-window-p)
pos window)))
The only problem with this is that this lambda remains uncompiled.
But since no macro expansions are involved, that's probably OK anyway.
Yes, I like that better than my version. Thanks, Hrvoje!
I'll look into fixing `lexical-let' to generate more pleasant
function
arguments.
That would be great.
--
Jerry James
http://www.ittc.ku.edu/~james/