Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!hqda-ai!cos!patrick From: patrick@COS.COM (Patrick Steranka) Newsgroups: comp.emacs Subject: help.el, Function=print-help-return-message Message-ID: <404@cos.COM> Date: Mon, 17-Aug-87 18:58:02 EDT Article-I.D.: cos.404 Posted: Mon Aug 17 18:58:02 1987 Date-Received: Wed, 19-Aug-87 01:29:06 EDT Organization: Corporation for Open Systems, McLean, VA Lines: 34 Keywords: lambda question 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