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

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

Re: problem in pasting from an X-application into emacs 21


From: Ian Zimmerman
Subject: Re: problem in pasting from an X-application into emacs 21
Date: 20 Dec 2002 08:32:31 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Howard> The behavior I find is most strange.  I did a little
Howard> experiment with both emacs 19 and emacs 21 running side by
Howard> side.  The emacs 19 behaves completely as expected but the
Howard> emacs 21 exhibits the problem mentioned in my original
Howard> message.

Yes, I have seen this as well.  In Emacs 20, too.

Here's my original complaint:

http://lists.debian.org/debian-emacsen/2002/debian-emacsen-200208/msg00008.html

-- 
Ian Zimmerman, Oakland, California, U.S.A. 
if (sizeof(signed) > sizeof(unsigned) + 4) { delete this; }
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
>From help-gnu-emacs-bounces@gnu.org  Fri Dec 20 12:40:08 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail
From: Kevin Rodgers <kevin.rodgers@ihs.com>
Newsgroups: gnu.emacs.help
Date: Fri, 20 Dec 2002 10:36:00 -0700
Lines: 30
Message-ID: <3E035500.6090200@ihs.com>
References: <wc3bs3hsp9d.fsf@gamma.cis.ohio-state.edu>
NNTP-Posting-Host: 170.207.51.80
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1040405751 3346859 170.207.51.80 (16 [82742])
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US;
        rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2
X-Accept-Language: en-us
Xref: shelby.stanford.edu gnu.emacs.help:108345
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 17:40:08 -0000

Benjamin Rutt wrote:

> I have a buffer in text-mode that I'd like to align using align.el.
> Here are the contents:
> 
>     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?


1. Mark the region (C-x h if the text is the entire contents of the buffer,
    or the buffer has already been narrowed to the text).

2. Replace the region:

        C-u M-|
        awk '{printf("%s %-8s %s  %s %s  %s %s %s %s %s %s %s\n", C-q C-j
                     $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)}' RET

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>


reply via email to

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