diff options
| author | Glenn Morris | 2007-08-04 02:31:05 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-08-04 02:31:05 +0000 |
| commit | eb5c9d4f9a96c9089c3c48111fb0652d84ff187e (patch) | |
| tree | a866a0dfdeb409001d4bf2dbab435d57eb2bad35 | |
| parent | 4c969f97e32159e63191ff848c3f9ea82426473c (diff) | |
| download | emacs-eb5c9d4f9a96c9089c3c48111fb0652d84ff187e.tar.gz emacs-eb5c9d4f9a96c9089c3c48111fb0652d84ff187e.zip | |
(cperl-compilation-error-regexp-alist): Remove duplicate defvar
preventing initialization.
(cperl-mode): Fix compilation-error-regexp-alist-alist setting.
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index d1dc0e875c4..3badfed5d4f 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -1497,9 +1497,16 @@ the last)." | |||
| 1497 | (defvar cperl-use-major-mode 'cperl-mode) | 1497 | (defvar cperl-use-major-mode 'cperl-mode) |
| 1498 | (defvar cperl-font-lock-multiline-start nil) | 1498 | (defvar cperl-font-lock-multiline-start nil) |
| 1499 | (defvar cperl-font-lock-multiline nil) | 1499 | (defvar cperl-font-lock-multiline nil) |
| 1500 | (defvar cperl-compilation-error-regexp-alist nil) | ||
| 1501 | (defvar cperl-font-locking nil) | 1500 | (defvar cperl-font-locking nil) |
| 1502 | 1501 | ||
| 1502 | ;; NB as it stands the code in cperl-mode assumes this only has one | ||
| 1503 | ;; element. If Xemacs 19 support were dropped, this could all be simplified. | ||
| 1504 | (defvar cperl-compilation-error-regexp-alist | ||
| 1505 | ;; This look like a paranoiac regexp: could anybody find a better one? (which WORKS). | ||
| 1506 | '(("^[^\n]* \\(file\\|at\\) \\([^ \t\n]+\\) [^\n]*line \\([0-9]+\\)[\\., \n]" | ||
| 1507 | 2 3)) | ||
| 1508 | "Alist that specifies how to match errors in perl output.") | ||
| 1509 | |||
| 1503 | ;;;###autoload | 1510 | ;;;###autoload |
| 1504 | (defun cperl-mode () | 1511 | (defun cperl-mode () |
| 1505 | "Major mode for editing Perl code. | 1512 | "Major mode for editing Perl code. |
| @@ -1786,7 +1793,7 @@ or as help on variables `cperl-tips', `cperl-problems', | |||
| 1786 | (cond ((boundp 'compilation-error-regexp-alist-alist);; xemacs 20.x | 1793 | (cond ((boundp 'compilation-error-regexp-alist-alist);; xemacs 20.x |
| 1787 | (make-local-variable 'compilation-error-regexp-alist-alist) | 1794 | (make-local-variable 'compilation-error-regexp-alist-alist) |
| 1788 | (set 'compilation-error-regexp-alist-alist | 1795 | (set 'compilation-error-regexp-alist-alist |
| 1789 | (cons (cons 'cperl cperl-compilation-error-regexp-alist) | 1796 | (cons (cons 'cperl (car cperl-compilation-error-regexp-alist)) |
| 1790 | (symbol-value 'compilation-error-regexp-alist-alist))) | 1797 | (symbol-value 'compilation-error-regexp-alist-alist))) |
| 1791 | (if (fboundp 'compilation-build-compilation-error-regexp-alist) | 1798 | (if (fboundp 'compilation-build-compilation-error-regexp-alist) |
| 1792 | (let ((f 'compilation-build-compilation-error-regexp-alist)) | 1799 | (let ((f 'compilation-build-compilation-error-regexp-alist)) |
| @@ -5702,13 +5709,6 @@ indentation and initial hashes. Behaves usually outside of comment." | |||
| 5702 | (t 5))) ; should not happen | 5709 | (t 5))) ; should not happen |
| 5703 | 5710 | ||
| 5704 | 5711 | ||
| 5705 | (defvar cperl-compilation-error-regexp-alist | ||
| 5706 | ;; This look like a paranoiac regexp: could anybody find a better one? (which WORKS). | ||
| 5707 | '(("^[^\n]* \\(file\\|at\\) \\([^ \t\n]+\\) [^\n]*line \\([0-9]+\\)[\\., \n]" | ||
| 5708 | 2 3)) | ||
| 5709 | "Alist that specifies how to match errors in perl output.") | ||
| 5710 | |||
| 5711 | |||
| 5712 | (defun cperl-windowed-init () | 5712 | (defun cperl-windowed-init () |
| 5713 | "Initialization under windowed version." | 5713 | "Initialization under windowed version." |
| 5714 | (cond ((featurep 'ps-print) | 5714 | (cond ((featurep 'ps-print) |