# HG changeset patch # User Richard M. Stallman # Date 850510255 0 # Node ID 6f45dc8d9d5614ca5d86c3b652431fc567b01db4 # Parent 91590d8f74c30cb34868eeb104fe444fe1996bcc (disabled-command-hook): Correctly keep the first paragraph of the command's documentation. diff -r 91590d8f74c3 -r 6f45dc8d9d56 lisp/novice.el --- a/lisp/novice.el Fri Dec 13 01:49:23 1996 +0000 +++ b/lisp/novice.el Fri Dec 13 20:50:55 1996 +0000 @@ -62,14 +62,15 @@ ;; Print any special message saying why the command is disabled. (if (stringp (get this-command 'disabled)) (princ (get this-command 'disabled))) - (princ (or (condition-case () - (documentation this-command) - (error nil)) - "<< not documented >>")) ;; Keep only the first paragraph of the documentation. (save-excursion (set-buffer "*Help*") - (goto-char (point-min)) + (goto-char (point-max)) + (save-excursion + (princ (or (condition-case () + (documentation this-command) + (error nil)) + "<< not documented >>"))) (if (search-forward "\n\n" nil t) (delete-region (1- (point)) (point-max)) (goto-char (point-max))))