changeset 65833:fca34be2db31

(iswitchb-buffer-ignore): Label it risky. (iswitchb-ignore-buffername-p): Use `functionp' instead of `fboundp' in order to allow for anonymous functions.
author Richard M. Stallman <rms@gnu.org>
date Tue, 04 Oct 2005 20:27:58 +0000
parents 5159ee08b219
children 153b746cc2d0
files lisp/iswitchb.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/iswitchb.el	Tue Oct 04 20:26:13 2005 +0000
+++ b/lisp/iswitchb.el	Tue Oct 04 20:27:58 2005 +0000
@@ -293,6 +293,7 @@
 example functions that filter buffernames."
   :type '(repeat (choice regexp function))
   :group 'iswitchb)
+(put 'iswitchb-buffer-ignore 'risky-local-variable t)
 
 (defcustom iswitchb-max-to-show nil
   "*If non-nil, limit the number of names shown in the minibuffer.
@@ -942,7 +943,7 @@
             (progn
               (setq ignorep t)
               (setq re-list nil))))
-       ((fboundp nextstr)
+       ((functionp nextstr)
         (if (funcall nextstr bufname)
             (progn
               (setq ignorep t)