[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 9533d76: Keep Man sections in natural order (bug#
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] emacs-26 9533d76: Keep Man sections in natural order (bug#28998) |
Date: |
Sat, 11 Nov 2017 10:47:18 -0500 (EST) |
branch: emacs-26
commit 9533d76b0b5bfe2df1cccc55a92c2545b1de4e2b
Author: Basil L. Contovounesios <address@hidden>
Commit: Noam Postavsky <address@hidden>
Keep Man sections in natural order (bug#28998)
* lisp/man.el (Man-build-section-alist): Reverse sections.
---
lisp/man.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/man.el b/lisp/man.el
index 7a892c6..f7b1609 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1522,7 +1522,8 @@ The following key bindings are currently in effect in the
buffer:
(let ((section (match-string 1)))
(unless (member section Man--sections)
(push section Man--sections)))
- (forward-line 1))))
+ (forward-line 1)))
+ (setq Man--sections (nreverse Man--sections)))
(defsubst Man-build-references-alist ()
"Build the list of references (in the SEE ALSO section)."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 9533d76: Keep Man sections in natural order (bug#28998),
Noam Postavsky <=