unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RE: Emacs and Perl syntax compile
@ 2003-08-07 13:42 andrew.maguire
  0 siblings, 0 replies; 6+ messages in thread
From: andrew.maguire @ 2003-08-07 13:42 UTC (permalink / raw)


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
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.186.1060263856.29551.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.837.1059744293.8231.help-gnu-emacs@gnu.org>]
* Emacs and Perl syntax compile
@ 2003-08-01 12:17 Harter, Douglas
  0 siblings, 0 replies; 6+ messages in thread
From: Harter, Douglas @ 2003-08-01 12:17 UTC (permalink / raw)


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?



.


.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-08-21 12:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-07 13:42 Emacs and Perl syntax compile andrew.maguire
     [not found] <mailman.186.1060263856.29551.help-gnu-emacs@gnu.org>
2003-08-12 16:37 ` Kevin Rodgers
2003-08-12 16:58   ` Stefan Monnier
     [not found] <mailman.837.1059744293.8231.help-gnu-emacs@gnu.org>
2003-08-01 20:42 ` Kai Großjohann
2003-08-21 12:57   ` Janusz S. Bień
  -- strict thread matches above, loose matches on Subject: below --
2003-08-01 12:17 Harter, Douglas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).