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:
51a77cb
)
(sort-columns): Use Posix arg syntax for `sort'.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 21 Feb 2006 19:52:28 +0000
(19:52 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 21 Feb 2006 19:52:28 +0000
(19:52 +0000)
lisp/sort.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/sort.el
b/lisp/sort.el
index
174a853
..
5183bf6
100644
(file)
--- a/
lisp/sort.el
+++ b/
lisp/sort.el
@@
-499,8
+499,9
@@
Use \\[untabify] to convert tabs to spaces before sorting."
;; in the region, since the sort utility would lose the
;; properties.
(let ((sort-args (list (if reverse "-rt\n" "-t\n")
- (concat "+0." (int-to-string col-start))
- (concat "-0." (int-to-string col-end)))))
+ (format "-k1.%d,1.%d"
+ (1+ col-start)
+ (1+ col-end)))))
(when sort-fold-case
(push "-f" sort-args))
(apply #'call-process-region beg1 end1 "sort" t t nil sort-args))