aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-03-04 16:52:00 +0000
committerRichard M. Stallman2004-03-04 16:52:00 +0000
commite6bdd6abe3210c26eb7d8436b040bdee6daa34c0 (patch)
tree12328350a90b6a0a5794d2c7fa77b8500f0396f1
parentcf44b9b79750d55a88e90a88eac4fcd135f5d753 (diff)
downloademacs-e6bdd6abe3210c26eb7d8436b040bdee6daa34c0.tar.gz
emacs-e6bdd6abe3210c26eb7d8436b040bdee6daa34c0.zip
(lisp-font-lock-keywords-2):
Turn off the CL with-... and do-... general patterns. Instead, recognize several specific with... and do... constructs.
-rw-r--r--lisp/font-lock.el20
1 files changed, 16 insertions, 4 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 4deacb9e87f..ad69cdd960c 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1890,10 +1890,13 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
1890 "condition-case" "track-mouse" 1890 "condition-case" "track-mouse"
1891 "eval-after-load" "eval-and-compile" "eval-when-compile" 1891 "eval-after-load" "eval-and-compile" "eval-when-compile"
1892 "eval-when" 1892 "eval-when"
1893 "with-category-table"
1893 "with-current-buffer" "with-electric-help" 1894 "with-current-buffer" "with-electric-help"
1895 "with-local-quit" "with-no-warnings"
1894 "with-output-to-string" "with-output-to-temp-buffer" 1896 "with-output-to-string" "with-output-to-temp-buffer"
1897 "with-selected-window" "with-syntax-table"
1895 "with-temp-buffer" "with-temp-file" "with-temp-message" 1898 "with-temp-buffer" "with-temp-file" "with-temp-message"
1896 "with-timeout") t) 1899 "with-timeout" "with-timeout-handler") t)
1897 "\\>") 1900 "\\>")
1898 1) 1901 1)
1899 ;; 1902 ;;
@@ -1908,7 +1911,13 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
1908 "proclaim" "declaim" "declare" "symbol-macrolet" 1911 "proclaim" "declaim" "declare" "symbol-macrolet"
1909 "lexical-let" "lexical-let*" "flet" "labels" "compiler-let" 1912 "lexical-let" "lexical-let*" "flet" "labels" "compiler-let"
1910 "destructuring-bind" "macrolet" "tagbody" "block" 1913 "destructuring-bind" "macrolet" "tagbody" "block"
1911 "return" "return-from") t) 1914 "return" "return-from"
1915 "with-accessors" "with-compilation-unit"
1916 "with-condition-restarts" "with-hash-table-iterator"
1917 "with-input-from-string" "with-open-file"
1918 "with-open-stream" "with-output-to-string"
1919 "with-package-iterator" "with-simple-restart"
1920 "with-slots" "with-standard-io-syntax") t)
1912 "\\>") 1921 "\\>")
1913 1) 1922 1)
1914 ;; 1923 ;;
@@ -1933,8 +1942,11 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
1933 ;; ELisp and CLisp `&' keywords as types. 1942 ;; ELisp and CLisp `&' keywords as types.
1934 '("\\&\\sw+\\>" . font-lock-type-face) 1943 '("\\&\\sw+\\>" . font-lock-type-face)
1935 ;; 1944 ;;
1936 ;; CL `with-' and `do-' constructs 1945;;; This is too general -- rms.
1937 '("(\\(\\(do-\\|with-\\)\\(\\s_\\|\\w\\)*\\)" 1 font-lock-keyword-face) 1946;;; A user complained that he has functions whose names start with `do'
1947;;; and that they get the wrong color.
1948;;; ;; CL `with-' and `do-' constructs
1949;;; '("(\\(\\(do-\\|with-\\)\\(\\s_\\|\\w\\)*\\)" 1 font-lock-keyword-face)
1938 ))) 1950 )))
1939 "Gaudy level highlighting for Lisp modes.") 1951 "Gaudy level highlighting for Lisp modes.")
1940 1952