Thanks for the patches, Michael.
>>>> "ME" == Michael Ernst
<mernst(a)cs.washington.edu> writes:
ME> find-function-noselect blindly strips the last four characters
ME> from the filename; but the filename might end only in ".el",
ME> or in no extension.
Actually it only does/did this for the recorded names of compiled
functions, but you're right and I will fix this in the next version.
However in XEmacs-21-beta with all function definitions now recorded
in `load-history' the current version of that code is probably already
redundant?
ME> (The real problem is that evaluating a defadvice form (via
ME> eval-expression or similar) for a compiled file changes the
ME> return value of (compiled-function-annotation def) to
ME> "loadup.el".)
It does? I am aware of problems of using `find-function' with adviced
functions. It is mentioned in the to-do list: however I don't have a
good solution for this. Again maybe this problem has also been solved
in XEmacs-21-beta by `load-history'?
ME> The second chunk of this patch improves the error message when
ME> the definition can't be found in the particular file where it
ME> was searched for.
Thanks. This will be in the next version.
--
Jens-Ulrik Holger Petersen <
http://www.kurims.kyoto-u.ac.jp/~petersen/>
Research Institute for Mathematical Sciences, Kyoto University