From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: perl-mode Date: Tue, 01 Mar 2005 11:50:40 -0700 Message-ID: <38jrs3F5pam4lU1@individual.net> References: <7jkvi51r.fsf@online.no> <38h9imF5mikh0U1@individual.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109703309 20050 80.91.229.2 (1 Mar 2005 18:55:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2005 18:55:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 19:55:09 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6CSb-0007X0-O8 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2005 19:51:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6ClD-0004ui-F1 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2005 14:10:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net 3iQQMD2cFO//s6rZxtCsowZlQQSIYQQ/hnGHRgCrNimT3Mdvg= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:128916 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24459 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24459 Dietmar Kehr wrote: > I can't see any difference in the work of `M-x compile' > if I use > > (add-hook 'perl-mode-hook > (lambda () > (set (make-local-variable 'compile-command) > (format "perl %s" > (file-name-nondirectory buffer-file-name))))) > > (I've wrote it in a file and have loaded it with 'load-file'). > > > In both cases (with and without it) after using > `M-x compile' emacs suggests 'make -k' > and behaves in the same way. You need to invoke perl-mode, either explicitly via M-x or implicitly by visiting a Perl file. -- Kevin Rodgers