summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2006-02-21 19:52:28 +0000
committerRichard M. Stallman <rms@gnu.org>2006-02-21 19:52:28 +0000
commit12549864fd5acfca87b8d070ae4d18cf8a9db9e6 (patch)
treeb7a2bc6d14b921a3c154f7eafc7fec4087f27fb2
parent51a77cba218dd537eab24a5ecdf290fddff903d7 (diff)
downloademacs-12549864fd5acfca87b8d070ae4d18cf8a9db9e6.tar.gz
(sort-columns): Use Posix arg syntax for `sort'.
-rw-r--r--lisp/sort.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/sort.el b/lisp/sort.el
index 174a8531786..5183bf65afa 100644
--- 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))