summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2017-10-25 16:57:43 +0100
committerNoam Postavsky <npostavs@gmail.com>2017-11-11 10:46:43 -0500
commit9533d76b0b5bfe2df1cccc55a92c2545b1de4e2b (patch)
tree982edc3b077a981498d3381f4515b276625ebe68
parentd63c9a96f51fd4d723dc66a6cc0a8a0a04c8ce6c (diff)
downloademacs-9533d76b0b5bfe2df1cccc55a92c2545b1de4e2b.tar.gz
Keep Man sections in natural order (bug#28998)
* lisp/man.el (Man-build-section-alist): Reverse sections.
-rw-r--r--lisp/man.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 7a892c6e88a..f7b1609c929 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)."