Mercurial > emacs
comparison lisp/help.el @ 30621:06d02e3657f0
(describe-mode): Test mini-mode symbol for being
bound before testing its value for being nil.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 06 Aug 2000 12:09:31 +0000 |
parents | 7507f083dcc5 |
children | 2bd60ea8076f |
comparison
equal
deleted
inserted
replaced
30620:1a808437b658 | 30621:06d02e3657f0 |
---|---|
355 (let* ((minor-mode (car (car minor-modes))) | 355 (let* ((minor-mode (car (car minor-modes))) |
356 (indicator (car (cdr (car minor-modes))))) | 356 (indicator (car (cdr (car minor-modes))))) |
357 ;; Document a minor mode if it is listed in minor-mode-alist, | 357 ;; Document a minor mode if it is listed in minor-mode-alist, |
358 ;; bound locally in this buffer, non-nil, and has a function | 358 ;; bound locally in this buffer, non-nil, and has a function |
359 ;; definition. | 359 ;; definition. |
360 (if (and (symbol-value minor-mode) | 360 (if (and (boundp minor-mode) |
361 (symbol-value minor-mode) | |
361 (fboundp minor-mode)) | 362 (fboundp minor-mode)) |
362 (let ((pretty-minor-mode minor-mode)) | 363 (let ((pretty-minor-mode minor-mode)) |
363 (if (string-match "-mode$" (symbol-name minor-mode)) | 364 (if (string-match "-mode$" (symbol-name minor-mode)) |
364 (setq pretty-minor-mode | 365 (setq pretty-minor-mode |
365 (capitalize | 366 (capitalize |