When preseting the user a list of buffers to choose from, `iswitchb'
uses the variable `iswitchb-buffer-ignore' to decide whether a certain
buffer should be ignored or not.

The variable `iswitchb-buffer-ignore' should be a list of either
regexps or functions.  To test if a item in that list is a function
the code currently uses `fboundp'.  This rules anonymous functions out.

I think this is an unnecessary constraint.  The following patch
removes this constraint by using `functionp' instead.


2005-10-02  Emilio C. Lopes  <[EMAIL PROTECTED]>

        * iswitchb.el (iswitchb-ignore-buffername-p): use `functionp'
        instead of `fboundp' in order to allow for anonymous functions.


diff -rN -c old-emacs-darcs.eclig/lisp/iswitchb.el 
new-emacs-darcs.eclig/lisp/iswitchb.el
*** old-emacs-darcs.eclig/lisp/iswitchb.el      Sun Oct  2 15:44:14 2005
--- new-emacs-darcs.eclig/lisp/iswitchb.el      Sun Oct  2 15:31:16 2005
***************
*** 942,948 ****
              (progn
                (setq ignorep t)
                (setq re-list nil))))
!        ((fboundp nextstr)
          (if (funcall nextstr bufname)
              (progn
                (setq ignorep t)
--- 942,948 ----
              (progn
                (setq ignorep t)
                (setq re-list nil))))
!        ((functionp nextstr)
          (if (funcall nextstr bufname)
              (progn
                (setq ignorep t)





_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to