aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2011-02-12 19:30:13 +0100
committerTassilo Horn2011-02-12 19:30:13 +0100
commite2784c87183787f8d5bffb0cf10e08fabe02ff91 (patch)
tree3486b3fb9c79c6ecf542c27e087a2ac8048822b1
parent563790b6db1fed5d81809ca826e19685b78461f4 (diff)
downloademacs-e2784c87183787f8d5bffb0cf10e08fabe02ff91.tar.gz
emacs-e2784c87183787f8d5bffb0cf10e08fabe02ff91.zip
* minibuffer.el (completion-table-case-fold): New function for
creating a case-insensitive completion table.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/minibuffer.el4
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 797624be6fb..e1bc8b94564 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-02-12 Tassilo Horn <tassilo@member.fsf.org>
2
3 * minibuffer.el (completion-table-case-fold): New function for
4 creating a case-insensitive completion table.
5
12011-02-12 Teodor Zlatanov <tzz@lifelogs.com> 62011-02-12 Teodor Zlatanov <tzz@lifelogs.com>
2 7
3 * net/tramp.el (tramp-default-method): Also check if 8 * net/tramp.el (tramp-default-method): Also check if
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 1b42ee1f2ce..3c8628c9cfa 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -196,6 +196,10 @@ You should give VAR a non-nil `risky-local-variable' property."
196 (setq ,var (,fun))) 196 (setq ,var (,fun)))
197 ,var)))) 197 ,var))))
198 198
199(defun completion-table-case-fold (table string pred action)
200 (let ((completion-ignore-case t))
201 (complete-with-action action table string pred)))
202
199(defun completion-table-with-context (prefix table string pred action) 203(defun completion-table-with-context (prefix table string pred action)
200 ;; TODO: add `suffix' maybe? 204 ;; TODO: add `suffix' maybe?
201 ;; Notice that `pred' may not be a function in some abusive cases. 205 ;; Notice that `pred' may not be a function in some abusive cases.