aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2025-02-12 11:16:20 +0800
committerPo Lu2025-02-12 11:16:20 +0800
commitfb4daf4aa07b6fa060b64548ff5c75819f77515c (patch)
tree93424a8d8c4a67d3572b3e1509b6f1eb463676b2
parent3fd0b802de20dc83b5d5236b6d458df73c9d4e77 (diff)
parent19791839cfbb9202aff8a8d476ec76741592c97d (diff)
downloademacs-fb4daf4aa07b6fa060b64548ff5c75819f77515c.tar.gz
emacs-fb4daf4aa07b6fa060b64548ff5c75819f77515c.zip
Merge from savannah/emacs-30
19791839cfb ; Don't document a complicated default 88bc748f52f Fix minibuffer-next-completion in completing-read-multiple 737f249aa2c ; Document 'completing-read-multiple' in the ELisp manual 37f25514602 ; * lisp/gnus/nnweb.el (nnweb-type): Doc fix.
-rw-r--r--doc/lispref/minibuf.texi10
-rw-r--r--doc/misc/message.texi7
-rw-r--r--lisp/emacs-lisp/crm.el26
-rw-r--r--lisp/gnus/nnweb.el2
4 files changed, 22 insertions, 23 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index ecd34b95294..42189b9d0d7 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -1242,6 +1242,16 @@ different function to completely override the normal behavior of
1242@code{completing-read}. 1242@code{completing-read}.
1243@end defvar 1243@end defvar
1244 1244
1245@findex completing-read-multiple
1246@vindex crm-separator
1247If you need to prompt the user for several strings, like several
1248elements of a list or several parameters (e.g., user, host, and port) of
1249a connection, you can use @code{completing-read-multiple}. It allows
1250typing several strings separated by a separator string (by default, tabs
1251and commas; customize @code{crm-separator} to change that), and provides
1252completion for each individual string the user types. It returns the
1253strings that were read, as a list.
1254
1245@node Completion Commands 1255@node Completion Commands
1246@subsection Minibuffer Commands that Do Completion 1256@subsection Minibuffer Commands that Do Completion
1247 1257
diff --git a/doc/misc/message.texi b/doc/misc/message.texi
index 509bbd5b575..48ac487088e 100644
--- a/doc/misc/message.texi
+++ b/doc/misc/message.texi
@@ -289,12 +289,7 @@ supersede the message in the current buffer.
289 289
290@vindex message-ignored-supersedes-headers 290@vindex message-ignored-supersedes-headers
291Headers matching the @code{message-ignored-supersedes-headers} are 291Headers matching the @code{message-ignored-supersedes-headers} are
292removed before popping up the new message buffer. The default is@* 292removed before popping up the new message buffer.
293@samp{^Path:\\|^Date\\|^NNTP-Posting-Host:\\|^Xref:\\|^Lines:\\|@*
294^Received:\\|^X-From-Line:\\|^X-Trace:\\|^X-Complaints-To:\\|@*
295Return-Path:\\|^Supersedes:\\|^NNTP-Posting-Date:\\|^X-Trace:\\|@*
296^X-Complaints-To:\\|^Cancel-Lock:\\|^Cancel-Key:\\|^X-Hashcash:\\|@*
297^X-Payment:\\|^Approved:}.
298 293
299 294
300 295
diff --git a/lisp/emacs-lisp/crm.el b/lisp/emacs-lisp/crm.el
index 454c3e85074..a371a8e14de 100644
--- a/lisp/emacs-lisp/crm.el
+++ b/lisp/emacs-lisp/crm.el
@@ -251,22 +251,16 @@ with empty strings removed."
251 (setq-local minibuffer-completion-table #'crm--collection-fn) 251 (setq-local minibuffer-completion-table #'crm--collection-fn)
252 (setq-local minibuffer-completion-predicate predicate) 252 (setq-local minibuffer-completion-predicate predicate)
253 (setq-local completion-list-insert-choice-function 253 (setq-local completion-list-insert-choice-function
254 (lambda (start end choice) 254 (lambda (_start _end choice)
255 (if (and (stringp start) (stringp end)) 255 (let* ((beg (save-excursion
256 (let* ((beg (save-excursion 256 (if (search-backward-regexp crm-separator nil t)
257 (goto-char (minibuffer-prompt-end)) 257 (1+ (point))
258 (or (search-forward start nil t) 258 (minibuffer-prompt-end))))
259 (search-forward-regexp crm-separator nil t) 259 (end (save-excursion
260 (minibuffer-prompt-end)))) 260 (if (search-forward-regexp crm-separator nil t)
261 (end (save-excursion 261 (1- (point))
262 (goto-char (point-max)) 262 (point-max)))))
263 (or (search-backward end nil t) 263 (completion--replace beg end choice))))
264 (progn
265 (goto-char beg)
266 (search-forward-regexp crm-separator nil t))
267 (point-max)))))
268 (completion--replace beg end choice))
269 (completion--replace start end choice))))
270 ;; see completing_read in src/minibuf.c 264 ;; see completing_read in src/minibuf.c
271 (setq-local minibuffer-completion-confirm 265 (setq-local minibuffer-completion-confirm
272 (unless (eq require-match t) require-match)) 266 (unless (eq require-match t) require-match))
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el
index 57964f93437..9ada2dbc1d7 100644
--- a/lisp/gnus/nnweb.el
+++ b/lisp/gnus/nnweb.el
@@ -42,7 +42,7 @@
42 42
43(defvoo nnweb-type 'google 43(defvoo nnweb-type 'google
44 "What search engine type is being used. 44 "What search engine type is being used.
45Valid types include `google' and `dejanews'.") 45The only valid type is currently `google'.")
46 46
47(defvar nnweb-type-definition 47(defvar nnweb-type-definition
48 '((google 48 '((google