[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Allow anonymous functions in `iswitchb-buffer-ignore'
From: |
Emilio Lopes |
Subject: |
Allow anonymous functions in `iswitchb-buffer-ignore' |
Date: |
Sun, 02 Oct 2005 15:56:21 +0200 |
User-agent: |
Emacs Gnus |
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 <address@hidden>
* 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Allow anonymous functions in `iswitchb-buffer-ignore',
Emilio Lopes <=