1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

97 Commits

Author SHA1 Message Date
Chong Yidong
1f4e4f86c9 (PC-do-completion): Correct case when completion is unambiguous. 2009-01-28 15:34:32 +00:00
Glenn Morris
8989a9203f Replace last-command-char with last-command-event. 2009-01-09 04:44:15 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Stefan Monnier
da0bed9399 (PC-do-completion): Fix leftover bug from Emacs-21 when
the prompt was added to the minibuffer.
2008-12-02 07:08:35 +00:00
Chong Yidong
a88510924f (PC-do-complete-and-exit): Use minibuffer-confirm-exit-commands. 2008-11-29 21:41:11 +00:00
Chong Yidong
f8d106b0f8 (PC-do-complete-and-exit): Synch to 2008-11-24 change to
minibuffer.el; recognize `confirm' and `confirm-after-completion'
values for minibuffer-completion-confirm.
2008-11-28 19:11:58 +00:00
Chong Yidong
1aaaf8eaa8 * complete.el (PC-do-completion): Don't replace buffer contents
(bug#227).
2008-09-07 20:56:27 +00:00
Glenn Morris
fffa137cb7 American English spelling fix. 2008-06-27 07:34:53 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
2f65ac9e19 (PC-do-completion): Be more robust in the presence of
unexpected values in minibuffer-completion-predicate.
2008-04-23 18:39:22 +00:00
Stefan Monnier
c023a34f05 (PC-complete-as-file-name, PC-read-file-name-internal):
Treat minibuffer-completion-predicate as a predicate.
2008-04-21 21:18:07 +00:00
Stefan Monnier
30b775ff5d Minor re-indent. 2008-04-14 18:09:49 +00:00
Johan Bockgård
31d24a4b3a (PC-do-completion): Use regexp-quote. 2008-03-26 11:50:34 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Deepak Goel
f6e7ec0248 Fix possibly buggy calls to `message'. 2007-12-06 00:17:56 +00:00
Juanma Barranquero
da3e76dc20 (PC-expand-many-files): Remove.
(PC-do-completion): Call file-expand-wildcards instead of PC-expand-many-files.
2007-10-22 09:46:08 +00:00
Romain Francoise
9a8b3a5cd4 2007-09-06 Sean O'Rourke <sorourke@cs.ucsd.edu>
* complete.el (PC-do-completion): Don't try to treat
	  empty string as an abbreviation.
2007-09-06 17:12:17 +00:00
Michaël Cadilhac
f8a3deedc6 (PC-do-completion): Make RET accept a non-unique but complete
expansion again.
2007-08-26 19:20:20 +00:00
Richard M. Stallman
03ed845e65 (PC-lisp-complete-symbol): Complete symbol around point.
(PC-do-completion): Add "acronym completion" for symbols and
filenames, so e.g. "mvbl" expands to "make-variable-buffer-local".
2007-08-07 03:02:04 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
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
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Stefan Monnier
f15ca94483 (PC-do-complete-and-exit): Add support for the new
`confirm-only' confirmation mode.
2007-07-05 19:42:43 +00:00
Richard M. Stallman
b1916c6edb (partial-completion-mode): Remove advice of read-file-name-internal.
(PC-do-completion): Rebind minibuffer-completion-table.
(PC-read-file-name-internal): New function doing what
read-file-name-internal advice did.
2007-07-01 17:19:53 +00:00
Stefan Monnier
b4879b4331 (PC-bindings): Don't bind things already bound in the parent keymap. 2007-06-11 22:10:24 +00:00
Glenn Morris
e00c1b9cae (PC-goto-end, PC-do-completion-end): Make buffer-local. 2007-04-14 20:23:31 +00:00
Glenn Morris
d73bbb352c (PC-goto-end): New variable.
(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.
2007-04-14 19:33:06 +00:00
Glenn Morris
660fd6fb69 (partial-completion-mode): Set PC-do-completion-end to nil after use.
(PC-lisp-complete-symbol): Create and use a marker at `end',
rather than using point-marker.
2007-03-29 03:24:36 +00:00
Glenn Morris
1fbd183032 (PC-do-completion-end): New variable.
(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.
2007-03-28 03:28:49 +00:00
Glenn Morris
8dbe4a8cca (PC-do-completion): Compute completion-base-size in
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.
2007-03-27 03:17:42 +00:00
Stefan Monnier
414a17c9a5 (read-file-name-internal): Don't add the final > if the completion is not
finished (re-application of this patch, which was accidentally undone by Eli).
2007-03-21 19:23:12 +00:00
Martin Rudalics
a7b52a1e76 (PC-do-completion): Bind dirlength to nil to avoid
that buffer contents get erased during completion.
2007-03-10 08:39:11 +00:00
Glenn Morris
82db2cbb43 (PC-do-completion): Replace first call to try-completion with new
PC-try-completion.
2007-03-09 09:00:59 +00:00
Martin Rudalics
2ef31c1ca4 (PC-try-completion): New function.
(PC-do-completion, read-file-name-internal): Use it instead of
try-completion.
2007-03-09 07:30:29 +00:00
Chong Yidong
fff1a0775e (PC-bindings): Rebind M-TAB in read-expression-map. 2007-03-08 14:50:59 +00:00
Kim F. Storm
6e52f715f3 (PC-bindings): Remap lisp-complete-symbol to
PC-lisp-complete-symbol instead of binding M-TAB in global-map.
2007-03-07 15:08:46 +00:00
Michaël Cadilhac
85066604f0 (PC-do-completion): Delete duplicates in the list of possible completions. 2007-03-07 12:50:23 +00:00
Chong Yidong
b89d8a7719 (PC-do-completion): If completion-ignore-case is non-nil, replace
field with completion string before exiting.
2007-03-05 14:55:05 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
e91081eb9e Update copyright years. 2006-12-05 06:15:26 +00:00
Stefan Monnier
4a63ceb890 (PC-do-completion): Strip out completion-ignored-extensions
before checking whether there are multiple completions.
Don't use `list' unnecessarily when building completion tables.
2006-08-07 18:06:28 +00:00
Stefan Monnier
424f4c9cfa (PC-expand-many-files): Avoid signalling an error when
the current directory doesn't exist.  Reported by Michaël Cadilhac.
2006-08-02 14:08:49 +00:00
Juri Linkov
d46104aeee (partial-completion-mode): In lambda for
`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.
2006-06-28 14:16:20 +00:00
Eli Zaretskii
08fd202a3d (PC-do-completion): Retain capitalization of user input, when possible, even
if completion-ignore-case is set.
2006-06-23 13:05:40 +00:00
Stefan Monnier
35731e3bcd (PC-do-completion): Undo the addition of implicit
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.
2006-05-22 18:09:40 +00:00
Stefan Monnier
8d85a56561 (partial-completion-mode): Use 'choose-completion-string-functions to make
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.
2006-04-18 17:33:33 +00:00
Stefan Monnier
95983b950a (PC-expand-many-files): Try be more careful when parsing the shell's output. 2006-03-06 20:09:17 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Juri Linkov
fddf97f6cb (PC-do-completion): Remove `(equal (point) beg)' to
place point at the first different character in the minibuffer
even if this position is at the beginning of the minibuffer.
2005-12-16 19:08:42 +00:00
Richard M. Stallman
6c76000bb3 (partial-completion-mode): Doc fix. 2005-12-16 02:06:11 +00:00