summaryrefslogtreecommitdiff
path: root/lisp/complete.el
Commit message (Collapse)AuthorAgeFilesLines
* Move complete.el to lisp/obsolete.Stefan Monnier2010-04-121-1123/+0
|
* Fix keywords.Juri Linkov2010-03-141-0/+1
| | | | | | | | | | | | | | | | | * finder.el (finder-compile-keywords): Replace `princ' with `prin1' on a list of symbols interned from keyword strings. * emacs-lisp/lisp-mnt.el (lm-keywords-list): If `keywords' contains a comma, then split keywords using a comma and optional whitespace. Otherwise, split by whitespace. * complete.el: * face-remap.el: * log-view.el: * net/hmac-def.el: * net/hmac-md5.el: * net/netrc.el: * progmodes/mixal-mode.el: Fix keywords.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Replace completion-base-size by completion-base-position to fix bugsStefan Monnier2009-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | such as (bug#4699). * simple.el (completion-base-position): New var. (completion-base-size): Mark as obsolete. (choose-completion): Make it work for mouse events as well. Pass the new base-position to choose-completion-string. (choose-completion-guess-base-position): New function, extracted from choose-completion-delete-max-match. (choose-completion-delete-max-match): Use it. Make obsolete. (choose-completion-string): Use the new base-position info. (completion-root-regexp): Delete. (completion-setup-function): Preserve completion-base-position. Eliminate obsolete base-size manipulation. * minibuffer.el (display-completion-list): Don't mess with base-size. (minibuffer-completion-help): Set completion-base-position instead. * mouse.el (mouse-choose-completion): Redefine as a mere alias to choose-completion. * textmodes/bibtex.el (bibtex-complete): * emacs-lisp/crm.el (crm--choose-completion-string): Adjust to new calling convention. * complete.el (partial-completion-mode): Use minibufferp to avoid bumping into incompatible change to choose-completion-string-functions. * ido.el (ido-choose-completion-string): Make its calling convention more permissive. * comint.el (comint-dynamic-list-input-ring-select): Remove obsolete base-size manipulation. (comint-dynamic-list-input-ring): Use dotimes and push. * iswitchb.el (iswitchb-completion-help): Remove dead-code call to fundamental-mode. Use `or'.
* (PC-do-completion): Correct case when completion is unambiguous.Chong Yidong2009-01-281-22/+18
|
* Replace last-command-char with last-command-event.Glenn Morris2009-01-091-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (PC-do-completion): Fix leftover bug from Emacs-21 whenStefan Monnier2008-12-021-1/+2
| | | | the prompt was added to the minibuffer.
* (PC-do-complete-and-exit): Use minibuffer-confirm-exit-commands.Chong Yidong2008-11-291-1/+1
|
* (PC-do-complete-and-exit): Synch to 2008-11-24 change toChong Yidong2008-11-281-1/+10
| | | | | minibuffer.el; recognize `confirm' and `confirm-after-completion' values for minibuffer-completion-confirm.
* * complete.el (PC-do-completion): Don't replace buffer contentsChong Yidong2008-09-071-8/+1
| | | | (bug#227).
* American English spelling fix.Glenn Morris2008-06-271-3/+3
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (PC-do-completion): Be more robust in the presence ofStefan Monnier2008-04-231-6/+10
| | | | unexpected values in minibuffer-completion-predicate.
* (PC-complete-as-file-name, PC-read-file-name-internal):Stefan Monnier2008-04-211-3/+3
| | | | Treat minibuffer-completion-predicate as a predicate.
* Minor re-indent.Stefan Monnier2008-04-141-5/+5
|
* (PC-do-completion): Use regexp-quote.Johan Bockgård2008-03-261-2/+4
|
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | Fix possibly buggy calls to `message'.Deepak Goel2007-12-061-4/+4
| |
* | (PC-expand-many-files): Remove.Juanma Barranquero2007-10-221-57/+2
| | | | | | | | (PC-do-completion): Call file-expand-wildcards instead of PC-expand-many-files.
* | 2007-09-06 Sean O'Rourke <sorourke@cs.ucsd.edu>Romain Francoise2007-09-061-2/+3
| | | | | | | | | | * complete.el (PC-do-completion): Don't try to treat empty string as an abbreviation.
* | (PC-do-completion): Make RET accept a non-unique but completeMichaël Cadilhac2007-08-261-4/+4
| | | | | | | | expansion again.
* | (PC-lisp-complete-symbol): Complete symbol around point.Richard M. Stallman2007-08-071-16/+61
| | | | | | | | | | (PC-do-completion): Add "acronym completion" for symbols and filenames, so e.g. "mvbl" expands to "make-variable-buffer-local".
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | (PC-do-complete-and-exit): Add support for the newStefan Monnier2007-07-051-3/+13
| | | | | | | | `confirm-only' confirmation mode.
* | (partial-completion-mode): Remove advice of read-file-name-internal.Richard M. Stallman2007-07-011-22/+16
| | | | | | | | | | | | (PC-do-completion): Rebind minibuffer-completion-table. (PC-read-file-name-internal): New function doing what read-file-name-internal advice did.
* | (PC-bindings): Don't bind things already bound in the parent keymap.Stefan Monnier2007-06-111-9/+0
|/
* (PC-goto-end, PC-do-completion-end): Make buffer-local.Glenn Morris2007-04-141-3/+7
|
* (PC-goto-end): New variable.Glenn Morris2007-04-141-5/+21
| | | | | | | | | (partial-completion-mode) <choose-completion-string-functions>: Do not go to the end of the minibuffer if PC-goto-end is non-nil. (PC-do-completion): New optional fourth argument GOTO-END. Add a doc string. Set PC-goto-end for choose-completion. (PC-lisp-complete-symbol): Pass non-nil GOTO-END arg to PC-do-completion.
* (partial-completion-mode): Set PC-do-completion-end to nil after use.Glenn Morris2007-03-291-3/+14
| | | | | (PC-lisp-complete-symbol): Create and use a marker at `end', rather than using point-marker.
* (PC-do-completion-end): New variable.Glenn Morris2007-03-281-2/+12
| | | | | | | | | (partial-completion-mode) <choose-completion-string-functions>: Use PC-do-completion-end in the non-minibuffer case to replace the correct amount of text. (PC-do-completion): Set PC-do-completion-end for c-c-s-f. (PC-lisp-complete-symbol): Give marker the after-insertion type, to deal with improvements inserted after point.
* (PC-do-completion): Compute completion-base-size inGlenn Morris2007-03-271-16/+60
| | | | | | | the non-filename case, rather than setting to nil. (PC-lisp-complete-end): New variable. (PC-lisp-complete-symbol): Use PC-lisp-complete-end to store the original end in a series of consecutive invocations.
* (read-file-name-internal): Don't add the final > if the completion is notStefan Monnier2007-03-211-2/+3
| | | | finished (re-application of this patch, which was accidentally undone by Eli).
* (PC-do-completion): Bind dirlength to nil to avoidMartin Rudalics2007-03-101-1/+4
| | | | that buffer contents get erased during completion.
* (PC-do-completion): Replace first call to try-completion with newGlenn Morris2007-03-091-1/+1
| | | | PC-try-completion.
* (PC-try-completion): New function.Martin Rudalics2007-03-091-4/+27
| | | | | (PC-do-completion, read-file-name-internal): Use it instead of try-completion.
* (PC-bindings): Rebind M-TAB in read-expression-map.Chong Yidong2007-03-081-0/+4
|
* (PC-bindings): Remap lisp-complete-symbol toKim F. Storm2007-03-071-2/+2
| | | | PC-lisp-complete-symbol instead of binding M-TAB in global-map.
* (PC-do-completion): Delete duplicates in the list of possible completions.Michaël Cadilhac2007-03-071-0/+3
|
* (PC-do-completion): If completion-ignore-case is non-nil, replaceChong Yidong2007-03-051-2/+9
| | | | field with completion string before exiting.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update copyright years.Glenn Morris2006-12-051-2/+2
|
* (PC-do-completion): Strip out completion-ignored-extensionsStefan Monnier2006-08-071-38/+35
| | | | | before checking whether there are multiple completions. Don't use `list' unnecessarily when building completion tables.
* (PC-expand-many-files): Avoid signalling an error whenStefan Monnier2006-08-021-0/+6
| | | | the current directory doesn't exist. Reported by Michaël Cadilhac.
* (partial-completion-mode): In lambda forJuri Linkov2006-06-281-1/+3
| | | | | | `choose-completion-string-functions' use full function signature with 4 args, and move point to the end of the minibuffer only if arg `mini-p' is non-nil.
* (PC-do-completion): Retain capitalization of user input, when possible, evenEli Zaretskii2006-06-231-20/+50
| | | | if completion-ignore-case is set.
* (PC-do-completion): Undo the addition of implicitStefan Monnier2006-05-221-5/+13
| | | | | | wildcards if they did not lead to finding any match. (read-file-name-internal): Don't add the final > if the completion is not finished.
* (partial-completion-mode): Use 'choose-completion-string-functions to makeStefan Monnier2006-04-181-27/+39
| | | | | | | | | sure that choose-completion fills the minibuffer properly. (PC-old-read-file-name-internal): Remove. (PC-read-include-file-name-internal): Remove. Turn it into an advice of read-file-name-internal. (partial-completion-mode): Enable/disable this advice.