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

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

Re: Inserting output from a program into a buffer


From: Tim Johnson
Subject: Re: Inserting output from a program into a buffer
Date: Sat, 20 Feb 2010 22:45:08 -0600
User-agent: slrn/0.9.9p1 (Linux)

On 2010-02-21, Tim Landscheidt <tim@tim-landscheidt.de> wrote:
> Tim Johnson <tim@johnsons-web.com> wrote:
>
>> emacs 22.3.1 on slack 13.0/32-bit
>
>> Consider the following text:
>
>> [[10:00 11:27][14:43 14:57]] ;; ^output here
>
>> Given that I have selected:
>> "[[10:00 11:27][14:43 14:57]]"
>> as a region, I would like to send that region to an external application
>> and insert the output as indicated.
>
>> I've recently started using emacs again after several years, and have in
>> the past written quite a few elisp functions and keybindings for my own
>> use. The external application has already been written, I've used it
>> with vim and "r !<shell command>" for years.
>
>> References to relevant and related elisp functions and scripts would
>> probably be sufficient, however, if someone has done this already - why
>> re-invent the wheel?
>
> Not exactly what you require, but
> C-u M-x shell-command-on-region RET will /replace/ the re-
> gion with the output of the shell-command operated on the
> original region.
  Hi Tim: 
        Thanks for the reply. I had found that command, but unfortunately
        replacing the region is the last thing I want to do. The end game is a
        "time card", as you might guess from the data structure and the data
        structure needs to remain intact.
        Thanks Again!
-- 
Tim 
tim@johnsons-web.com
http://www.akwebsoft.com


reply via email to

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