unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31139: [PATCH] Document Narrow indicator in describe-mode
@ 2018-04-12 17:12 Michael Hendricks
  2018-04-12 23:36 ` Noam Postavsky
  2018-04-19 12:16 ` Noam Postavsky
  0 siblings, 2 replies; 9+ messages in thread
From: Michael Hendricks @ 2018-04-12 17:12 UTC (permalink / raw)
  To: 31139; +Cc: Michael Hendricks

* 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





^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-05-05  9:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-12 17:12 bug#31139: [PATCH] Document Narrow indicator in describe-mode Michael Hendricks
2018-04-12 23:36 ` Noam Postavsky
2018-04-17 18:59   ` Michael Hendricks
2018-04-19 12:16 ` Noam Postavsky
2018-04-19 13:08   ` Eli Zaretskii
2018-04-19 14:38   ` Michael Hendricks
2018-04-19 14:44     ` Eli Zaretskii
2018-04-24 15:00   ` Michael Hendricks
2018-05-05  9:44     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).