aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2011-01-09 20:34:19 +0100
committerAndreas Schwab2011-01-09 20:34:19 +0100
commitc8043a225f70715109eb40a5ab178a97233670ee (patch)
tree011005aedb3989bd3a2f025830d458836893fd44
parent35e0ebb459c48cb66d184be88ba392c5b5d11066 (diff)
downloademacs-c8043a225f70715109eb40a5ab178a97233670ee.tar.gz
emacs-c8043a225f70715109eb40a5ab178a97233670ee.zip
* lisp/net/ldap.el (ldap-search-internal): Don't use eval.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/ldap.el12
2 files changed, 8 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6da2fe1abb3..5cab10de20d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-01-09 Andreas Schwab <schwab@linux-m68k.org>
2
3 * net/ldap.el (ldap-search-internal): Don't use eval.
4
12011-01-09 Chong Yidong <cyd@stupidchicken.com> 52011-01-09 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * subr.el (read-char-choice): Use read-key. 7 * subr.el (read-char-choice): Use read-key.
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el
index 066dbd8bea0..88284af06f0 100644
--- a/lisp/net/ldap.el
+++ b/lisp/net/ldap.el
@@ -1,7 +1,7 @@
1;;; ldap.el --- client interface to LDAP for Emacs 1;;; ldap.el --- client interface to LDAP for Emacs
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4;; 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
5 5
6;; Author: Oscar Figueiredo <oscar@cpe.fr> 6;; Author: Oscar Figueiredo <oscar@cpe.fr>
7;; Maintainer: FSF 7;; Maintainer: FSF
@@ -556,13 +556,9 @@ an alist of attribute/value pairs."
556 (if (and sizelimit 556 (if (and sizelimit
557 (not (equal "" sizelimit))) 557 (not (equal "" sizelimit)))
558 (setq arglist (nconc arglist (list (format "-z%s" sizelimit))))) 558 (setq arglist (nconc arglist (list (format "-z%s" sizelimit)))))
559 (eval `(call-process ldap-ldapsearch-prog 559 (apply #'call-process ldap-ldapsearch-prog
560 nil 560 nil buf nil
561 buf 561 (append arglist ldap-ldapsearch-args filter))
562 nil
563 ,@arglist
564 ,@ldap-ldapsearch-args
565 ,@filter))
566 (insert "\n") 562 (insert "\n")
567 (goto-char (point-min)) 563 (goto-char (point-min))
568 564