emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/help.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/help.el
Date: Thu, 23 Feb 2006 16:39:12 +0000

Index: emacs/lisp/help.el
diff -u emacs/lisp/help.el:1.300 emacs/lisp/help.el:1.301
--- emacs/lisp/help.el:1.300    Tue Feb 21 19:51:37 2006
+++ emacs/lisp/help.el  Thu Feb 23 16:39:12 2006
@@ -835,8 +835,9 @@
        ;; Document the major mode.
        (let ((mode mode-name))
          (with-current-buffer standard-output
-           (insert mode)
-           (add-text-properties (- (point) (length mode)) (point) '(face 
bold))))
+            (let ((start (point)))
+              (insert (format-mode-line mode))
+              (add-text-properties start (point) '(face bold)))))
        (princ " mode:\n")
        (princ (documentation major-mode)))
       (print-help-return-message))))
@@ -932,7 +933,7 @@
 ;;; Automatic resizing of temporary buffers.
 
 (defcustom temp-buffer-max-height (lambda (buffer) (/ (- (frame-height) 2) 2))
-  "*Maximum height of a window displaying a temporary buffer.
+  "Maximum height of a window displaying a temporary buffer.
 This is the maximum height (in text lines) which `resize-temp-buffer-window'
 will give to a window displaying a temporary buffer.
 It can also be a function which will be called with the object corresponding
@@ -971,9 +972,5 @@
         (funcall temp-buffer-max-height (current-buffer))
        temp-buffer-max-height))))
 
-;; Provide this for the sake of define-minor-mode which generates
-;; defcustoms which require 'help'.
-(provide 'help)
-
 ;; arch-tag: cf427352-27e9-49b7-9a6f-741ebab02423
 ;;; help.el ends here




reply via email to

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