HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e782065
)
(define-ibuffer-sorter): Define the sorter to reverse sorting order if
author
John Paul Wallington
<jpw@pobox.com>
Thu, 1 May 2008 01:19:26 +0000
(
01:19
+0000)
committer
John Paul Wallington
<jpw@pobox.com>
Thu, 1 May 2008 01:19:26 +0000
(
01:19
+0000)
last sorting mode was the sorter's.
lisp/ibuf-macs.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/ibuf-macs.el
b/lisp/ibuf-macs.el
index
d3a4da5
..
947c2b7
100644
(file)
--- a/
lisp/ibuf-macs.el
+++ b/
lisp/ibuf-macs.el
@@
-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))