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:
67cb63d
)
Installed [mark@mcs.vuw.ac.nz: sort-columns fails on NetBSD] patch
author
Ramprasad B
<ramprasad_i82@yahoo.com>
Fri, 3 Nov 2006 14:33:38 +0000
(14:33 +0000)
committer
Ramprasad B
<ramprasad_i82@yahoo.com>
Fri, 3 Nov 2006 14:33:38 +0000
(14:33 +0000)
lisp/sort.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/sort.el
b/lisp/sort.el
index
359067a
..
10426fa
100644
(file)
--- a/
lisp/sort.el
+++ b/
lisp/sort.el
@@
-506,7
+506,10
@@
Use \\[untabify] to convert tabs to spaces before sorting."
;; Do not use it if there are any non-font-lock properties
;; in the region, since the sort utility would lose the
;; properties.
- (let ((sort-args (list (if reverse "-rt\n" "-t\n")
+ ;; Set the field separator to tab to have the same effect as
+ ;; sort-columns which makes sure there are no tabs in the region
+ ;; worked.
+ (let ((sort-args (list (if reverse "-rt\t" "-t\t")
(format "-k1.%d,1.%d"
(1+ col-start)
(1+ col-end)))))