bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#669: 23.0.60; defalias is not taken into account by C-h k


From: Drew Adams
Subject: bug#669: 23.0.60; defalias is not taken into account by C-h k
Date: Thu, 14 Aug 2008 08:33:22 -0700

>  > That is, for (defun foo () "..." 5) we don't just print 
> `foo' and let you click
>  > that link to find out where it is defined. We also print 
> "is an interactive
>  > compiled Lisp function in `titi.el'". That same format 
> would be preferable for
>  > the defalias case also: "`toto' is an alias for `foo' 
> which is an interactive
>  > compiled Lisp function in `titi.el'".
> 
> Doing C-h f RET rplaca RET gets me a Help buffer with the line
> 
>    rplaca is an alias for `setcar' in `.../subr.el'.
> 
> Clicking on
> 
> - the "setcar" link gets me to the Help buffer for `setcar',
> 
> - the ".../subr.el" link gets me to the location of the defalias.
> 
> I suppose we shouldn't change that behavior.

I'll leave it up to you - whatever you think is appropriate. Thanks for working
on this.

The general idea, from my point of view, is to immediately give the user the
most info s?he might need, provided that doesn't obscure the most important info
s?he is after (the doc string, in this case).

The main thing I wanted to point out was that `C-h f' was describing the wrong
things and attributing those faulty descriptions to the right things. It should
say that the alias is an alias and then describe the function for which it is an
alias. If it can also let you know where the alias is defined and where the
function it points to is defined, so much the better.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]