From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: launching a perl script Date: Thu, 22 Sep 2011 07:46:50 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174a064046b93a04ad88c367 X-Trace: dough.gmane.org 1316702823 9852 80.91.229.12 (22 Sep 2011 14:47:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 14:47:03 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Mart Zirnask Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 16:46:59 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 1R6kYE-0000R7-W6 for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 16:46:59 +0200 Original-Received: from localhost ([::1]:43674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6kYE-0000i3-EA for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 10:46:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6kY8-0000ds-Mm for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 10:46:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6kY7-0005dl-Rk for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 10:46:52 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:51736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6kY7-0005XV-M3 for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 10:46:51 -0400 Original-Received: by mail-fx0-f41.google.com with SMTP id 17so3236848fxh.0 for ; Thu, 22 Sep 2011 07:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SmqXm9LyoPFnbhDwVNdufpjFRqiFi+IXHHDJRMfFp5M=; b=hpdbydgl9IaDM6K6lwKW9CpN9iPQ/qftgatyzuqnddn4LI1DWTo/zoYFGp6wm4Jql7 +4p1PIFq7m7foESzpG+lZdJtaiLk+ppljZiZpjiotOwHpIxGcC9nwCglpgR1iX6TQZb4 eTHHFFZ+iXltxNl/Qr1FjXHNWLKVRRqBurFr4= Original-Received: by 10.223.65.141 with SMTP id j13mr3145506fai.101.1316702810191; Thu, 22 Sep 2011 07:46:50 -0700 (PDT) Original-Received: by 10.223.86.75 with HTTP; Thu, 22 Sep 2011 07:46:50 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:82294 Archived-At: --0015174a064046b93a04ad88c367 Content-Type: text/plain; charset=ISO-8859-1 Emacs isn't so much "frozen" as it is "waiting for the perl script to finish". If you just want to run the script in the background, put a " &" at the end of the command string. On Wednesday, September 21, 2011, Mart Zirnask wrote: > 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 > > -- -PJ --0015174a064046b93a04ad88c367 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Emacs isn't so much "frozen" as it is "waiting for the p= erl script to finish". =A0If you just want to run the script in the ba= ckground, put a " &" at the end of the command string.
On Wednesday, September 21, 2011, Mart Zirnask <martzirnask@gmail.com> wrote:
> Hello everybo= dy,
>
> Probably an issue not very complicated: when I try to l= aunch an
> external Perl script ("tags#.pl") from Emacs, providing it w= ith the
> current buffer name, the editor freezes.
>
> I&= #39;m on Windows and here's what I have in my .emacs:
>
> -= -------------------------------------------------------------------
> ;; Perl tagcloud
> (global-set-key (kbd "<f2>")<= br>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(lambda ()
> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(interactive)
> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(shell-command (concat "perl > ~/.emacs.d/tags#.pl " buffer-file-name))))
> --------------= ------------------------------------------------------
>
> I= 9;m not a programmer and I started using Emacs for text editing only
> recently. What's wrong?
>
> Thanks for any help,
&g= t; best,
> Mart Zirnask,
> from Estonia
>
>

= --

-PJ
--0015174a064046b93a04ad88c367--