From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: launching a perl script Date: Thu, 22 Sep 2011 10:05:37 +0200 Message-ID: <4E7AEC51.5020303@easy-emacs.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1316678757 30973 80.91.229.12 (22 Sep 2011 08:05:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 08:05:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 10:05:54 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6eI4-00055U-TN for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 10:05:53 +0200 Original-Received: from localhost ([::1]:32888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6eI4-0003yg-Ah for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 04:05:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6eI0-0003yW-Qz for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 04:05:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6eHz-0006rU-Gh for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 04:05:48 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:50079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6eHz-0006r2-5H for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 04:05:47 -0400 Original-Received: from [192.168.178.27] (brln-4dbc7ba5.pool.mediaWays.net [77.188.123.165]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MCT7F-1Qy5iT1QiP-0097h9; Thu, 22 Sep 2011 10:05:44 +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 In-Reply-To: X-Provags-ID: V02:K0:yzbmd4I+zLMYznmfbmhREqG9gv7waSn4Tgou70/4LMM cEiOnimv34Xov6Ob/B4EWf4MMcKmEe2/U4oL5QLnJFdHzHamqH TJxbX1/o70TRWR+vvKOwerM84FqZqZ0VAS+dxs06PdmjSsDATs ADV8pYiRjBQg4Vrk1NSahVbtj3GWfroUnNwBI1cxzClzZ01qE0 1SW4yYKIKonYUlSMLY7+pIRVPpaImUC88cJuFd5Zkm9CAcRgZK 63y1lJ0Xrc6qzrrfCfDRuKYAxIPH2fH03R3NTyuUCNnK+oOPiL cnolN6+rrw5Q99g6M/rFTNDjrdBeeCsUg3dKim+zyn7JCg3pzW 9wsJTFw1wA2f6mVyglD0GRWpHtKZkrwbb0CakTuSS X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82288 Archived-At: 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 "") > (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