emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: sort-columns fails on NetBSD]


From: Richard Stallman
Subject: address@hidden: sort-columns fails on NetBSD]
Date: Fri, 03 Nov 2006 02:07:26 -0500

Would someone please install this tiny change,
plus a comment explaining why?
Please also thank him, then ack.

------- Start of forwarded message -------
From: Mark Davies <address@hidden>
To: address@hidden
Date: Thu, 2 Nov 2006 23:11:38 +1300
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Disposition: inline
Subject: sort-columns fails on NetBSD
X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO 
        autolearn=failed version=3.0.4

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)))))


_______________________________________________
bug-gnu-emacs mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]