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: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/help.el
Date: Sat, 12 Jan 2002 15:53:27 -0500

Index: emacs/lisp/help.el
diff -c emacs/lisp/help.el:1.238 emacs/lisp/help.el:1.239
*** emacs/lisp/help.el:1.238    Thu Dec 27 21:11:59 2001
--- emacs/lisp/help.el  Sat Jan 12 15:53:27 2002
***************
*** 501,545 ****
  \(listed in `minor-mode-alist') must also be a function whose documentation
  describes the minor mode."
    (interactive)
!   (when buffer (set-buffer buffer))
!   (help-setup-xref (list #'describe-mode (current-buffer)) (interactive-p))
    (with-output-to-temp-buffer (help-buffer)
!     (when minor-mode-alist
!       (princ "The major mode is described first.
  For minor modes, see following pages.\n\n"))
!     (princ mode-name)
!     (princ " mode:\n")
!     (princ (documentation major-mode))
!     (let ((minor-modes minor-mode-alist))
!       (while minor-modes
!       (let* ((minor-mode (car (car minor-modes)))
!              (indicator (car (cdr (car minor-modes)))))
!         ;; Document a minor mode if it is listed in minor-mode-alist,
!         ;; bound locally in this buffer, non-nil, and has a function
!         ;; definition.
!         (if (and (boundp minor-mode)
!                  (symbol-value minor-mode)
!                  (fboundp minor-mode))
!             (let ((pretty-minor-mode minor-mode))
!               (if (string-match "\\(-minor\\)?-mode\\'"
!                                 (symbol-name minor-mode))
!                   (setq pretty-minor-mode
!                         (capitalize
!                          (substring (symbol-name minor-mode)
!                                     0 (match-beginning 0)))))
!               (while (and indicator (symbolp indicator)
!                           (boundp indicator)
!                           (not (eq indicator (symbol-value indicator))))
!                 (setq indicator (symbol-value indicator)))
!               (princ "\n\f\n")
!               (princ (format "%s minor mode (%s):\n"
!                              pretty-minor-mode
!                              (if indicator
!                                  (format "indicator%s" indicator)
!                                "no indicator")))
!               (princ (documentation minor-mode)))))
!       (setq minor-modes (cdr minor-modes))))
!     (print-help-return-message)))
  
  
  ;;; Automatic resizing of temporary buffers.
--- 501,549 ----
  \(listed in `minor-mode-alist') must also be a function whose documentation
  describes the minor mode."
    (interactive)
!   (help-setup-xref (list #'describe-mode (or buffer (current-buffer)))
!                  (interactive-p))
!   ;; For the sake of help-do-xref and help-xref-go-back,
!   ;; don't switch buffers before calling `help-buffer'.
    (with-output-to-temp-buffer (help-buffer)
!     (save-excursion
!       (when buffer (set-buffer buffer))
!       (when minor-mode-alist
!       (princ "The major mode is described first.
  For minor modes, see following pages.\n\n"))
!       (princ mode-name)
!       (princ " mode:\n")
!       (princ (documentation major-mode))
!       (let ((minor-modes minor-mode-alist))
!       (while minor-modes
!         (let* ((minor-mode (car (car minor-modes)))
!                (indicator (car (cdr (car minor-modes)))))
!           ;; Document a minor mode if it is listed in minor-mode-alist,
!           ;; bound locally in this buffer, non-nil, and has a function
!           ;; definition.
!           (if (and (boundp minor-mode)
!                    (symbol-value minor-mode)
!                    (fboundp minor-mode))
!               (let ((pretty-minor-mode minor-mode))
!                 (if (string-match "\\(-minor\\)?-mode\\'"
!                                   (symbol-name minor-mode))
!                     (setq pretty-minor-mode
!                           (capitalize
!                            (substring (symbol-name minor-mode)
!                                       0 (match-beginning 0)))))
!                 (while (and indicator (symbolp indicator)
!                             (boundp indicator)
!                             (not (eq indicator (symbol-value indicator))))
!                   (setq indicator (symbol-value indicator)))
!                 (princ "\n\f\n")
!                 (princ (format "%s minor mode (%s):\n"
!                                pretty-minor-mode
!                                (if indicator
!                                    (format "indicator%s" indicator)
!                                  "no indicator")))
!                 (princ (documentation minor-mode)))))
!         (setq minor-modes (cdr minor-modes))))
!       (print-help-return-message))))
  
  
  ;;; Automatic resizing of temporary buffers.



reply via email to

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