aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2012-05-15 21:57:20 -0400
committerStefan Monnier2012-05-15 21:57:20 -0400
commit1a72a195d0625353a406a7a88e750d034e6d231a (patch)
tree292c7da5a00edfd272b3de6a2cfe18aa0d9dfcd3 /lisp
parent9660f5fc84e148f54f704a86710c0e9287a1769c (diff)
downloademacs-1a72a195d0625353a406a7a88e750d034e6d231a.tar.gz
emacs-1a72a195d0625353a406a7a88e750d034e6d231a.zip
* lisp/minibuffer.el (completion--sifn-requote): Fix last change.
(minibuffer-local-must-match-filename-map): Move define-obsolete-variable-alias before its var.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/minibuffer.el20
2 files changed, 17 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 717582a6f8f..cec6cdc26b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * minibuffer.el (completion--sifn-requote): Fix last change.
4 (minibuffer-local-must-match-filename-map):
5 Move define-obsolete-variable-alias before its var.
6
12012-05-15 Stefan Monnier <monnier@iro.umontreal.ca> 72012-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * emacs-lisp/pcase.el (pcase-let*, pcase-let): Fix edebug spec. 9 * emacs-lisp/pcase.el (pcase-let*, pcase-let): Fix edebug spec.
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 9fb7627fe64..6cd7af7fd01 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1952,10 +1952,10 @@ The completion method is determined by `completion-at-point-functions'."
1952Gets combined either with `minibuffer-local-completion-map' or 1952Gets combined either with `minibuffer-local-completion-map' or
1953with `minibuffer-local-must-match-map'.") 1953with `minibuffer-local-must-match-map'.")
1954 1954
1955(defvar minibuffer-local-filename-must-match-map (make-sparse-keymap))
1956(make-obsolete-variable 'minibuffer-local-filename-must-match-map nil "24.1")
1957(define-obsolete-variable-alias 'minibuffer-local-must-match-filename-map 1955(define-obsolete-variable-alias 'minibuffer-local-must-match-filename-map
1958 'minibuffer-local-filename-must-match-map "23.1") 1956 'minibuffer-local-filename-must-match-map "23.1")
1957(defvar minibuffer-local-filename-must-match-map (make-sparse-keymap))
1958(make-obsolete-variable 'minibuffer-local-filename-must-match-map nil "24.1")
1959 1959
1960(let ((map minibuffer-local-ns-map)) 1960(let ((map minibuffer-local-ns-map))
1961 (define-key map " " 'exit-minibuffer) 1961 (define-key map " " 'exit-minibuffer)
@@ -2132,13 +2132,15 @@ same as `substitute-in-file-name'."
2132 ;; Kind of like in rfn-eshadow-update-overlay, only worse. 2132 ;; Kind of like in rfn-eshadow-update-overlay, only worse.
2133 (let ((qpos 0)) 2133 (let ((qpos 0))
2134 ;; Handle substitute-in-file-name's truncation behavior. 2134 ;; Handle substitute-in-file-name's truncation behavior.
2135 (while (and (string-match "[\\/][~/\\]" qstr qpos) 2135 (let (tpos)
2136 ;; Hopefully our regexp covers all truncation cases. 2136 (while (and (string-match "[\\/][~/\\]" qstr qpos)
2137 ;; Also let's make sure sifn indeed truncates here. 2137 ;; Hopefully our regexp covers all truncation cases.
2138 (let ((tpos (1+ (match-beginning 0)))) 2138 ;; Also let's make sure sifn indeed truncates here.
2139 (equal (substitute-in-file-name qstr) 2139 (progn
2140 (substitute-in-file-name (substring qstr tpos))))) 2140 (setq tpos (1+ (match-beginning 0)))
2141 (setq qpos tpos)) 2141 (equal (substitute-in-file-name qstr)
2142 (substitute-in-file-name (substring qstr tpos)))))
2143 (setq qpos tpos)))
2142 ;; `upos' is relative to the position corresponding to `qpos' in 2144 ;; `upos' is relative to the position corresponding to `qpos' in
2143 ;; (substitute-in-file-name qstr), so as qpos moves forward, upos 2145 ;; (substitute-in-file-name qstr), so as qpos moves forward, upos
2144 ;; gets smaller. 2146 ;; gets smaller.