diff options
Diffstat (limited to 'lisp/minibuffer.el')
| -rw-r--r-- | lisp/minibuffer.el | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index d2c3f9045e5..641a2e53152 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -685,13 +685,6 @@ for use at QPOS." | |||
| 685 | completions) | 685 | completions) |
| 686 | qboundary)))) | 686 | qboundary)))) |
| 687 | 687 | ||
| 688 | ;; (defmacro complete-in-turn (a b) `(completion-table-in-turn ,a ,b)) | ||
| 689 | ;; (defmacro dynamic-completion-table (fun) `(completion-table-dynamic ,fun)) | ||
| 690 | (define-obsolete-function-alias | ||
| 691 | 'complete-in-turn #'completion-table-in-turn "23.1") | ||
| 692 | (define-obsolete-function-alias | ||
| 693 | 'dynamic-completion-table #'completion-table-dynamic "23.1") | ||
| 694 | |||
| 695 | ;;; Minibuffer completion | 688 | ;;; Minibuffer completion |
| 696 | 689 | ||
| 697 | (defgroup minibuffer nil | 690 | (defgroup minibuffer nil |
| @@ -1126,6 +1119,7 @@ completion candidates than this number." | |||
| 1126 | (defvar-local completion-all-sorted-completions nil) | 1119 | (defvar-local completion-all-sorted-completions nil) |
| 1127 | (defvar-local completion--all-sorted-completions-location nil) | 1120 | (defvar-local completion--all-sorted-completions-location nil) |
| 1128 | (defvar completion-cycling nil) ;Function that takes down the cycling map. | 1121 | (defvar completion-cycling nil) ;Function that takes down the cycling map. |
| 1122 | (defvar completion-content-when-empty nil) | ||
| 1129 | 1123 | ||
| 1130 | (defvar completion-fail-discreetly nil | 1124 | (defvar completion-fail-discreetly nil |
| 1131 | "If non-nil, stay quiet when there is no match.") | 1125 | "If non-nil, stay quiet when there is no match.") |
| @@ -1510,8 +1504,13 @@ If `minibuffer-completion-confirm' is `confirm-after-completion', | |||
| 1510 | COMPLETION-FUNCTION is called if the current buffer's content does not | 1504 | COMPLETION-FUNCTION is called if the current buffer's content does not |
| 1511 | appear to be a match." | 1505 | appear to be a match." |
| 1512 | (cond | 1506 | (cond |
| 1513 | ;; Allow user to specify null string | 1507 | ;; Allow user to specify null string. In the case that |
| 1514 | ((= beg end) (funcall exit-function)) | 1508 | ;; `completion-content-when-empty' is set, use that instead. |
| 1509 | ((= beg end) | ||
| 1510 | (when completion-content-when-empty | ||
| 1511 | (completion--replace beg end completion-content-when-empty)) | ||
| 1512 | (funcall exit-function)) | ||
| 1513 | |||
| 1515 | ((test-completion (buffer-substring beg end) | 1514 | ((test-completion (buffer-substring beg end) |
| 1516 | minibuffer-completion-table | 1515 | minibuffer-completion-table |
| 1517 | minibuffer-completion-predicate) | 1516 | minibuffer-completion-predicate) |
| @@ -1770,9 +1769,6 @@ It also eliminates runs of equal strings." | |||
| 1770 | ;; Round up to a whole number of columns. | 1769 | ;; Round up to a whole number of columns. |
| 1771 | (* colwidth (ceiling length colwidth)))))))))))) | 1770 | (* colwidth (ceiling length colwidth)))))))))))) |
| 1772 | 1771 | ||
| 1773 | (defvar completion-common-substring nil) | ||
| 1774 | (make-obsolete-variable 'completion-common-substring nil "23.1") | ||
| 1775 | |||
| 1776 | (defvar completion-setup-hook nil | 1772 | (defvar completion-setup-hook nil |
| 1777 | "Normal hook run at the end of setting up a completion list buffer. | 1773 | "Normal hook run at the end of setting up a completion list buffer. |
| 1778 | When this hook is run, the current buffer is the one in which the | 1774 | When this hook is run, the current buffer is the one in which the |
| @@ -1864,11 +1860,7 @@ It can find the completion buffer in `standard-output'." | |||
| 1864 | (insert "Possible completions are:\n") | 1860 | (insert "Possible completions are:\n") |
| 1865 | (completion--insert-strings completions)))) | 1861 | (completion--insert-strings completions)))) |
| 1866 | 1862 | ||
| 1867 | ;; The hilit used to be applied via completion-setup-hook, so there | 1863 | (run-hooks 'completion-setup-hook) |
| 1868 | ;; may still be some code that uses completion-common-substring. | ||
| 1869 | (with-no-warnings | ||
| 1870 | (let ((completion-common-substring common-substring)) | ||
| 1871 | (run-hooks 'completion-setup-hook))) | ||
| 1872 | nil) | 1864 | nil) |
| 1873 | 1865 | ||
| 1874 | (defvar completion-extra-properties nil | 1866 | (defvar completion-extra-properties nil |
| @@ -2374,8 +2366,6 @@ The completion method is determined by `completion-at-point-functions'." | |||
| 2374 | Gets combined either with `minibuffer-local-completion-map' or | 2366 | Gets combined either with `minibuffer-local-completion-map' or |
| 2375 | with `minibuffer-local-must-match-map'.") | 2367 | with `minibuffer-local-must-match-map'.") |
| 2376 | 2368 | ||
| 2377 | (define-obsolete-variable-alias 'minibuffer-local-must-match-filename-map | ||
| 2378 | 'minibuffer-local-filename-must-match-map "23.1") | ||
| 2379 | (defvar minibuffer-local-filename-must-match-map (make-sparse-keymap)) | 2369 | (defvar minibuffer-local-filename-must-match-map (make-sparse-keymap)) |
| 2380 | (make-obsolete-variable 'minibuffer-local-filename-must-match-map nil "24.1") | 2370 | (make-obsolete-variable 'minibuffer-local-filename-must-match-map nil "24.1") |
| 2381 | 2371 | ||