summaryrefslogtreecommitdiff
path: root/lisp/minibuffer.el
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs-23Stefan Monnier2010-11-091-5/+8
|\
| * * lisp/minibuffer.el (minibuffer-completion-help): Specify the end of theStefan Monnier2010-11-081-5/+8
| | | | | | | | | | | | completion field. Fixes: debbugs:7211
* | * lisp/minibuffer.el (completion-cycling): New var.Stefan Monnier2010-10-271-30/+32
| | | | | | | | | | | | | | | | | | | | | | (minibuffer-complete, completion--do-completion): Use completion--flush-all-sorted-completions. (minibuffer-complete): Only cycle if completion-cycling is set. (completion--flush-all-sorted-completions): Unset completion-cycling. (minibuffer-force-complete): Set completion-cycling. (completion-all-sorted-completions): Move declaration before first use. Fixes: debbugs:7266
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-10-191-4/+5
|\ \ | |/
| * * lisp/minibuffer.el (completion--replace): Move point where it belongsStefan Monnier2010-10-171-4/+5
| | | | | | | | | | | | when there's a common suffix. Fixes: debbugs:7215
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-10-081-49/+80
|\ \ | |/
| * Use lexical-let to avoid false matches in var completion (Bug#7056).Chong Yidong2010-10-031-53/+59
| | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion--some, completion--do-completion) (minibuffer-complete-and-exit, minibuffer-completion-help) (completion-basic-try-completion) (completion-basic-all-completions) (completion-pcm--find-all-completions): Use lexical-let to avoid some false matches in variable completion (Bug#7056)
| * * lisp/minibuffer.el (completion--replace): Better preserve markers.Stefan Monnier2010-10-011-1/+21
| | | | | | | | Fixes: debbugs:7138
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | * lisp/minibuffer.el (completions-format): Change default from nil toJuri Linkov2010-06-251-3/+3
| | | | | | | | `horizontal'. Remove `nil' value from :type. Doc fix. (Bug#6459)
* | * lisp/minibuffer.el (completion-file-name-table): Don't return a boundaryStefan Monnier2010-05-301-17/+25
| | | | | | | | | | | | | | | | past the end of `string'. (completion--file-name-table): Delegate to completion-file-name-table for the `boundaries' case. Fixes: debbugs:6299
* | Allow the default completion to cycle.Stefan Monnier2010-05-111-10/+59
| | | | | | | | | | | | * minibuffer.el (completion-cycle-threshold): New custom var. (completion--do-completion): Use it. (minibuffer-complete): Use cycling if appropriate.
* | * minibuffer.el (completion-pcm--pattern->regex): Fix last change.Stefan Monnier2010-05-111-2/+2
| | | | | | | | Fixes: debbugs:6160
* | * minibuffer.el (completion-pcm-complete-word-inserts-delimiters):Stefan Monnier2010-05-091-16/+24
| | | | | | | | | | | | | | | | | | | | New custom variable. (completion-pcm--string->pattern): Use it. (completion-pcm--pattern->regex, completion-pcm--pattern->string): Make it handle any symbol as `any'. (completion-pcm--merge-completions): Extract common suffix for the new `prefix' symbol as well. (completion-substring--all-completions): Use the new `prefix' symbol.
* | Merge from emacs-23Stefan Monnier2010-05-081-2/+2
|\ \ | |/
| * * minibuffer.el (completion-at-point): Doc fix.Glenn Morris2010-04-201-1/+3
| |
* | * files.el (auto-save-mode): Move to simple.el to fix bootstrap.Stefan Monnier2010-05-071-1/+1
| | | | | | | | | | * simple.el (auto-save-mode): Move from files.el. * minibuffer.el (completion--common-suffix): Fix copy&paste error.
* | * minibuffer.el: Revert previous change.Juanma Barranquero2010-05-071-2/+0
| |
* | * minibuffer.el (comps): Declare for byte-compiler.Juanma Barranquero2010-05-071-0/+2
| |
* | Extract common suffix for * in partial-completion.Stefan Monnier2010-05-051-1/+22
| | | | | | | | | | | | * minibuffer.el (completion--sreverse, completion--common-suffix): New functions. (completion-pcm--merge-completions): Extract common suffix when safe.
* | * minibuffer.el (tags-completion-at-point-function): Move to etags.el.Stefan Monnier2010-04-301-21/+0
| | | | | | | | | | | | * progmodes/etags.el (tags-completion-at-point-function): Remove left over interactive spec. Add autoloading stub. (complete-tag): Use tags-completion-at-point-function.
* | * minibuffer.el (tags-completion-at-point-function): Fix return value.Chong Yidong2010-04-301-4/+8
| |
* | * minibuffer.el (tags-completion-at-point-function): New function.Chong Yidong2010-04-291-16/+8
| | | | | | | | | | | | | | | | | | | | (completion-at-point-functions): Use it. * cedet/semantic.el (semantic-completion-at-point-function): New function. (semantic-mode): Use semantic-completion-at-point-function for completion-at-point-functions instead. * progmodes/etags.el (complete-tag): Revert last change.
* | Unify complete-symbol with completion-at-point.Chong Yidong2010-04-281-17/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bindings.el (complete-symbol): Move into minibuffer.el. * minibuffer.el (complete-tag): Move from etags.el. If tags completion cannot be performed, return nil instead of signalling an error. (completion-at-point): Make it an alias for complete-symbol. (complete-symbol): Move from bindings.el, and replace with the body of completion-at-point. * progmodes/etags.el (complete-tag): Move to minibuffer.el. * cedet/semantic.el (semantic-mode): When enabled, add semantic-ia-complete-symbol to completion-at-point-functions. * cedet/semantic/ia.el (semantic-ia-complete-symbol): Return nil if Semantic is not active.
* | (completion-styles-alist): Fix up last merge and document `substring'.Stefan Monnier2010-04-191-3/+6
| |
* | Merge from emacs-23Stefan Monnier2010-04-191-6/+32
|\ \ | |/
| * (completion-styles): Improve docstrings.Stefan Monnier2010-04-191-6/+32
| |
* | Fix Bug#5840.Michael Albinus2010-04-151-1/+2
| | | | | | | | | | | | * ido.el (ido-file-name-all-completions-1): * minibuffer.el (minibuffer-completion-help): * net/tramp.el (tramp-completion-mode-p): Use `non-essential'.
* | Merge from `emacs-23'.Stefan Monnier2010-03-241-3/+3
|\ \ | |/
| * Fix typos in docstrings.Juanma Barranquero2010-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * image-dired.el (image-dired-display-thumbs): Fix typo in docstring. (image-dired-read-comment): Doc fix. * json.el (json-object-type, json-array-type, json-key-type, json-false) (json-null, json-read-number): * minibuffer.el (completion-in-region-functions): * calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks) (cal-tex-cursor-week): * emacs-lisp/trace.el (trace-function): * eshell/em-basic.el (eshell/printnl): * eshell/em-dirs.el (eshell-last-dir-ring, eshell-parse-drive-letter) (eshell-read-last-dir-ring, eshell-write-last-dir-ring): * obsolete/levents.el (allocate-event, event-key, event-object) (event-point, event-process, event-timestamp, event-to-character) (event-window, event-x, event-x-pixel, event-y, event-y-pixel): * textmodes/reftex-vars.el (reftex-index-macros-builtin) (reftex-section-levels, reftex-auto-recenter-toc, reftex-toc-mode-hook) (reftex-cite-punctuation, reftex-search-unrecursed-path-first) (reftex-highlight-selection): Fix typos in docstrings.
| * * lisp/minibuffer.el (completion-in-region-functions): Fix docstring typos.Juanma Barranquero2010-03-191-2/+2
| |
* | Add a new completion style `substring'.Stefan Monnier2010-03-221-10/+44
|/ | | | | | | | | * minibuffer.el (completion-basic--pattern): New function. (completion-basic-try-completion, completion-basic-all-completions): Use it. (completion-substring--all-completions) (completion-substring-try-completion) (completion-substring-all-completions): New functions. (completion-styles-alist): New style `substring'.
* Fix in-buffer completion when after-change-functions modify the buffer.Stefan Monnier2010-02-271-8/+18
| | | | | * minibuffer.el (completion--replace): New function. (completion--do-completion): Use it and use relative movement.
* Make `initials' completion work for /hh -> /home/horn again (bug#5524).Stefan Monnier2010-02-041-3/+6
| | | | | | * minibuffer.el (completion-initials-expand): Only check the presence of delims *within* the boundaries, since otherwise the / delim is always found for files.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* (minibuffer-local-must-match-filename-map): Re-instate the varalias that wasStefan Monnier2009-12-121-0/+4
| | | | accidentally removed by the 2009-11-19 change (bug#5186).
* * minibuffer.el (completion-at-point-functions): New var.Stefan Monnier2009-12-071-0/+30
| | | | | | | | | | | | | | | | | | | (completion-at-point): New command. * indent.el (indent-for-tab-command): Handle the new `complete' behavior. * progmodes/python.el (python-mode-map): Use completion-at-point. (python-completion-at-point): Rename from python-partial-symbol and adjust for use in completion-at-point-functions. (python-mode): Setup completion-at-point for Python completion. * emacs-lisp/lisp.el (lisp-completion-at-point): New function extracted from lisp-complete-symbol. (lisp-complete-symbol): Use it. * emacs-lisp/lisp-mode.el (emacs-lisp-mode): Use define-derived-mode, setup completion-at-point for Elisp completion. (emacs-lisp-mode-map, lisp-interaction-mode-map): Use completion-at-point. * ielm.el (ielm-map): Use completion-at-point. (inferior-emacs-lisp-mode): Setup completion-at-point for Elisp completion. * progmodes/sym-comp.el: Move to... * obsolete/sym-comp.el: Move from progmodes.
* (minibuffer-complete-and-exit): Don't replace theStefan Monnier2009-12-061-18/+38
| | | | | | minibuffer's content with itself. Fold the confirm-after-completion case into the `confirm' case. (completion-pcm-word-delimiters): Add : and / to the delimiters.
* (completion-in-region): Improve docstring.Stefan Monnier2009-12-061-0/+1
|
* (completion-pcm--merge-try): Also consider placing point after a star, ifStefan Monnier2009-12-051-1/+3
| | | | that's the only place where modifications can make progress.
* Provide additional default values (file name at point or at theJuri Linkov2009-11-251-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | current Dired line) via M-n for file reading minibuffers. (Bug#5010) * minibuffer.el (read-file-name-defaults): New function. (read-file-name): Reset `minibuffer-default' to nil when it duplicates initial input `insdef'. Bind `minibuffer-default-add-function' to lambda that calls `read-file-name-defaults' in `minibuffer-selected-window'. (minibuffer-insert-file-name-at-point): New command. * files.el (file-name-at-point-functions): New defcustom. (find-file-default): Remove defvar. (find-file-read-args): Don't use `find-file-default'. Move `minibuffer-with-setup-hook' that sets `minibuffer-default' to `read-file-name'. (find-file-literally): Use `read-file-name' with `confirm-nonexistent-file-or-buffer'. * ffap.el (ffap-guess-file-name-at-point): New autoloaded function. * dired.el (dired-read-dir-and-switches): Move `minibuffer-with-setup-hook' that sets `minibuffer-default' to `read-file-name'. (dired-file-name-at-point): New function. (dired-mode): Add hook `dired-file-name-at-point' to `file-name-at-point-functions'.
* * window.el (display-buffer-mark-dedicated): New var.Stefan Monnier2009-11-191-8/+13
| | | | | (display-buffer): Obey it. * minibuffer.el (minibuffer-completion-help): Use it.
* (completions-format): New defcustom.Juri Linkov2009-11-191-19/+58
| | | | (completion--insert-strings): Implement vertical format.
* * abbrev.el (abbrev-with-wrapper-hook): (re)move...Stefan Monnier2009-11-191-4/+27
| | | | | | | | * simple.el (with-wrapper-hook): ...to here. Add argument `args'. * minibuffer.el (completion-in-region-functions): New hook. (completion-in-region): New function. * emacs-lisp/lisp.el (lisp-complete-symbol): * pcomplete.el (pcomplete-std-complete): Use it.
* (minibuffer-completion-help): Use minibuffer-hide-completions.Stefan Monnier2009-11-121-6/+1
|
* * progmodes/grep.el (grep-regexp-alist):Dan Nicolaescu2009-11-111-1/+1
| | | | | | | | | * international/mule-cmds.el (iso-2022-control-alist): * emacs-lisp/timer.el (timer-duration-words): * subr.el (version-separator, version-regexp-alist): * minibuffer.el (completion-styles-alist): * faces.el (face-attribute-name-alist, list-faces-sample-text): Change defvars to defconsts.
* (read-file-name): Support a list of default valuesJuri Linkov2009-11-101-5/+14
| | | | | in `default-filename'. Use the first file name where only one element is required. Doc fix.
* * minibuffer.el (read-file-name): Don't use file dialogs forChong Yidong2009-11-021-4/+8
| | | | remote directories (Bug#99).
* (all-completions): Declare the 4th arg obsolete.Stefan Monnier2009-10-261-2/+8
|
* (completion--embedded-envvar-table): Fix last change.Stefan Monnier2009-10-241-4/+19
| | | | Ignore `pred' now that we receive one. Handle test-completion specially.