diff options
| author | Kim F. Storm | 2006-10-15 20:41:42 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-10-15 20:41:42 +0000 |
| commit | 81fe5f4b2842253b5ff5d666b70024c03d78ecc4 (patch) | |
| tree | 286653cd2b9ab97b96b84ca3b3a190b6cfa9495f | |
| parent | 534e8a33d08094f9f9df73d0c70f42c866b767c1 (diff) | |
| download | emacs-81fe5f4b2842253b5ff5d666b70024c03d78ecc4.tar.gz emacs-81fe5f4b2842253b5ff5d666b70024c03d78ecc4.zip | |
2006-10-15 Lennart Borgman <lennart.borgman.073@student.lu.se>
(ada-find-in-src-path): Use shell-quote-argument.
Use grep -E rather than egrep.
| -rw-r--r-- | lisp/progmodes/ada-xref.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index 9e3f8e14332..05d2a8bf65b 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el | |||
| @@ -1916,8 +1916,12 @@ is using." | |||
| 1916 | (set-buffer (get-buffer-create "*grep*")) | 1916 | (set-buffer (get-buffer-create "*grep*")) |
| 1917 | (while dirs | 1917 | (while dirs |
| 1918 | (insert (shell-command-to-string | 1918 | (insert (shell-command-to-string |
| 1919 | (concat "egrep -i -h '^X|" regexp "( |$)' " | 1919 | (concat |
| 1920 | (file-name-as-directory (car dirs)) "*.ali"))) | 1920 | "grep -E -i -h " |
| 1921 | (shell-quote-argument (concat "^X|" regexp "( |$)")) | ||
| 1922 | " " | ||
| 1923 | (shell-quote-argument (file-name-as-directory (car dirs))) | ||
| 1924 | "*.ali"))) | ||
| 1921 | (set 'dirs (cdr dirs))) | 1925 | (set 'dirs (cdr dirs))) |
| 1922 | 1926 | ||
| 1923 | ;; Now parse the output | 1927 | ;; Now parse the output |