mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-19 18:13:55 +00:00
(completion-table-dynamic): Fix typo, and reflow docstring.
(completion-setup-hook, display-completion-list, completion--file-name-table): Fix typos in docstrings.
This commit is contained in:
parent
2a2e8de7c0
commit
b95c760067
@ -1,3 +1,9 @@
|
||||
2008-04-21 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* minibuffer.el (completion-setup-hook, display-completion-list)
|
||||
(completion--file-name-table): Fix typos in docstrings.
|
||||
(completion-table-dynamic): Fix typo, and reflow docstring.
|
||||
|
||||
2008-04-20 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* server.el (server-switch-buffer): Also consider clients in the
|
||||
@ -5,8 +11,8 @@
|
||||
|
||||
2008-04-19 Nick Roberts <nickrob@snap.net.nz>
|
||||
|
||||
* progmodes/gdb-ui.el (gdb-mouse-set-clear-breakpoint): Select
|
||||
window clicked on first (regression in 22.2).
|
||||
* progmodes/gdb-ui.el (gdb-mouse-set-clear-breakpoint):
|
||||
Select window clicked on first (regression in 22.2).
|
||||
(gdb): Display thread number in mode-line.
|
||||
(gdb-make-header-line-mouse-map): Move to avoid byte compiler warnings.
|
||||
(gdb-breakpoints-header): New variable.
|
||||
@ -3409,7 +3415,7 @@
|
||||
(solar-get-number): Move definition before use. Use unless.
|
||||
(solar-equatorial-coordinates): Simplify.
|
||||
(solar-sunrise-and-sunset): Use let rather than let*.
|
||||
(solar-longitude, solar-equinoxes-solstices): Use cadr, nth
|
||||
(solar-longitude, solar-equinoxes-solstices): Use cadr, nth.
|
||||
|
||||
* startup.el (command-line-1): Rename -internal-script back to
|
||||
-scriptload (reverts previous change).
|
||||
@ -3723,7 +3729,7 @@
|
||||
(org-goto-map, org-get-location): Implement auto-isearch.
|
||||
(org-goto-local-auto-isearch-map): New variable.
|
||||
(org-goto-local-search-forward-headings)
|
||||
(org-goto-local-auto-isearch): New functions
|
||||
(org-goto-local-auto-isearch): New functions.
|
||||
|
||||
2008-03-13 Philip Jackson <emacs@shellarchive.co.uk>
|
||||
|
||||
|
@ -73,15 +73,14 @@ ACTION can be one of nil, t or `lambda'."
|
||||
(defun completion-table-dynamic (fun)
|
||||
"Use function FUN as a dynamic completion table.
|
||||
FUN is called with one argument, the string for which completion is required,
|
||||
and it should return an alist containing all the intended possible
|
||||
completions. This alist may be a full list of possible completions so that FUN
|
||||
can ignore the value of its argument. If completion is performed in the
|
||||
minibuffer, FUN will be called in the buffer from which the minibuffer was
|
||||
entered.
|
||||
and it should return an alist containing all the intended possible completions.
|
||||
This alist may be a full list of possible completions so that FUN can ignore
|
||||
the value of its argument. If completion is performed in the minibuffer,
|
||||
FUN will be called in the buffer from which the minibuffer was entered.
|
||||
|
||||
The result of the `dynamic-completion-table' form is a function
|
||||
that can be used as the ALIST argument to `try-completion' and
|
||||
`all-completion'. See Info node `(elisp)Programmed Completion'."
|
||||
`all-completions'. See Info node `(elisp)Programmed Completion'."
|
||||
(lexical-let ((fun fun))
|
||||
(lambda (string pred action)
|
||||
(with-current-buffer (let ((win (minibuffer-selected-window)))
|
||||
@ -567,8 +566,8 @@ It also eliminates runs of equal strings."
|
||||
When this hook is run, the current buffer is the one in which the
|
||||
command to display the completion list buffer was run.
|
||||
The completion list buffer is available as the value of `standard-output'.
|
||||
The common prefix substring for completion may be available as the
|
||||
value of `completion-common-substring'. See also `display-completion-list'.")
|
||||
The common prefix substring for completion may be available as the value
|
||||
of `completion-common-substring'. See also `display-completion-list'.")
|
||||
|
||||
(defun display-completion-list (completions &optional common-substring)
|
||||
"Display the list of completions, COMPLETIONS, using `standard-output'.
|
||||
@ -583,7 +582,7 @@ At the end, this runs the normal hook `completion-setup-hook'.
|
||||
It can find the completion buffer in `standard-output'.
|
||||
The optional second arg COMMON-SUBSTRING is a string.
|
||||
It is used to put faces, `completions-first-difference' and
|
||||
`completions-common-part' on the completion buffer. The
|
||||
`completions-common-part' on the completion buffer. The
|
||||
`completions-common-part' face is put on the common substring
|
||||
specified by COMMON-SUBSTRING. If COMMON-SUBSTRING is nil
|
||||
and the current buffer is not the minibuffer, the faces are not put.
|
||||
@ -692,7 +691,7 @@ during running `completion-setup-hook'."
|
||||
pred action))))
|
||||
|
||||
(defun completion--file-name-table (string dir action)
|
||||
"Internal subroutine for read-file-name. Do not call this."
|
||||
"Internal subroutine for `read-file-name'. Do not call this."
|
||||
(setq dir (expand-file-name dir))
|
||||
(if (and (zerop (length string)) (eq 'lambda action))
|
||||
nil ; FIXME: why?
|
||||
|
Loading…
Reference in New Issue
Block a user