diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-04-08 22:39:00 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-04-08 22:39:00 +0000 |
commit | ce22dd539dd8153c52c47a63a81bcd87ab4c9849 (patch) | |
tree | 560f56f265ab70fe5225cba117217d3eec1c79f3 /lisp/progmodes/cperl-mode.el | |
parent | c247a72ca4dd42472a70546bb58f2ff1fe188605 (diff) | |
download | emacs-ce22dd539dd8153c52c47a63a81bcd87ab4c9849.tar.gz |
(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].
Diffstat (limited to 'lisp/progmodes/cperl-mode.el')
-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 @@ (cond ((fboundp 'make-face) `(make-face (quote ,arg))) (t - `(defconst ,arg (quote ,arg) ,descr)))) + `(defvar ,arg (quote ,arg) ,descr)))) (defmacro cperl-force-face (arg descr) ; Takes unquoted arg `(progn (or (cperl-is-face (quote ,arg)) (cperl-make-face ,arg ,descr)) (or (boundp (quote ,arg)) ; We use unquoted variants too - (defconst ,arg (quote ,arg) ,descr)))) + (defvar ,arg (quote ,arg) ,descr)))) (if cperl-xemacs-p (defmacro cperl-etags-snarf-tag (file line) `(progn @@ -994,7 +994,7 @@ the faces: please specify bold, italic, underline, shadow and box.) (defvar cperl-syntax-state nil) (defvar cperl-syntax-done-to nil) (defvar cperl-emacs-can-parse (> (length (save-excursion - (parse-partial-sexp 1 1))) 9)) + (parse-partial-sexp (point) (point)))) 9)) ;; Make customization possible "in reverse" (defsubst cperl-val (symbol &optional default hairy) @@ -3997,7 +3997,7 @@ Returns some position at the last line." ;; Looking at: ;; } foreach my $var () { (if (looking-at - "[ \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]*{") + "[ \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]*{") (progn (setq ml (match-beginning 8)) (re-search-forward "[({]") |