diff options
| author | Juanma Barranquero | 2003-03-19 22:25:11 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2003-03-19 22:25:11 +0000 |
| commit | 0b51ba8a5a0a2b46a433bfd06161af5cf2e31145 (patch) | |
| tree | c8da2ed98caf4205924cbe3b47f2b596c0424b27 | |
| parent | 87e391a9863dc11585b13f34b9b6fd342e2b66bb (diff) | |
| download | emacs-0b51ba8a5a0a2b46a433bfd06161af5cf2e31145.tar.gz emacs-0b51ba8a5a0a2b46a433bfd06161af5cf2e31145.zip | |
(makefile-font-lock-syntactic-keywords): New variable.
(makefile-mode): Use it for value of font-lock-syntactic-keywords.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 11 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c3c0db08048..47fbc67b565 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,8 +1,14 @@ | |||
| 1 | 2003-03-19 Simon Marshall <simon@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/make-mode.el (makefile-font-lock-syntactic-keywords): | ||
| 4 | New variable. | ||
| 5 | (makefile-mode): Use it for value of font-lock-syntactic-keywords. | ||
| 6 | |||
| 1 | 2003-03-19 John Paul Wallington <jpw@gnu.org> | 7 | 2003-03-19 John Paul Wallington <jpw@gnu.org> |
| 2 | 8 | ||
| 3 | * cus-theme.el (custom-theme-create): Add autoload cookie. | 9 | * cus-theme.el (custom-theme-create): Add autoload cookie. |
| 4 | 10 | ||
| 5 | 2003-03-19 Kenichi Handa <handa@etlken2> | 11 | 2003-03-19 Kenichi Handa <handa@m17n.org> |
| 6 | 12 | ||
| 7 | * dired.el (dired-get-filename): Pay attention to the case that | 13 | * dired.el (dired-get-filename): Pay attention to the case that |
| 8 | `read' returns a unibyte string. Don't encode the file name by | 14 | `read' returns a unibyte string. Don't encode the file name by |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 4ffdfdef011..f44bca814cc 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -300,6 +300,11 @@ not be enclosed in { } or ( )." | |||
| 300 | ;; They can make a tab fail to be effective. | 300 | ;; They can make a tab fail to be effective. |
| 301 | '("^\\( +\\)\t" 1 makefile-space-face))) | 301 | '("^\\( +\\)\t" 1 makefile-space-face))) |
| 302 | 302 | ||
| 303 | (defconst makefile-font-lock-syntactic-keywords | ||
| 304 | (list | ||
| 305 | ;; Change the syntax of a quoted newline so that it does not end a comment. | ||
| 306 | '("\\\\\n" 0 " "))) | ||
| 307 | |||
| 303 | (defvar makefile-imenu-generic-expression | 308 | (defvar makefile-imenu-generic-expression |
| 304 | (list | 309 | (list |
| 305 | (list "Dependencies" makefile-dependency-regex 1) | 310 | (list "Dependencies" makefile-dependency-regex 1) |
| @@ -588,7 +593,11 @@ Makefile mode can be configured by modifying the following variables: | |||
| 588 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down | 593 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down |
| 589 | ;; near the end of a large buffer, due to parse-partial-sexp's | 594 | ;; near the end of a large buffer, due to parse-partial-sexp's |
| 590 | ;; trying to parse all the way till the beginning of buffer. | 595 | ;; trying to parse all the way till the beginning of buffer. |
| 591 | '(makefile-font-lock-keywords nil nil ((?$ . ".")) backward-paragraph)) | 596 | '(makefile-font-lock-keywords |
| 597 | nil nil | ||
| 598 | ((?$ . ".")) | ||
| 599 | backward-paragraph | ||
| 600 | (font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords))) | ||
| 592 | 601 | ||
| 593 | ;; Add-log. | 602 | ;; Add-log. |
| 594 | (make-local-variable 'add-log-current-defun-function) | 603 | (make-local-variable 'add-log-current-defun-function) |