[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11725: 24.1; confirm-nonexistent-file-or-buffer with after-completio
From: |
Stefan Monnier |
Subject: |
bug#11725: 24.1; confirm-nonexistent-file-or-buffer with after-completion value |
Date: |
Sat, 23 Jun 2012 00:50:14 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Version: 24.2
> 1) made two files in bash:
> $ cd /tmp
> $ touch almafa almacsutka
> 2) open emacs
> C-x C-f /tmp/al[TAB][RET]
> [TAB] completes to /tmp/alma, then after pressing [RET], a new file
> called alma is open, instead of asking for confirmation.
Thanks, I've installed the patch below on the emacs-24 branch, which
should fix the problem.
Stefan
--- lisp/minibuffer.el 2012-04-07 08:12:04 +0000
+++ lisp/minibuffer.el 2012-06-23 04:47:36 +0000
@@ -892,7 +892,8 @@
(completion--cache-all-sorted-completions (cdr all)))))))
(defvar minibuffer-confirm-exit-commands
- '(minibuffer-complete minibuffer-complete-word PC-complete PC-complete-word)
+ '(completion-at-point minibuffer-complete
+ minibuffer-complete-word PC-complete PC-complete-word)
"A list of commands which cause an immediately following
`minibuffer-complete-and-exit' to ask for extra confirmation.")