aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-29 20:18:06 -0700
committerGlenn Morris2013-05-29 20:18:06 -0700
commit02d844b536c78abec44ecdebcec4bcdd221faba7 (patch)
treed837d983ed16a084b3b0e25b1f5a7e3c82f2e458
parentac44d6c19fddcf20df723d94aa4f45641e0b55ed (diff)
downloademacs-02d844b536c78abec44ecdebcec4bcdd221faba7.tar.gz
emacs-02d844b536c78abec44ecdebcec4bcdd221faba7.zip
* minibuffer.el (read-file-name-completion-ignore-case):
Move before completion--in-region, for eager macro expansion. Somehow, this avoids an eager macro expansion failure present during bootstrap since ~ 2013-04-17.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/minibuffer.el16
2 files changed, 14 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 552af47db71..1a5c0eb92d9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-05-30 Glenn Morris <rgm@gnu.org>
2
3 * minibuffer.el (read-file-name-completion-ignore-case):
4 Move before completion--in-region, for eager macro expansion.
5
12013-05-29 Juri Linkov <juri@jurta.org> 62013-05-29 Juri Linkov <juri@jurta.org>
2 7
3 * replace.el (occur-engine): Rename `globalcount' to `global-lines' 8 * replace.el (occur-engine): Rename `globalcount' to `global-lines'
@@ -1756,7 +1761,7 @@
1756 1761
17572013-04-21 Xue Fuqiao <xfq.free@gmail.com> 17622013-04-21 Xue Fuqiao <xfq.free@gmail.com>
1758 1763
1759 * comint.el: (comint-dynamic-complete-functions, comint-mode-map): 1764 * comint.el (comint-dynamic-complete-functions, comint-mode-map):
1760 `comint-dynamic-complete' is obsolete since 24.1, replaced by 1765 `comint-dynamic-complete' is obsolete since 24.1, replaced by
1761 `completion-at-point'. (Bug#13774) 1766 `completion-at-point'. (Bug#13774)
1762 1767
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index a5d79a415f6..8bcf3afae05 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1796,6 +1796,14 @@ exit."
1796 (cl-assert (<= start (point)) (<= (point) end)) 1796 (cl-assert (<= start (point)) (<= (point) end))
1797 (funcall completion-in-region-function start end collection predicate)) 1797 (funcall completion-in-region-function start end collection predicate))
1798 1798
1799(defcustom read-file-name-completion-ignore-case
1800 (if (memq system-type '(ms-dos windows-nt darwin cygwin))
1801 t nil)
1802 "Non-nil means when reading a file name completion ignores case."
1803 :group 'minibuffer
1804 :type 'boolean
1805 :version "22.1")
1806
1799(defun completion--in-region (start end collection &optional predicate) 1807(defun completion--in-region (start end collection &optional predicate)
1800 (with-wrapper-hook 1808 (with-wrapper-hook
1801 ;; FIXME: Maybe we should use this hook to provide a "display 1809 ;; FIXME: Maybe we should use this hook to provide a "display
@@ -2268,14 +2276,6 @@ except that it passes the file name through `substitute-in-file-name'.")
2268 "The function called by `read-file-name' to do its work. 2276 "The function called by `read-file-name' to do its work.
2269It should accept the same arguments as `read-file-name'.") 2277It should accept the same arguments as `read-file-name'.")
2270 2278
2271(defcustom read-file-name-completion-ignore-case
2272 (if (memq system-type '(ms-dos windows-nt darwin cygwin))
2273 t nil)
2274 "Non-nil means when reading a file name completion ignores case."
2275 :group 'minibuffer
2276 :type 'boolean
2277 :version "22.1")
2278
2279(defcustom insert-default-directory t 2279(defcustom insert-default-directory t
2280 "Non-nil means when reading a filename start with default dir in minibuffer. 2280 "Non-nil means when reading a filename start with default dir in minibuffer.
2281 2281