aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStefan Monnier2015-03-16 14:49:01 -0400
committerStefan Monnier2015-03-16 14:49:01 -0400
commitf925fc93bac41d7622d1af927e33b0e738ff55b0 (patch)
treee8635662256290a1662a299b66e32f6301535200 /etc
parent43a847c02c3eb848cd0d55a4722bfe7f39b1112f (diff)
downloademacs-f925fc93bac41d7622d1af927e33b0e738ff55b0.tar.gz
emacs-f925fc93bac41d7622d1af927e33b0e738ff55b0.zip
Add `predicate' arg to `read-buffer' and use it for erc-iswitchb
Fixes: debbugs:20116 * src/minibuf.c (Fread_buffer): Add `predicate' argument. * src/callint.c (Fcall_interactively): Adjust calls accordingly. * lisp/erc/erc.el (erc-switch-to-buffer): Rename from erc-iswitchb and rewrite using read-buffer. (erc--buffer-p): New function, extracted from erc-buffer-filter. (erc-buffer-filter): Use it. (erc-with-all-buffers-of-server): Silence compile warning if the return value is unused. (erc-is-valid-nick-p, erc-common-server-suffixes, erc-get-arglist) (erc-command-name, erc-popup-input-buffer): Use \` and \' to match beg/end of string. * lisp/obsolete/iswitchb.el (iswitchb-read-buffer): Add `predicate' arg. * lisp/isearchb.el (isearchb-iswitchb): Adjust accordingly. * lisp/ido.el (ido-read-buffer): Add `predicate' argument. * lisp/misearch.el (unload-function-defs-list): Declare before use.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 24ed0799b2c..cabd0087d92 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -594,6 +594,8 @@ a typographically-correct documents.
594 594
595* Incompatible Lisp Changes in Emacs 25.1 595* Incompatible Lisp Changes in Emacs 25.1
596 596
597** read-buffer-function can now be called with a 4th argument (`predicate').
598
597** completion-table-dynamic stays in the minibuffer. 599** completion-table-dynamic stays in the minibuffer.
598If you want the old behavior of calling the function in the buffer 600If you want the old behavior of calling the function in the buffer
599from which the minibuffer was entered, call it with the new argument 601from which the minibuffer was entered, call it with the new argument
@@ -631,6 +633,8 @@ word syntax, use `\sw' instead.
631 633
632* Lisp Changes in Emacs 25.1 634* Lisp Changes in Emacs 25.1
633 635
636** `read-buffer' takes a new `predicate' argument.
637
634** Emacs Lisp now supports generators. 638** Emacs Lisp now supports generators.
635 639
636** New finalizer facility for running code when objects 640** New finalizer facility for running code when objects