running a perl/shell script from within xemacs

running a perl/shell script from within xemacs

Post by iyo.. » Tue, 02 May 2000 04:00:00



Hi

using XEmacs 21.1.9  I want to make my XEmacs do :

When I select a word and then press a key (for example C-Q),
I want it to run a perl script I have with the marked word as the
parameter to the script.

That script is something like the TAGS of emacs and gives output of a
file and line or offset. So I want emacs to open that file at the
desired place.

How should I do it?  Is there something like it, so I can take as an
example ?

Thanks for any help

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

running a perl/shell script from within xemacs

Post by stromlun » Wed, 03 May 2000 04:00:00


Quote:>When I select a word and then press a key (for example C-Q),
>I want it to run a perl script I have with the marked word
>as the parameter to the script.
>... and gives output of a file and line or offset.
>So I want emacs to open that file at the desired place.
>How should I do it? Is there something like it, so I can
>take as an example ?

Sounds just like what `compile' does.  You can use the
functionallity of compile mode by setting a few variables
for the command program, options, etc...  Check out the
function `igrep' which uses compile mode to do its magic.

Have fun ...

--
Rodney Stromlund
http://www.libranet.com/petition.html   Sign It!
--
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

 
 
 

1. perl within shell script: indentation problem?

I'm having problems with indentation in perl-mode (GNU Emacs 20.2.2).
The perl script looks something like:

------------------------------------------------
#!/bin/sh
if [ -f ~/.runrc ]; then
  . ~/.runrc
fi
#

    if 0;
#
#! -*-perl-*- -w
#
...
(perl code)
...
------------------------------------------------

It seems that the short shell script part at the beginning messes things
up. Any idea?

Thanks

Clemens Vonrhein

--

****************************************************************

*                                                              *
*         Global Phasing Ltd.                                  *
*         Sheraton House                                       *
*         Castle Park                                          *
*         Cambridge CB3 0AX                                    *
*         UK                                                   *
*    Tel: +44-(0)1223-353033                                   *
*    Fax: +44-(0)1223-366889                                   *
****************************************************************

2. Comparsion between WinNT and Netware server

3. Can solaris shell script detect it is within XEMACS?

4. Someone with Blizzard PPC 240

5. running shell script when shell started

6. awe64 or live?

7. XEmacs 20.4 / Unix: How to run script when shell opened

8. Morphing tools Bild1->Bild2

9. Can't run perl script from function

10. Running perl scripts through emacs

11. perl script won't run correctly inside emacs

12. Can unix shell script detect shell is in XEmacs?

13. pwd problem in shell run within emacs