From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jrwats Newsgroups: gmane.emacs.help Subject: Fancier align-regexp? Date: Mon, 12 Jan 2009 21:25:49 -0800 (PST) Organization: http://groups.google.com Message-ID: <3e3b99bf-a2ad-43a8-8a56-de3f47c0455a@f40g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231825356 10013 80.91.229.12 (13 Jan 2009 05:42:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2009 05:42:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 06:43:34 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LMc3p-0000b6-Ru for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 06:43:34 +0100 Original-Received: from localhost ([127.0.0.1]:45120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMc2Z-00060N-II for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 00:42:15 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f40g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 67.170.74.92 Original-X-Trace: posting.google.com 1231824349 12283 127.0.0.1 (13 Jan 2009 05:25:49 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 13 Jan 2009 05:25:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f40g2000pri.googlegroups.com; posting-host=67.170.74.92; posting-account=bFjqRgoAAAA1g2eFs8HouoaeO5EHoWR2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165959 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61286 Input: Lorem ipsum dolor: sit amet consectetur: adipiscing elit. Etiam sed purus: Vestibulum ante: ipsum primis in: faucibus You'll have to paste the following into emacs I'm afraid (or set your browser to monospace font?) to get this to look 1/2 decent. I want (the colons aligned with the words preceding them "following" the colon to the aligned point) Internet IP Address: 67.170.74.92 Subnet Mask: 255.255.252.0 Default Gateway: 67.170.72.1 DNS1: 68.87.69.146 DNS2: 68.87.85.98 DNS3: 68.87.78.130 calling align-regexp on ":" doesn't work obviously and puts the spaces between the words preceding the colon: rem ipsum dolor : sit amet consectetur : adipiscing elit. Etiam sed purus : Vestibulum ante : ipsum primis in : faucibus I know align-regexp has a fancier method to use with a prefix arg, but I'm not smart enough for it. Is it possible to accomplish this with align-regexp? A macro?