aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.