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

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

Re: launching a perl script


From: Andreas Röhler
Subject: Re: launching a perl script
Date: Thu, 22 Sep 2011 10:05:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.22) Gecko/20110907 SUSE/3.1.14 Thunderbird/3.1.14

Am 21.09.2011 14:54, schrieb Mart Zirnask:
Hello everybody,

Probably an issue not very complicated: when I try to launch an
external Perl script ("tags#.pl") 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/tags#.pl " 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



Hi,

assume the file is locked by your buffer, so if perl trys to change, it fails.

BTW open Emacs and try to access the file, see what happens.

If you want to change the current content, shell-command-on-region should DTRT.

HTH,

Andreas



reply via email to

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