From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: andrew.maguire@ps.ge.com Newsgroups: gmane.emacs.help Subject: RE: Emacs and Perl syntax compile Date: Thu, 7 Aug 2003 09:42:21 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6192367D59F8904CA553579EF41FEEA00184F4E3@ukcbgx01psge.geips.ge.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1060263948 10676 80.91.224.253 (7 Aug 2003 13:45:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2003 13:45:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 15:46:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19kl5m-0001Gh-00 for ; Thu, 07 Aug 2003 15:46:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19kl49-00014t-Nb for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2003 09:44:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19kl3u-00013R-T4 for help-gnu-emacs@gnu.org; Thu, 07 Aug 2003 09:44:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19kl3O-0000na-4j for help-gnu-emacs@gnu.org; Thu, 07 Aug 2003 09:44:13 -0400 Original-Received: from [216.35.73.165] (helo=ext-nj2gw-3.online-age.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19kl3N-0000n7-Pq for help-gnu-emacs@gnu.org; Thu, 07 Aug 2003 09:43:41 -0400 Original-Received: from int-nj2gw-4.online-age.net (int-nj2gw-4 [3.159.236.68]) by ext-nj2gw-3.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id h77DhdTV028943; Thu, 7 Aug 2003 09:43:39 -0400 (EDT) Original-Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) by int-nj2gw-4.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id h77DhbNB011491; Thu, 7 Aug 2003 09:43:38 -0400 (EDT) Original-Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Aug 2003 09:48:14 -0400 Original-To: help-gnu-emacs@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:11639 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11639 I do this to set up C-c C-c to do the compile: ;;Compilation mode for perl files (require 'compile) (add-to-list 'compilation-error-regexp-alist '(".* \\([-a-zA-Z._/]+\\) line \\([0-9]+\\)." 1 2)) (defun perl-compile (&optional prefix) "Compile perl file" (interactive "P") (let* ((include-path (if (eq window-system 'w32) "-I%SP%" "-I$SP")) (compile-command (concat "perl "include-path " -cw " (buffer-file-name))) (compilation-read-command prefix)) (call-interactively 'compile))) (require 'perl-mode) (require 'cperl-mode) (define-key perl-mode-map "\C-c\C-c" 'perl-compile) (define-key cperl-mode-map "\C-c\C-c" 'perl-compile) > -----Original Message----- > From: Harter, Douglas [mailto:dharter@state.pa.us] > Sent: 01 August 2003 13:17 > To: Help Emacs (E-mail) > Subject: Emacs and Perl syntax compile > > > I am creating a good many Perl scripts on a Unix using emacs. > > Can someone tell me what I need in my .emacs to do Perl > syntax compiles from > emacs and allow compilation mode to handle the errors? > > > > . > > > . > > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >