summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-05-02 08:50:59 +0000
committerKim F. Storm <storm@cua.dk>2006-05-02 08:50:59 +0000
commit41a2f8bab50e0ccecf410910c445bce1e281876c (patch)
tree4e689cb53aca003844cb1713332351876220363c /lisp/progmodes
parent6cf93749317c2e18f850cd0f47f905895e850bfc (diff)
downloademacs-41a2f8bab50e0ccecf410910c445bce1e281876c.tar.gz
emacs-41a2f8bab50e0ccecf410910c445bce1e281876c.tar.bz2
emacs-41a2f8bab50e0ccecf410910c445bce1e281876c.zip
(grep-expand-template): Use symbol-value instead of eval on symbols.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/grep.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 0aba9d42b84..c695272e92b 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -584,7 +584,7 @@ substitution string. Note dynamic scoping of variables.")
(setq command
(replace-match
(or (if (symbolp (cdr kw))
- (eval (cdr kw))
+ (symbol-value (cdr kw))
(save-match-data (eval (cdr kw))))
"")
t t command))))))