* Allow anonymous functions in `iswitchb-buffer-ignore'
@ 2005-10-02 13:56 Emilio Lopes
0 siblings, 0 replies; only message in thread
From: Emilio Lopes @ 2005-10-02 13:56 UTC (permalink / raw)
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 <eclig@gmx.net>
* 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-02 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-02 13:56 Allow anonymous functions in `iswitchb-buffer-ignore' Emilio Lopes
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.