From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: compile perl file, specify current buffer, using help effectively Date: Wed, 03 May 2006 12:39:36 +0200 Organization: disorganized Message-ID: <87zmhz4ck7.fsf@robotron.kosmorama> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146653611 25708 80.91.229.2 (3 May 2006 10:53:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 10:53:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 03 12:53:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbEz1-0001I9-JJ for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 12:53:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbEz1-0005TD-74 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 06:53:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbEyr-0005SG-Iz for help-gnu-emacs@gnu.org; Wed, 03 May 2006 06:53:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbEyq-0005QO-41 for help-gnu-emacs@gnu.org; Wed, 03 May 2006 06:53:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbEyq-0005QL-0i for help-gnu-emacs@gnu.org; Wed, 03 May 2006 06:53:16 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FbEzC-0006kr-7U for help-gnu-emacs@gnu.org; Wed, 03 May 2006 06:53:38 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FbEyQ-0001A4-PU for help-gnu-emacs@gnu.org; Wed, 03 May 2006 12:52:51 +0200 Original-Received: from e178007041.adsl.alicedsl.de ([85.178.7.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 May 2006 12:52:50 +0200 Original-Received: from david.hansen by e178007041.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 May 2006 12:52:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178007041.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:hPLNGdPNdBStxX5gkL0QxSJlWjY= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34768 Archived-At: On Tue, 2 May 2006 22:04:56 -0400 David Schneider wrote: > I am trying to use emacs as an IDE for perl development. I think it > would be useful to have a compile command that runs perl on the > current buffer I am editing. The compile command defaults to make -k. > I want to change it to perl xx where xx is the name of the current > buffer - is there some variable or special syntax I can use to get the > current filename? More important then the answer, is how do I figure > this out from the help. I have been using C-h a to try to search the > help. This gives me lists of commands or variables which may be > related - but I frequently find my questions are still unanswered. Not tested: (add-hook 'perl-mode-hook (lambda () (set (make-local-variable 'compile-command) (concat "perl -w " (buffer-file-name))))) Anyway i doub't that the compile mode will recognize the perl errors and warnings. David