diff options
| author | Stefan Monnier | 2002-04-08 22:39:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-04-08 22:39:00 +0000 |
| commit | ce22dd539dd8153c52c47a63a81bcd87ab4c9849 (patch) | |
| tree | 560f56f265ab70fe5225cba117217d3eec1c79f3 | |
| parent | c247a72ca4dd42472a70546bb58f2ff1fe188605 (diff) | |
| download | emacs-ce22dd539dd8153c52c47a63a81bcd87ab4c9849.tar.gz emacs-ce22dd539dd8153c52c47a63a81bcd87ab4c9849.zip | |
(cperl-make-face, cperl-force-face):
Use defvar rather than defconst since it's meant to be settable.
(cperl-syntax-done-to): Don't hardcode 1 as (point-min).
(cperl-fix-line-spacing): Add missing \ in [ t].
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 293e236b913..3e5f1a983d2 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -84,13 +84,13 @@ | |||
| 84 | (cond ((fboundp 'make-face) | 84 | (cond ((fboundp 'make-face) |
| 85 | `(make-face (quote ,arg))) | 85 | `(make-face (quote ,arg))) |
| 86 | (t | 86 | (t |
| 87 | `(defconst ,arg (quote ,arg) ,descr)))) | 87 | `(defvar ,arg (quote ,arg) ,descr)))) |
| 88 | (defmacro cperl-force-face (arg descr) ; Takes unquoted arg | 88 | (defmacro cperl-force-face (arg descr) ; Takes unquoted arg |
| 89 | `(progn | 89 | `(progn |
| 90 | (or (cperl-is-face (quote ,arg)) | 90 | (or (cperl-is-face (quote ,arg)) |
| 91 | (cperl-make-face ,arg ,descr)) | 91 | (cperl-make-face ,arg ,descr)) |
| 92 | (or (boundp (quote ,arg)) ; We use unquoted variants too | 92 | (or (boundp (quote ,arg)) ; We use unquoted variants too |
| 93 | (defconst ,arg (quote ,arg) ,descr)))) | 93 | (defvar ,arg (quote ,arg) ,descr)))) |
| 94 | (if cperl-xemacs-p | 94 | (if cperl-xemacs-p |
| 95 | (defmacro cperl-etags-snarf-tag (file line) | 95 | (defmacro cperl-etags-snarf-tag (file line) |
| 96 | `(progn | 96 | `(progn |
| @@ -994,7 +994,7 @@ the faces: please specify bold, italic, underline, shadow and box.) | |||
| 994 | (defvar cperl-syntax-state nil) | 994 | (defvar cperl-syntax-state nil) |
| 995 | (defvar cperl-syntax-done-to nil) | 995 | (defvar cperl-syntax-done-to nil) |
| 996 | (defvar cperl-emacs-can-parse (> (length (save-excursion | 996 | (defvar cperl-emacs-can-parse (> (length (save-excursion |
| 997 | (parse-partial-sexp 1 1))) 9)) | 997 | (parse-partial-sexp (point) (point)))) 9)) |
| 998 | 998 | ||
| 999 | ;; Make customization possible "in reverse" | 999 | ;; Make customization possible "in reverse" |
| 1000 | (defsubst cperl-val (symbol &optional default hairy) | 1000 | (defsubst cperl-val (symbol &optional default hairy) |
| @@ -3997,7 +3997,7 @@ Returns some position at the last line." | |||
| 3997 | ;; Looking at: | 3997 | ;; Looking at: |
| 3998 | ;; } foreach my $var () { | 3998 | ;; } foreach my $var () { |
| 3999 | (if (looking-at | 3999 | (if (looking-at |
| 4000 | "[ \t]*\\(}[ \t]*\\)?\\<\\(\\els\\(e\\|if\\)\\|continue\\|if\\|unless\\|while\\|for\\(each\\)?\\(\\([ t]+\\(my\\|local\\|our\\)\\)?[ \t]*\\$[_a-zA-Z0-9]+\\)?\\|until\\)\\>\\([ \t]*(\\|[ \t\n]*{\\)\\|[ \t]*{") | 4000 | "[ \t]*\\(}[ \t]*\\)?\\<\\(\\els\\(e\\|if\\)\\|continue\\|if\\|unless\\|while\\|for\\(each\\)?\\(\\([ \t]+\\(my\\|local\\|our\\)\\)?[ \t]*\\$[_a-zA-Z0-9]+\\)?\\|until\\)\\>\\([ \t]*(\\|[ \t\n]*{\\)\\|[ \t]*{") |
| 4001 | (progn | 4001 | (progn |
| 4002 | (setq ml (match-beginning 8)) | 4002 | (setq ml (match-beginning 8)) |
| 4003 | (re-search-forward "[({]") | 4003 | (re-search-forward "[({]") |