From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: [Roland.Winkler@physik.uni-erlangen.de: align fails] Date: Mon, 19 Dec 2005 15:37:53 -0800 (PST) Message-ID: <42697.128.165.123.132.1135035473.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20051219153753_42532" X-Trace: sea.gmane.org 1135035516 25681 80.91.229.2 (19 Dec 2005 23:38:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 23:38:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 20 00:38:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoUa2-0008Q4-QN for ged-emacs-devel@m.gmane.org; Tue, 20 Dec 2005 00:38:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoUau-0007dx-MH for ged-emacs-devel@m.gmane.org; Mon, 19 Dec 2005 18:39:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoUak-0007dh-Kx for emacs-devel@gnu.org; Mon, 19 Dec 2005 18:38:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoUaj-0007dV-6L for emacs-devel@gnu.org; Mon, 19 Dec 2005 18:38:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoUaj-0007dS-0Y for emacs-devel@gnu.org; Mon, 19 Dec 2005 18:38:53 -0500 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoUdi-0002Uu-9t; Mon, 19 Dec 2005 18:41:58 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id jBJNbsnf014585; Mon, 19 Dec 2005 16:37:54 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id jBJNbrKL004158; Mon, 19 Dec 2005 16:37:53 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11/8.12.11) with ESMTP id jBJNbrat005585; Mon, 19 Dec 2005 16:37:53 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11/8.12.11/Submit) id jBJNbrle005583; Mon, 19 Dec 2005 15:37:53 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.132 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Mon, 19 Dec 2005 15:37:53 -0800 (PST) In-Reply-To: Original-To: rms@gnu.org User-Agent: SquirrelMail/1.4.4-2 X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48065 Archived-At: ------=_20051219153753_42532 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit > Set mark and point to beginning and end of the buffer. > Execute C-u M-x align. This gives me > > Fred (123) 456-7890 > Alice (123) 456-7890 > Mary-Anne (123) 456-7890 > Joe (123) 456-7890 This is actually quite simple: align.el thinks that any whitespace character is a column separator -- including newline. Then Fred's space and all the newlines end up getting expanded to match one of the original newlines. This is addressed by the attached trivial patch to align.el to make only space and tab separate columns in its align-a-whitespace-separated-table mode. ChangeLog entry also attached; please install if there's no trouble with it. Davis Herring -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping. ------=_20051219153753_42532 Content-Type: application/octet-stream; name="align.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="align.patch" ZGlmZiAtTmFjciBjdnMvYWxpZ24uZWwgbmV3L2FsaWduLmVsCioqKiBjdnMvYWxpZ24uZWwJMjAw NS0xMi0xOSAxNjoyNzo0OS4wMDAwMDAwMDAgLTA3MDAKLS0tIG5ldy9hbGlnbi5lbAkyMDA1LTEy LTE5IDE2OjI4OjQyLjAwMDAwMDAwMCAtMDcwMAoqKioqKioqKioqKioqKioKKioqIDU1OSw1NjUg KioqKgogICAgICA7OyBXaXRoIGEgbnVtZXJpYyBwcmVmaXggYXJndW1lbnQsIG9yIEMtdSwgc3Bh Y2UgZGVsaW1pdGVkIHRleHQKICAgICAgOzsgdGFibGVzIHdpbGwgYmUgYWxpZ25lZC4KICAgICAg KHRleHQtY29sdW1uCiEgICAgICAocmVnZXhwICAgLiAiXFwoXlxcfFxcUy1cXClcXChcXHMtK1xc KVxcKFxcUy1cXHwkXFwpIikKICAgICAgIChncm91cCAgICAuIDIpCiAgICAgICAobW9kZXMgICAg LiBhbGlnbi10ZXh0LW1vZGVzKQogICAgICAgKHJlcGVhdCAgIC4gdCkKLS0tIDU1OSw1NjUgLS0t LQogICAgICA7OyBXaXRoIGEgbnVtZXJpYyBwcmVmaXggYXJndW1lbnQsIG9yIEMtdSwgc3BhY2Ug ZGVsaW1pdGVkIHRleHQKICAgICAgOzsgdGFibGVzIHdpbGwgYmUgYWxpZ25lZC4KICAgICAgKHRl eHQtY29sdW1uCiEgICAgICAocmVnZXhwICAgLiAiXFwoXlxcfFxcUy1cXClcXChbIFx0XStcXClc XChcXFMtXFx8JFxcKSIpCiAgICAgICAoZ3JvdXAgICAgLiAyKQogICAgICAgKG1vZGVzICAgIC4g YWxpZ24tdGV4dC1tb2RlcykKICAgICAgIChyZXBlYXQgICAuIHQpCg== ------=_20051219153753_42532 Content-Type: application/octet-stream; name="ChangeLog" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ChangeLog" MjAwNS0xMi0xOSAgRGF2aXMgSGVycmluZyAgPGhlcnJpbmdAbGFubC5nb3Y+CgoJKiBhbGlnbi5l bCAoYWxpZ24tcnVsZXMtbGlzdCk6IFVzZSBbIFx0XSBpbnN0ZWFkIG9mIFxzLSBmb3IgY29sdW1u CglzZXBhcmF0b3JzIGluIHRleHQgbW9kZS4K ------=_20051219153753_42532 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------=_20051219153753_42532--