[Top][All Lists]

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

help link goes to defgroup for function name

From: Drew Adams
Subject: help link goes to defgroup for function name
Date: Mon, 10 Sep 2007 09:39:38 -0700

Not a big bug, and requires user error to be seen.

emacs -Q

Put linum.el (or any other library) in load-path. FYI, there is no
function `linum' in this library (there is a function `linum-mode').

M-: (autoload "linum" "JJJJJJ" t nil) ; Mistake by the user: wrong name

M-x linum RET
"Autoloading failed to define function linum" (this is correct)

C-h f linum RET

linum is an interactive autoloaded Lisp function in `linum'.
[Arg list not available until function definition is loaded.]

Click the `linum' link. It takes you to linum.el at this defgroup
line, without any error message about there being no function
definition for `linum':

(defgroup linum nil
  "Show line numbers to the left of buffers"
  :group 'convenience)

No big deal, but this might confuse users a bit. Yes, this won't occur
without user error (using the wrong function name).

A better behavior when you click the link would be to say clearly that
there is no function definition of `linum' in the file. Silently going
to the linum defgroup could be confusing.

In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
 of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'

reply via email to

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