all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: compile perl file, specify current buffer, using help effectively
Date: Wed, 03 May 2006 11:04:46 -0600	[thread overview]
Message-ID: <e3ans1$dh6$1@sea.gmane.org> (raw)
In-Reply-To: <87zmhz4ck7.fsf@robotron.kosmorama>

David Hansen wrote:
> 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.

`C-h a' is for commands.  `C-h f' is for functions.  `C-h v' is for
variables.

`C-h v compile-command' has a C mode example that David has converted
to Perl mode for you:

> 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.

See compilation-error-regexp-alist:

     ;; Perl -w:
     ;; syntax error at automake line 922, near "':'"
     ;; Perl debugging traces
     ;; store::odrecall('File_A', 'x2') called at store.pm line 90
     (".* at \\([^ \n]+\\) line \\([0-9]+\\)[,.\n]" 1 2)

-- 
Kevin

  reply	other threads:[~2006-05-03 17:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-03  2:04 compile perl file, specify current buffer, using help effectively David Schneider
2006-05-03  8:40 ` Eli Zaretskii
2006-05-03 10:39 ` David Hansen
2006-05-03 17:04   ` Kevin Rodgers [this message]
     [not found] <mailman.1251.1146630892.9609.help-gnu-emacs@gnu.org>
2006-05-03  5:12 ` Stefan Monnier
2006-05-03  5:26 ` Burton Samograd
2006-05-03 13:54 ` yoorobot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e3ans1$dh6$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.