[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort-columns fails on NetBSD
From: |
Mark Davies |
Subject: |
sort-columns fails on NetBSD |
Date: |
Thu, 2 Nov 2006 23:11:38 +1300 |
User-agent: |
KMail/1.9.5 |
The sort program on NetBSD objects if the field separator is set to
the same value as the record separator. (sort-columns) tries to set
it that way so that the whole line is in the same field. However the
sort-columns code already makes sure there are no tabs in the region
being worked on so we can have the same effect by setting the field
separator to tab.
Patch is below.
cheers
mark
--- lisp/sort.el.orig 2006-04-04 13:21:26.000000000 +1200
+++ lisp/sort.el
@@ -506,7 +506,7 @@ Use \\[untabify] to convert tabs to spac
;; 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")
+ (let ((sort-args (list (if reverse "-rt\t" "-t\t")
(format "-k1.%d,1.%d"
(1+ col-start)
(1+ col-end)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sort-columns fails on NetBSD,
Mark Davies <=