diff options
| author | Miles Bader | 2005-06-09 07:13:03 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-06-09 07:13:03 +0000 |
| commit | d113efea8e0a56aedd60615f5dc6669c72aca77f (patch) | |
| tree | c51aa1cd5076acfc2391217b0d7dea96552011de /lisp/progmodes | |
| parent | 2435213ba6b74f7425e15b1f799c9ae18467e43d (diff) | |
| parent | 47600d8e97925ed8816b099267e24f4ab3311e75 (diff) | |
| download | emacs-d113efea8e0a56aedd60615f5dc6669c72aca77f.tar.gz emacs-d113efea8e0a56aedd60615f5dc6669c72aca77f.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-61
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 353-357)
- Update from CVS
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/compile.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 22 |
2 files changed, 20 insertions, 7 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index a27a5282b42..e0c8ded307a 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -935,6 +935,7 @@ Returns the compilation buffer created." | |||
| 935 | (substitute-env-vars (match-string 1 command)) | 935 | (substitute-env-vars (match-string 1 command)) |
| 936 | "~") | 936 | "~") |
| 937 | default-directory)) | 937 | default-directory)) |
| 938 | (erase-buffer) | ||
| 938 | ;; Select the desired mode. | 939 | ;; Select the desired mode. |
| 939 | (if (not (eq mode t)) | 940 | (if (not (eq mode t)) |
| 940 | (funcall mode) | 941 | (funcall mode) |
| @@ -944,11 +945,11 @@ Returns the compilation buffer created." | |||
| 944 | (if highlight-regexp | 945 | (if highlight-regexp |
| 945 | (set (make-local-variable 'compilation-highlight-regexp) | 946 | (set (make-local-variable 'compilation-highlight-regexp) |
| 946 | highlight-regexp)) | 947 | highlight-regexp)) |
| 947 | (erase-buffer) | ||
| 948 | ;; Output a mode setter, for saving and later reloading this buffer. | 948 | ;; Output a mode setter, for saving and later reloading this buffer. |
| 949 | (insert "-*- mode: " name-of-mode | 949 | (insert "-*- mode: " name-of-mode |
| 950 | "; default-directory: " (prin1-to-string default-directory) | 950 | "; default-directory: " (prin1-to-string default-directory) |
| 951 | " -*-\n" command "\n") (setq thisdir default-directory)) | 951 | " -*-\n" command "\n") |
| 952 | (setq thisdir default-directory)) | ||
| 952 | (set-buffer-modified-p nil)) | 953 | (set-buffer-modified-p nil)) |
| 953 | ;; If we're already in the compilation buffer, go to the end | 954 | ;; If we're already in the compilation buffer, go to the end |
| 954 | ;; of the buffer, so point will track the compilation output. | 955 | ;; of the buffer, so point will track the compilation output. |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 7356583fb90..d2d2dc6263a 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -115,9 +115,8 @@ | |||
| 115 | :version "22.1") | 115 | :version "22.1") |
| 116 | 116 | ||
| 117 | (defface makefile-shell-face | 117 | (defface makefile-shell-face |
| 118 | '((((class color) (background light)) (:background "seashell1")) | 118 | '((((class color) (min-colors 88) (background light)) (:background "seashell1")) |
| 119 | (((class color) (background dark)) (:background "seashell4")) | 119 | (((class color) (min-colors 88) (background dark)) (:background "seashell4"))) |
| 120 | (t (:reverse-video t))) | ||
| 121 | "Face to use for additionally highlighting Shell commands in Font-Lock mode." | 120 | "Face to use for additionally highlighting Shell commands in Font-Lock mode." |
| 122 | :group 'faces | 121 | :group 'faces |
| 123 | :group 'makefile | 122 | :group 'makefile |
| @@ -262,7 +261,7 @@ not be enclosed in { } or ( )." | |||
| 262 | ;; index in makefile-imenu-generic-expression. | 261 | ;; index in makefile-imenu-generic-expression. |
| 263 | (defvar makefile-dependency-regex | 262 | (defvar makefile-dependency-regex |
| 264 | ;; Allow for two nested levels $(v1:$(v2:$(v3:a=b)=c)=d) | 263 | ;; Allow for two nested levels $(v1:$(v2:$(v3:a=b)=c)=d) |
| 265 | "^ *\\(\\(?: *\\$\\(?:[({]\\(?:\\$\\(?:[({]\\(?:\\$\\(?:[^({]\\|.[^\n$#})]+?[})]\\)\\|[^\n$#)}]\\)+?[})]\\|[^({]\\)\\|[^\n$#)}]\\)+?[})]\\|[^({]\\)\\| *[^ \n$#:=]+\\)+?\\)[ \t]*\\(:\\)\\(?:[ \t]*$\\|[^=\n]\\(?:[^#\n]*?;[ \t]*\\(.+\\)\\)?\\)" | 264 | "^\\(\\(?:\\$\\(?:[({]\\(?:\\$\\(?:[({]\\(?:\\$\\(?:[^({]\\|.[^\n$#})]+?[})]\\)\\|[^\n$#)}]\\)+?[})]\\|[^({]\\)\\|[^\n$#)}]\\)+?[})]\\|[^({]\\)\\|[^\n$#:=]\\)+?\\)\\(:\\)\\(?:[ \t]*$\\|[^=\n]\\(?:[^#\n]*?;[ \t]*\\(.+\\)\\)?\\)" |
| 266 | "Regex used to find dependency lines in a makefile.") | 265 | "Regex used to find dependency lines in a makefile.") |
| 267 | 266 | ||
| 268 | (defconst makefile-bsdmake-dependency-regex | 267 | (defconst makefile-bsdmake-dependency-regex |
| @@ -291,7 +290,7 @@ not be enclosed in { } or ( )." | |||
| 291 | ;; that if you change this regexp you might have to fix the imenu index in | 290 | ;; that if you change this regexp you might have to fix the imenu index in |
| 292 | ;; makefile-imenu-generic-expression. | 291 | ;; makefile-imenu-generic-expression. |
| 293 | (defconst makefile-macroassign-regex | 292 | (defconst makefile-macroassign-regex |
| 294 | "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.*\\\\\n\\)*.*\\)\\)" | 293 | "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=\\|[*:+]?[:?]?=\\)" |
| 295 | "Regex used to find macro assignment lines in a makefile.") | 294 | "Regex used to find macro assignment lines in a makefile.") |
| 296 | 295 | ||
| 297 | (defconst makefile-var-use-regex | 296 | (defconst makefile-var-use-regex |
| @@ -1704,6 +1703,19 @@ matched in a rule action." | |||
| 1704 | (when (save-excursion | 1703 | (when (save-excursion |
| 1705 | (beginning-of-line) | 1704 | (beginning-of-line) |
| 1706 | (looking-at makefile-dependency-regex)) | 1705 | (looking-at makefile-dependency-regex)) |
| 1706 | (save-excursion | ||
| 1707 | (let ((deps-end (match-end 1)) | ||
| 1708 | (match-data (match-data))) | ||
| 1709 | (goto-char deps-end) | ||
| 1710 | (skip-chars-backward " \t") | ||
| 1711 | (setq deps-end (point)) | ||
| 1712 | (beginning-of-line) | ||
| 1713 | (skip-chars-forward " \t") | ||
| 1714 | ;; Alter the bounds recorded for subexp 1, | ||
| 1715 | ;; which is what is supposed to match the targets. | ||
| 1716 | (setcar (nthcdr 2 match-data) (point)) | ||
| 1717 | (setcar (nthcdr 3 match-data) deps-end) | ||
| 1718 | (store-match-data match-data))) | ||
| 1707 | (end-of-line) | 1719 | (end-of-line) |
| 1708 | (throw 'found (point))))) | 1720 | (throw 'found (point))))) |
| 1709 | (goto-char pt)) | 1721 | (goto-char pt)) |