diff options
| author | Lars Ingebrigtsen | 2022-04-22 14:34:50 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-22 14:35:30 +0200 |
| commit | 38797bfa5ef2759d8ae09035eee136273239a277 (patch) | |
| tree | 7fe6b1f99b854b68d834b44dbb2cf0b7e8dd03d7 | |
| parent | 3aaed2e1ccfcc230f813d3fe7867a7abc5b22109 (diff) | |
| download | emacs-38797bfa5ef2759d8ae09035eee136273239a277.tar.gz emacs-38797bfa5ef2759d8ae09035eee136273239a277.zip | |
Allow completion-ignore-case to be buffer-local
* lisp/minibuffer.el (completing-read-default): Use the value of
completion-ignore-case from the current buffer (bug#12615).
| -rw-r--r-- | lisp/minibuffer.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index e1947ae5ddb..198162266ee 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -4245,6 +4245,7 @@ See `completing-read' for the meaning of the arguments." | |||
| 4245 | ;; override bindings in base-keymap. | 4245 | ;; override bindings in base-keymap. |
| 4246 | base-keymap))) | 4246 | base-keymap))) |
| 4247 | (buffer (current-buffer)) | 4247 | (buffer (current-buffer)) |
| 4248 | (c-i-c completion-ignore-case) | ||
| 4248 | (result | 4249 | (result |
| 4249 | (minibuffer-with-setup-hook | 4250 | (minibuffer-with-setup-hook |
| 4250 | (lambda () | 4251 | (lambda () |
| @@ -4254,7 +4255,9 @@ See `completing-read' for the meaning of the arguments." | |||
| 4254 | (setq-local minibuffer-completion-confirm | 4255 | (setq-local minibuffer-completion-confirm |
| 4255 | (unless (eq require-match t) require-match)) | 4256 | (unless (eq require-match t) require-match)) |
| 4256 | (setq-local minibuffer--require-match require-match) | 4257 | (setq-local minibuffer--require-match require-match) |
| 4257 | (setq-local minibuffer--original-buffer buffer)) | 4258 | (setq-local minibuffer--original-buffer buffer) |
| 4259 | ;; Copy the value from original buffer to the minibuffer. | ||
| 4260 | (setq-local completion-ignore-case c-i-c)) | ||
| 4258 | (read-from-minibuffer prompt initial-input keymap | 4261 | (read-from-minibuffer prompt initial-input keymap |
| 4259 | nil hist def inherit-input-method)))) | 4262 | nil hist def inherit-input-method)))) |
| 4260 | (when (and (equal result "") def) | 4263 | (when (and (equal result "") def) |