diff options
| author | Chong Yidong | 2006-10-22 17:28:56 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-10-22 17:28:56 +0000 |
| commit | f453f5a8cd5be81f629ebddab3a2b98c95633497 (patch) | |
| tree | f73a008a40775dfac78ecf574e7e19f758a67e8f | |
| parent | 57d8692df7ccdf19339b4244edda29c309c65255 (diff) | |
| download | emacs-f453f5a8cd5be81f629ebddab3a2b98c95633497.tar.gz emacs-f453f5a8cd5be81f629ebddab3a2b98c95633497.zip | |
* progmodes/cperl-mode.el (cperl-mode): Don't assume
font-lock-multiline is auto-local (it's not).
(cperl-windowed-init): Ensure that cperl-font-lock-multiline is
initialized before calling cperl-init-faces.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 31 |
2 files changed, 24 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1f6b56acda0..25ed1f27bd9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2006-10-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * progmodes/cperl-mode.el (cperl-mode): Don't assume | ||
| 4 | font-lock-multiline is auto-local (it's not). | ||
| 5 | (cperl-windowed-init): Ensure that cperl-font-lock-multiline is | ||
| 6 | initialized before calling cperl-init-faces. | ||
| 7 | |||
| 1 | 2006-10-22 Nick Roberts <nickrob@snap.net.nz> | 8 | 2006-10-22 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 9 | ||
| 3 | * progmodes/gdb-ui.el (gdb-info-stack-custom): Don't try to give | 10 | * progmodes/gdb-ui.el (gdb-info-stack-custom): Don't try to give |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 3264e0e72f6..f31bbdcc162 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -1835,7 +1835,7 @@ or as help on variables `cperl-tips', `cperl-problems', | |||
| 1835 | (if (boundp 'font-lock-multiline) ; Newer font-lock; use its facilities | 1835 | (if (boundp 'font-lock-multiline) ; Newer font-lock; use its facilities |
| 1836 | (progn | 1836 | (progn |
| 1837 | (setq cperl-font-lock-multiline t) ; Not localized... | 1837 | (setq cperl-font-lock-multiline t) ; Not localized... |
| 1838 | (set 'font-lock-multiline t)) ; not present with old Emacs; auto-local | 1838 | (set (make-local-variable 'font-lock-multiline) t)) |
| 1839 | (make-local-variable 'font-lock-fontify-region-function) | 1839 | (make-local-variable 'font-lock-fontify-region-function) |
| 1840 | (set 'font-lock-fontify-region-function ; not present with old Emacs | 1840 | (set 'font-lock-fontify-region-function ; not present with old Emacs |
| 1841 | 'cperl-font-lock-fontify-region-function)) | 1841 | 'cperl-font-lock-fontify-region-function)) |
| @@ -5708,19 +5708,22 @@ indentation and initial hashes. Behaves usually outside of comment." | |||
| 5708 | 5708 | ||
| 5709 | (defun cperl-windowed-init () | 5709 | (defun cperl-windowed-init () |
| 5710 | "Initialization under windowed version." | 5710 | "Initialization under windowed version." |
| 5711 | (if (or (featurep 'ps-print) cperl-faces-init) | 5711 | (cond ((featurep 'ps-print) |
| 5712 | ;; Need to init anyway: | 5712 | (unless cperl-faces-init |
| 5713 | (or cperl-faces-init (cperl-init-faces)) | 5713 | (if (boundp 'font-lock-multiline) |
| 5714 | (add-hook 'font-lock-mode-hook | 5714 | (setq cperl-font-lock-multiline t)) |
| 5715 | (function | 5715 | (cperl-init-faces))) |
| 5716 | (lambda () | 5716 | ((not cperl-faces-init) |
| 5717 | (if (memq major-mode '(perl-mode cperl-mode)) | 5717 | (add-hook 'font-lock-mode-hook |
| 5718 | (progn | 5718 | (function |
| 5719 | (or cperl-faces-init (cperl-init-faces))))))) | 5719 | (lambda () |
| 5720 | (if (fboundp 'eval-after-load) | 5720 | (if (memq major-mode '(perl-mode cperl-mode)) |
| 5721 | (eval-after-load | 5721 | (progn |
| 5722 | "ps-print" | 5722 | (or cperl-faces-init (cperl-init-faces))))))) |
| 5723 | '(or cperl-faces-init (cperl-init-faces)))))) | 5723 | (if (fboundp 'eval-after-load) |
| 5724 | (eval-after-load | ||
| 5725 | "ps-print" | ||
| 5726 | '(or cperl-faces-init (cperl-init-faces))))))) | ||
| 5724 | 5727 | ||
| 5725 | (defvar cperl-font-lock-keywords-1 nil | 5728 | (defvar cperl-font-lock-keywords-1 nil |
| 5726 | "Additional expressions to highlight in Perl mode. Minimal set.") | 5729 | "Additional expressions to highlight in Perl mode. Minimal set.") |