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
e7cd761f
Commit
e7cd761f
authored
Nov 03, 2006
by
Ramprasad B
Browse files
Installed [mark@mcs.vuw.ac.nz: sort-columns fails on NetBSD] patch
parent
67cb63df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/sort.el
lisp/sort.el
+4
-1
No files found.
lisp/sort.el
View file @
e7cd761f
...
@@ -506,7 +506,10 @@ Use \\[untabify] to convert tabs to spaces before sorting."
...
@@ -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
;; Do not use it if there are any non-font-lock properties
;; in the region, since the sort utility would lose the
;; in the region, since the sort utility would lose the
;; properties.
;; 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"
(
format
"-k1.%d,1.%d"
(
1+
col-start
)
(
1+
col-start
)
(
1+
col-end
)))))
(
1+
col-end
)))))
...
...
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