diff options
| author | Glenn Morris <rgm@gnu.org> | 2009-09-30 02:26:12 +0000 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2009-09-30 02:26:12 +0000 |
| commit | 9280709b47b946d3afb77479ef73f56dc9e4085a (patch) | |
| tree | ca605b50c1691dcfa858e305472517b50f386035 /lisp | |
| parent | 3d9e6ffc427d4e3df63947c9bb1c4480b612f825 (diff) | |
| download | emacs-9280709b47b946d3afb77479ef73f56dc9e4085a.tar.gz | |
(semantic-gcc-setup): Replace runtime use of CL function `remove-if-not'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/cedet/semantic/bovine/gcc.el | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/cedet/semantic/bovine/gcc.el b/lisp/cedet/semantic/bovine/gcc.el index 49c65366c2a..5466546b61c 100644 --- a/lisp/cedet/semantic/bovine/gcc.el +++ b/lisp/cedet/semantic/bovine/gcc.el @@ -171,15 +171,18 @@ It should also include other symbols GCC was compiled with.") (gcc-include-c++-ver (expand-file-name ver gcc-include-c++)) (gcc-include-c++-ver-host (expand-file-name host gcc-include-c++-ver))) (setq c-include-path - (remove-if-not 'file-accessible-directory-p - (list "/usr/include" gcc-include))) + ;; Replace cl-function remove-if-not. + (delq nil (mapcar (lambda (d) + (if (file-accessible-directory-p d) d)) + (list "/usr/include" gcc-include)))) (setq c++-include-path - (remove-if-not 'file-accessible-directory-p - (list "/usr/include" - gcc-include - gcc-include-c++ - gcc-include-c++-ver - gcc-include-c++-ver-host))))) + (delq nil (mapcar (lambda (d) + (if (file-accessible-directory-p d) d)) + (list "/usr/include" + gcc-include + gcc-include-c++ + gcc-include-c++-ver + gcc-include-c++-ver-host)))))) ;;; Fix-me: I think this part might have been a misunderstanding, but I am not sure. ;; If this option is specified, try it both with and without prefix, and with and without host |
