1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

72 Commits

Author SHA1 Message Date
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
Stefan Monnier
f679907bf2 (PC-completion-as-file-name-predicate): Use minibuffer-completing-file-name.
(partial-completion-mode): Use find-file-not-found-functions.
(PC-lisp-complete-symbol): Use with-syntax-table.
(PC-look-for-include-file): Remove dead setq.
(PC-look-for-include-file, PC-expand-many-files, PC-do-completion)
(PC-complete): Use with-current-buffer.
2005-11-27 20:53:55 +00:00
Eli Zaretskii
101568527f (partial-completion-mode): Mention completion-auto-help in the doc string. 2005-11-19 12:09:25 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Stefan Monnier
a7ad007929 (PC-read-include-file-name-internal): Use test-completion. 2005-03-28 19:33:45 +00:00
Werner LEMBERG
932fb767f5 * complete.el, thumbs.el: Replace legal' with valid'. 2005-03-25 09:49:00 +00:00
Luc Teirlinck
1b368e3120 (PC-is-complete-p): delete.
(PC-do-completion): Replace all calls to `PC-is-complete-p' with calls
to `test-completion'.
2003-12-23 23:42:28 +00:00
Stefan Monnier
93f4fe7a77 (PC-do-completion): Do not forget to use `pred' as the default-directory
when completing file names.
2003-10-20 20:54:16 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Noah Friedman
8e28519a40 (PC-do-completion): Do not add wildcards to pattern unless filename is
non-nil.
2002-12-02 08:51:39 +00:00
Stefan Monnier
c2801b5048 (PC-do-completion): Make partial-completion work
with incomplete directory names.
2002-11-08 23:39:29 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Richard M. Stallman
2ad432aba9 (partial-completion-mode): Doc fix. 2001-02-10 17:06:06 +00:00
Stefan Monnier
00089cadd7 (partial-completion-mode): Drop unneeded positional args. 2000-11-03 22:12:16 +00:00
Stefan Monnier
cc7e4da0a5 (partial-completion-mode) <defcustom>: Remove.
(partial-completion-mode): Use define-minor-mode.
(PC-do-completion): Understand `completion-auto-help = delay'
to mean to popup the completion buffer only the second time.
(PC-include-file-all-completions, PC-include-file-all-completions)
(PC-include-file-all-completions): Don't quote lambda.
2000-09-29 02:17:56 +00:00
Gerd Moellmann
356b1352b5 (PC-env-vars-alist): New variable.
(PC-complete-as-file-name): New function.
(partial-completion-mode): Initialize PC-env-vars-alist from
process-environment.
(PC-do-completion): Handle completion of env vars.
2000-06-15 14:42:19 +00:00
Dave Love
5f34457e85 (PC-look-for-include-file): Use :alnum: character class.
(partial-completion-mode): Add autoload cookie.
2000-05-22 19:14:50 +00:00
Stefan Monnier
d7a0208b27 (PC-do-complete-and-exit): use minibuffer-prompt-end to
detect an empty prompt.
1999-11-19 16:05:04 +00:00
Gerd Moellmann
f08d859437 (PC-do-completion): Use minibuffer-prompt-end to
find the start of the text.  Use field-string to read the user
input.
1999-11-03 23:50:40 +00:00
Eli Zaretskii
b38d1cc78e (PC-do-completion): If completing on file name,
reproduce str by concatenating its directory and basename parts.
1999-08-09 08:56:31 +00:00
Karl Heuer
5b0f8cbcbd Delete the wildcard expansion feature
since that is now standard in find-file.
(PC-try-load-many-files): Function deleted.
(PC-after-load-many-files): Function deleted.
(PC-many-files-list): Variable deleted.
(PC-disable-wildcards): Variable deleted.
(partial-completion-mode): Don't enable the wildcard feature.
(PC-look-for-include-file): Don't set global variables
`error', `buf' and `filename' here.
1999-04-26 04:59:46 +00:00
Karl Heuer
35dfd2ef08 (partial-completion-mode): Doc fix. 1999-03-30 21:23:15 +00:00
Karl Heuer
a399edf459 (partial-completion-mode): Doc fix. 1999-03-21 07:26:47 +00:00
Richard M. Stallman
06cab6db58 (PC-do-completion): Exclude ./ and ../ from completion. 1998-08-13 05:05:44 +00:00
Andreas Schwab
45200424de (PC-first-char): Use `other' widget type. 1998-06-24 08:50:59 +00:00