From b95c760067774de3d532037adc1036461068597b Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 21 Apr 2008 00:17:56 +0000 Subject: [PATCH] (completion-table-dynamic): Fix typo, and reflow docstring. (completion-setup-hook, display-completion-list, completion--file-name-table): Fix typos in docstrings. --- lisp/ChangeLog | 14 ++++++++++---- lisp/minibuffer.el | 19 +++++++++---------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 767f8d0c376..fb5d6c185f5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2008-04-21 Juanma Barranquero + + * 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 * server.el (server-switch-buffer): Also consider clients in the @@ -5,8 +11,8 @@ 2008-04-19 Nick Roberts - * 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 diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index b0cda271128..dea94b675d1 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -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? -- 2.39.2