aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDaniel Pfeiffer2004-11-22 23:31:28 +0000
committerDaniel Pfeiffer2004-11-22 23:31:28 +0000
commit12221c849bee7bd8925541257e383e0be1860741 (patch)
tree36d876fc0489fa847eb1d0d327a386b9273b3cfd /lisp
parent8fc464b6e1909f6660f97bb3d208f3539c892a7b (diff)
downloademacs-12221c849bee7bd8925541257e383e0be1860741.tar.gz
emacs-12221c849bee7bd8925541257e383e0be1860741.zip
(compilation-start): In cd command use substitute-env-vars -- not quite shell compatible but better than nothing.
(compilation-error-regexp-alist-alist): Simplify ftnchek to only handle the newer versions messages, which are more parseable.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/compile.el14
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index b73c9ca0007..4d96181a6f4 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -181,15 +181,9 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
181 (epc 181 (epc
182 "^Error [0-9]+ at (\\([0-9]+\\):\\([^)\n]+\\))" 2 1) 182 "^Error [0-9]+ at (\\([0-9]+\\):\\([^)\n]+\\))" 2 1)
183 183
184 (ftnchek-file 184 (ftnchek
185 "^File \\(.+\\.f\\):$" 185 "\\(^Warning .*\\)? line[ \n]\\([0-9]+\\)[ \n]\\(?:col \\([0-9]+\\)[ \n]\\)?file \\([^ :;\n]+\\)"
186 1 nil nil 0) 186 4 2 3 (1))
187 (ftnchek-line-file
188 "\\(^Warning .* \\)?line \\([0-9]+\\)\\(?: col \\([0-9]+\\)\\)? file \\(.+\\.f\\)"
189 4 2 3 (1) nil (1 'default nil t))
190 (ftnchek-line
191 "\\(?:^\\(Warning\\) .* \\)?line \\([0-9]+\\)\\(?: col \\([0-9]+\\)\\)?"
192 nil 2 3 (1) nil (1 (compilation-face '(1)) nil t))
193 187
194 (iar 188 (iar
195 "^\"\\(.*\\)\",\\([0-9]+\\)\\s-+\\(?:Error\\|Warnin\\(g\\)\\)\\[[0-9]+\\]:" 189 "^\"\\(.*\\)\",\\([0-9]+\\)\\s-+\\(?:Error\\|Warnin\\(g\\)\\)\\[[0-9]+\\]:"
@@ -916,7 +910,7 @@ Returns the compilation buffer created."
916 ;; would do it again through the shell: (cd "..") AND sh -c "cd ..; make" 910 ;; would do it again through the shell: (cd "..") AND sh -c "cd ..; make"
917 (cd (if (string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s *[;&\n]" command) 911 (cd (if (string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s *[;&\n]" command)
918 (if (match-end 1) 912 (if (match-end 1)
919 (match-string 1 command) 913 (substitute-env-vars (match-string 1 command))
920 "~") 914 "~")
921 default-directory)) 915 default-directory))
922 (erase-buffer) 916 (erase-buffer)