]> git.eshelyaron.com Git - emacs.git/commit
Add a Flymake backend for Perl
authorJoão Távora <joaotavora@gmail.com>
Fri, 3 Nov 2017 16:05:39 +0000 (16:05 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 5 Nov 2017 12:53:56 +0000 (12:53 +0000)
commit58e742b21dcd15f5a00381de3e7179210978ddc9
treea6359d9d9a9eab27bb75f9f0df67671576c22703
parent9dee764165f54bf93039b8301e0ef6dd143d6cf1
Add a Flymake backend for Perl

Define a simple backend in perl-mode.el, which cperl-mode.el also
uses.

* lisp/progmodes/cperl-mode.el (cperl-mode): Add to
flymake-diagnostic-functions.

* lisp/progmodes/flymake-proc.el
(flymake-proc-allowed-file-name-masks): Disable legacy backend
for perl files.

* lisp/progmodes/perl-mode.el (perl-flymake-command): New
defcustom.
(perl--flymake-proc): New buffer-local variable.
(perl-flymake): New function.
(perl-mode): Add to flymake-diagnostic-functions.
lisp/progmodes/cperl-mode.el
lisp/progmodes/flymake-proc.el
lisp/progmodes/perl-mode.el