Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e3b71439
Commit
e3b71439
authored
May 01, 2008
by
John Paul Wallington
Browse files
(define-ibuffer-sorter): Define the sorter to reverse sorting order if
last sorting mode was the sorter's.
parent
e7820654
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/ibuf-macs.el
lisp/ibuf-macs.el
+4
-1
No files found.
lisp/ibuf-macs.el
View file @
e3b71439
...
...
@@ -150,7 +150,10 @@ value if and only if `a' is \"less than\" `b'.
,
(
or
documentation
"No :documentation specified for this sorting method."
)
(
interactive
)
(
setq
ibuffer-sorting-mode
',name
)
(
ibuffer-redisplay
t
))
(
when
(
eq
ibuffer-sorting-mode
ibuffer-last-sorting-mode
)
(
setq
ibuffer-sorting-reversep
(
not
ibuffer-sorting-reversep
)))
(
ibuffer-redisplay
t
)
(
setq
ibuffer-last-sorting-mode
',name
))
(
push
(
list
',name
,
description
#'
(
lambda
(
a
b
)
,@
body
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment