diff options
| author | John Paul Wallington | 2002-08-06 17:21:19 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2002-08-06 17:21:19 +0000 |
| commit | dd66897fd53e8261a0b3ee0efde5fa64c6e4c164 (patch) | |
| tree | f77ac427a3065909a7c039480430a02b1f3fae6b | |
| parent | ee58da1b00b21168ee84730abdccf50bb768935b (diff) | |
| download | emacs-dd66897fd53e8261a0b3ee0efde5fa64c6e4c164.tar.gz emacs-dd66897fd53e8261a0b3ee0efde5fa64c6e4c164.zip | |
(describe-function-1): Skip arglist note if
function's definition is a keymap.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/help-fns.el | 16 |
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0445f3e7517..20c2c57a46d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-08-06 John Paul Wallington <jpw@shootybangbang.com> | ||
| 2 | |||
| 3 | * help-fns.el (describe-function-1): Skip arglist note if | ||
| 4 | function's definition is a keymap. | ||
| 5 | |||
| 1 | 2002-08-06 Sam Steingold <sds@gnu.org> | 6 | 2002-08-06 Sam Steingold <sds@gnu.org> |
| 2 | 7 | ||
| 3 | * calendar/diary-lib.el (diary-mail-entries): Use `compose-mail' | 8 | * calendar/diary-lib.el (diary-mail-entries): Use `compose-mail' |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index cdbc13f6781..ba543070bc9 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -300,13 +300,15 @@ Return (USAGE . DOC) or nil if there's no usage info." | |||
| 300 | (let* ((arglist (help-function-arglist def)) | 300 | (let* ((arglist (help-function-arglist def)) |
| 301 | (doc (documentation function)) | 301 | (doc (documentation function)) |
| 302 | usage) | 302 | usage) |
| 303 | (princ (cond | 303 | ;; If definition is a keymap, skip arglist note. |
| 304 | ((listp arglist) (help-make-usage function arglist)) | 304 | (unless (keymapp def) |
| 305 | ((stringp arglist) arglist) | 305 | (princ (cond |
| 306 | ((and doc (subrp def) (setq usage (help-split-fundoc doc def))) | 306 | ((listp arglist) (help-make-usage function arglist)) |
| 307 | (setq doc (cdr usage)) (car usage)) | 307 | ((stringp arglist) arglist) |
| 308 | (t "[Missing arglist. Please make a bug report.]"))) | 308 | ((and doc (subrp def) (setq usage (help-split-fundoc doc def))) |
| 309 | (terpri) | 309 | (setq doc (cdr usage)) (car usage)) |
| 310 | (t "[Missing arglist. Please make a bug report.]"))) | ||
| 311 | (terpri)) | ||
| 310 | (let ((obsolete (and | 312 | (let ((obsolete (and |
| 311 | ;; function might be a lambda construct. | 313 | ;; function might be a lambda construct. |
| 312 | (symbolp function) | 314 | (symbolp function) |