help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: align.el: how to align space delimited text tables?


From: Benjamin Lewis
Subject: Re: align.el: how to align space delimited text tables?
Date: Thu, 19 Dec 2002 18:18:00 -0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (sparc-sun-solaris2.8)

On 20 Dec 2002, Miles Bader wrote:

> John Wiegley <johnw@gnu.org> writes:
>>> max 4096 cs 70 ap_mp 9 t 55% np 63 ap 63 max 6291.456 cs 70
>>> ap_mp 9 t 55% np 63 ap 63 max 8192 cs 70 ap_mp 9 t 55% np 63 ap 63
>> 
>>> Anyone have a good recipe for this?
>> 
>> Without a delimiter, there is no way for align.el to figure this
>> out.  It is only regexp based, not a true parser.
> 
> In this case, the delimiter would appear to be whitespace (e.g. [ \t]+);
> does align.el not support that well?

In this case, it appears that not all the spaces are to be considered as
delimiters.  You have to say something like "treat every other space as a
delimiter".  

-- 
Benjamin Lewis

Now is the time for all good men to come to.
                -- Walt Kelly
>From help-gnu-emacs-bounces@gnu.org  Thu Dec 19 21:30:11 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!quimby.gnus.org!not-for-mail
From: Edward Dodge <someone@g3.com>
Newsgroups: gnu.emacs.help
Date: 19 Dec 2002 20:24:56 -0600
Organization: Confabulation Consulting
Lines: 24
Message-ID: <m2n0n1zatj.fsf@g3.com>
References: <BA1C143A.202C%colinf@mac.com> <m2y96ob9tq.fsf@mac.com>
NNTP-Posting-Host: cdm-66-73-146-pine.cox-internet.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: quimby.gnus.org 1040350998 25369 66.233.73.146 (20 Dec 2002 02:23:18
        GMT)
X-Complaints-To: usenet@quimby.gnus.org
NNTP-Posting-Date: 20 Dec 2002 02:23:18 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
Xref: shelby.stanford.edu gnu.emacs.help:108320
To: help-gnu-emacs@gnu.org
Subject: Re: W3 on Mac OS X
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 20 Dec 2002 02:30:11 -0000

Colin Fallon <colinf@mac.com> writes:

> OK, I managed to track down the issue. W3 does not seem to cater for
> the Mac and I have at least partly fixed this by adding the
> following line to font-window-system-mappings in font.el
> 
> (mac      . (x-font-create-name x-font-create-object))
> 
> W3 now launches and seems to work.

Could you give a quick step-by-step reference for those of us who have
had far less success than you in making w3 work?

Something along the lines of Andrew Choi's how-to for downloading and
compiling EMACS from CVS:  

        http://members.shaw.ca/akochoi-emacs/

-- 
Edward Dodge

------------

/GNU Emacs 21.3.50.1 (powerpc-apple-darwin5.5) of 2002-10-11 on G3/
>From help-gnu-emacs-bounces@gnu.org  Thu Dec 19 22:15:11 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!newshub.sdsu.edu!news-xfer.cox.net!cox.net!novia!newscene!newscene!novia!novia!sequencer.newscene.com!not-for-mail
From: Galen Boyer <galenboyer@hotpop.com>
Newsgroups: gnu.emacs.help
Date: 19 Dec 2002 21:11:16 -0600
Lines: 9
Sender: boyerg@BOYER-GA
Message-ID: <uptrx2xre.fsf@standardandpoors.com>
Original-Sender: galenboyer@hotpop.com
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Xref: shelby.stanford.edu gnu.emacs.help:108321
To: help-gnu-emacs@gnu.org
Subject: Bug with PCL-CVS on windows?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 20 Dec 2002 03:15:11 -0000

I'm struggling with getting Emacs to talk to our cvs server.  I
find the *CVS* buffer in my buffer list.  I go to kill this
buffer and get a pop-up from windows stating something along the
lines of "Emacs has done something really bad and it is going to
die".  I try this again and yes, the exact same crash.

Emacs 21.2, W2K Pro.  CVS server is across the network.
-- 
Galen Boyer
>From help-gnu-emacs-bounces@gnu.org  Thu Dec 19 23:20:08 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!proxad.net!noos.fr!not-for-mail
Newsgroups: gnu.emacs.help
References: <uptrx2xre.fsf@standardandpoors.com>
Mail-Copies-To: nobody
From: Chmouel Boudjnah <chmouel@chmouel.com>
Date: Fri, 20 Dec 2002 05:15:30 +0100
Message-ID: <uof7hjpgd.fsf@chmouel.com>
Organization: "Chmouel Travels"
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2
 (i386-msvc-nt5.0.2195)
Cancel-Lock: sha1:taDjEdZfLTyQXkvW+8XASraEk6c=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 5
NNTP-Posting-Date: 20 Dec 2002 04:15:42 GMT
NNTP-Posting-Host: 81.66.120.150
X-Trace: 1040357742 news.noos.fr 6989 81.66.120.150
X-Complaints-To: abuse@noos.fr
Xref: shelby.stanford.edu gnu.emacs.help:108322
To: help-gnu-emacs@gnu.org
Subject: Re: Bug with PCL-CVS on windows?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 20 Dec 2002 04:20:08 -0000


What kind of windows ? it works for me here on w2k.

-- 
Chmouel -- http://www.chmouel.com/
>From help-gnu-emacs-bounces@gnu.org  Fri Dec 20 02:45:08 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!newsfeed.stueberl.de!news-FFM2.ecrc.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail
From: Bernd Wolter <mathae.wolter@gmx.de>
Newsgroups: gnu.emacs.help
Date: 20 Dec 2002 08:40:21 +0100
Organization: Not much
Lines: 26
Sender: WOLTER_85041@M33773PP
Message-ID: <ufzstm93u.fsf@gmx.de>
References: <7YsM9.400046$P31.145666@rwcrnsc53>
NNTP-Posting-Host: m33773pp.mchp.siemens.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.mch.sbs.de 1040370216 17846 139.23.242.230 (20 Dec 2002 07:43:36
        GMT)
X-Complaints-To: abuse@siemens.de
NNTP-Posting-Date: Fri, 20 Dec 2002 07:43:36 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
Xref: shelby.stanford.edu gnu.emacs.help:108323
To: help-gnu-emacs@gnu.org
Subject: Re: How to copy range to clip board
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 20 Dec 2002 07:45:08 -0000

"Siegfried Heintze" <siegfried@heintze.com> writes:

> I have a text file with the strings "begin resume" and "end resume" before
> and after my resume.
> 
> How do I copy this to the clipboard? Whenever I position my self at "begin
> resume", mark the current location with Ctrl+Space, and search for "end
> resume" I loose the beginning mark!
> 
> Surely there is a faster way that using PGDN and PGUP for this?
> 
>  Thanks
>      Siegfried
> 
> 

How do you start your search? When I do on the above text C-SPC on the
I in "I have" and then do C-s to start an incremental search and enter
"I copy" all the text from the beginning of your post to the end of
the fourth word in the second paragraph are marked by transient-mark
and can be either killed or saved. Perhaps you're only using the wrong
method to search?

HTH

Bernd
>From help-gnu-emacs-bounces@gnu.org  Fri Dec 20 03:35:09 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: John Wiegley <johnw@gnu.org>
Newsgroups: gnu.emacs.help
Date: Fri, 20 Dec 2002 01:34:50 -0700
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <87y96lxf4l.fsf@alice.dynodns.net>
References: <wc3bs3hsp9d.fsf@gamma.cis.ohio-state.edu>
        <8765tp4p4m.fsf@alice.dynodns.net>
        <mailman.448.1040347168.19936.help-gnu-emacs@gnu.org>
X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xF40524D0
X-Home-Page: http://www.gci-net.com/users/j/johnw/
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50
 (i686-pc-linux-gnu)
Cancel-Lock: sha1:LN0e0acxT3qRun9EH1K2WUBxhzo=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@supernews.com
Lines: 8
Xref: shelby.stanford.edu gnu.emacs.help:108324
To: help-gnu-emacs@gnu.org
Subject: Re: align.el:  how to align space delimited text tables?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 20 Dec 2002 08:35:09 -0000

>>>>> On Thu Dec 19, Miles writes:

> In this case, the delimiter would appear to be whitespace (e.g. [
> \t]+); does align.el not support that well?

Try passing that regexp to M-x align-regexp, see if it works...

John
>From vkirk@technology.serco.com Fri Dec 20 04:24:23 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
        id 18PJOJ-00074P-00
        for help-gnu-emacs@gnu.org; Fri, 20 Dec 2002 04:24:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
        id 18PJOH-00074E-00
        for help-gnu-emacs@gnu.org; Fri, 20 Dec 2002 04:24:22 -0500
Received: from ns.serco.com ([195.50.81.244] helo=pig.serco.com)
        by monty-python.gnu.org with esmtp (Exim 4.10.13)
        id 18PJNl-00070o-00
        for help-gnu-emacs@gnu.org; Fri, 20 Dec 2002 04:23:49 -0500
Received: from [10.22.1.247] (helo=mail1.technology.serco.com)
        by pig.serco.com with esmtp (Exim 4.10)
        id 18PJNj-0000jo-02; Fri, 20 Dec 2002 09:23:47 +0000
Received: by mail1.technology.serco.com with Internet Mail Service
        (5.5.2650.21)   id <Z1V83072>; Fri, 20 Dec 2002 09:29:50 -0000
Message-ID: <195F58F118C9D311B622009027DC812FFDD8CA@mail1.technology.serco.com>
From: Victor Kirk <vkirk@technology.serco.com>
To: 'Benjamin Rutt' <rutt+news@cis.ohio-state.edu>, help-gnu-emacs@gnu.org
Date: Fri, 20 Dec 2002 09:29:49 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
        charset="iso-8859-1"
X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/)
        *18PJNj-0000jo-02*.QzXOsWCUm6*
Subject: RE: align.el:  how to align space delimited text tables?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 20 Dec 2002 09:24:23 -0000


>    max 4096 cs  70 ap_mp  9 t  55% np 63 ap 63
>    max 6291.456 cs  70 ap_mp  9 t  55% np 63 ap 63
>    max 8192 cs  70 ap_mp  9 t  55% np 63 ap 63

> I'd like to align the fields to the following:

>    max 4096     cs  70 ap_mp  9 t  55% np 63 ap 63
>    max 6291.456 cs  70 ap_mp  9 t  55% np 63 ap 63
>    max 8192     cs  70 ap_mp  9 t  55% np 63 ap 63

> Anyone have a good recipe for this?

Try googling for ws-align.el by Matthias Helmling, this 
provides align-cols which does exactly what you want.

--
Vic
This message, including attachments, is intended only for the use by the
person(s) to whom it is addressed. It may contain information which is
privileged and confidential. Copying or use by anybody else is not
authorised. If you are not the intended recipient, please contact the sender
as soon as possible. The views expressed in this communication may not
necessarily be the views held by Serco Integrated Transport.



reply via email to

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