[Top][All Lists]

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

Re: launching a perl script

From: XeCycle
Subject: Re: launching a perl script
Date: Thu, 22 Sep 2011 12:40:27 +0800
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Mart Zirnask <address@hidden> writes:

> Sorry for spamming,
> I actually provided the file name as "c:/" but this gave the
> same effect -- Emacs freezes.
> Thanks for help,
> Best,
> MZ
> 2011/9/21 Mart Zirnask <address@hidden>:
>> Hello everybody,
>> Probably an issue not very complicated: when I try to launch an
>> external Perl script ("") from Emacs, providing it with the
>> current buffer name, the editor freezes.
>> I'm on Windows and here's what I have in my .emacs:
>> --------------------------------------------------------------------
>> ;; Perl tagcloud
>> (global-set-key (kbd "<f2>")
>>                      (lambda ()
>>                        (interactive)
>>                        (shell-command (concat "perl
>> ~/.emacs.d/ " buffer-file-name))))
>> --------------------------------------------------------------------
>> I'm not a programmer and I started using Emacs for text editing only
>> recently. What's wrong?
>> Thanks for any help,
>> best,
>> Mart Zirnask,
>> from Estonia

Does that script reads any standard input?  To interact with a
subprocess, see comint-mode.

Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

Attachment: pgpdhj0hKHhds.pgp
Description: PGP signature

reply via email to

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