[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31139: [PATCH] Document Narrow indicator in describe-mode
From: |
Michael Hendricks |
Subject: |
bug#31139: [PATCH] Document Narrow indicator in describe-mode |
Date: |
Thu, 12 Apr 2018 11:12:08 -0600 |
* lisp/help.el (describe-mode): document narrowing, if active
---
lisp/help.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/help.el b/lisp/help.el
index 8e6604d2db..92a2f52d2d 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -908,6 +908,8 @@ documentation for the major and minor modes of that buffer."
(push (list fmode pretty-minor-mode
(format-mode-line (assq mode minor-mode-alist)))
minor-modes)))))
+ (when (or (> (point-min) 1) (<= (point-max) (buffer-size)))
+ (push '(narrow-to-region "Narrow" " Narrow") minor-modes))
(setq minor-modes
(sort minor-modes
(lambda (a b) (string-lessp (cadr a) (cadr b)))))
--
2.14.2
- bug#31139: [PATCH] Document Narrow indicator in describe-mode,
Michael Hendricks <=