patrick@COS.COM (Patrick Steranka) (08/18/87)
Has anyone else experienced a problem with the function
"describe-function". The "user-seen" error was after running
describe-function, the following message would appear in
the mini-buffer.
Wrong number of arguments: (lambda nil "Move the cursor to the next window on t
Well, I tracked it down to the function print-help-return-message
in the file help.el. (oh, btw I am running GNU-EMACS 18.47 on a SUN-3).
I understand what the code is supposed to do, but I don't know why
it causes the above error. AND I don't know what the above error
means. I get around the problem by re-"DEFUN"ing the function to do nothing.
Please mail responses to me. Thanks.
The code for print-help-return-message is shown below:
;;;
;;; START OF ROUTINE
;;;
(defun print-help-return-message (&optional function)
"Display or return message saying how to restore windows after help command.
Computes a message and applies the argument FUNCTION to it.
If FUNCTION is nil, applies `message' to it, thus printing it."
(and (not (get-buffer-window standard-output))
(funcall (or function 'message)
(substitute-command-keys
(if (one-window-p t)
"Type \\[delete-other-windows] to remove help window."
"Type \\[switch-to-buffer-other-window] RET to restore old c\ontents of help window.")))))
;;;
;;; END OF ROUTINE
;;;
patrick (Patrick Steranka @ Corporation for Open Systems)
-- patrick@cos.com
-- {seismo!sundc, hadron, hqda-ai}!cos!patrick