1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00
Commit Graph

91 Commits

Author SHA1 Message Date
Stefan Monnier
c6432f1e13 (completion--embedded-envvar-table): Fix last change.
Ignore `pred' now that we receive one.  Handle test-completion specially.
2009-10-24 00:46:17 +00:00
Stefan Monnier
a452eee82d (completion-table-with-terminator): Allow to specify the terminator-regexp. 2009-10-22 16:14:49 +00:00
Stefan Monnier
528c56e2d1 * minibuffer.el (completion-table-with-terminator): Properly implement
boundaries, in case `terminator' appears in the suffix.
(completion--embedded-envvar-table): Don't return boundaries if
there's no valid completion.  Simplify.
(completion-file-name-table): New completion table extracted from
completion--file-name-table.
(completion--file-name-table): Use it.
(read-file-name-predicate): Declare obsolete.
(read-file-name): Use the pred arg i.s.o read-file-name-predicate.
* vc-bzr.el (vc-bzr-revision-completion-table): Use the new
completion-file-name-table, and use the `pred' argument.
* files.el (locate-file-completion-table): Use the `pred' arg rather
than read-file-name-predicate.
(abbreviate-file-name): Use \` rather than ^ for BOS.
2009-10-21 20:03:57 +00:00
Chong Yidong
7346a407f4 * minibuffer.el (read-file-name): Check for repeat before putting
a default argument in file-name-history (Bug#4657).

* emacs-lisp/lisp-mode.el (preceding-sexp): Recognize hash table
read syntax (Bug#4737).

* textmodes/sgml-mode.el (sgml-delete-tag): Use
sgml-looking-back-at.
2009-10-18 22:25:36 +00:00
Stefan Monnier
d5e637154f Replace completion-base-size by completion-base-position to fix bugs
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'.
2009-10-15 01:50:17 +00:00
Stefan Monnier
681e0e7c02 (completion-pcm--merge-completions): Make sure the
string we return is all made up of text from the completions rather
than part from the completions and part from the input (bug#4219).
2009-10-14 15:10:09 +00:00
Stefan Monnier
40ba988259 (completion--file-name-table): Return nil if there's
no file completion, even if substitute-in-file-name changed
the string (bug#4708).
2009-10-14 03:05:06 +00:00
Stefan Monnier
075518b529 (minibuffer-force-complete): Cycle the list, rather
than just dropping elements from it (bug#4504).
2009-09-24 02:37:37 +00:00
Glenn Morris
6e2ca89515 (completion-initials-expand): Fix typo. 2009-09-02 03:09:10 +00:00
Stefan Monnier
b001adf965 Remove todo item now done. 2009-09-01 20:20:11 +00:00
Stefan Monnier
fcb68f70a4 (completion-try-completion, completion-all-completions):
Remove ill-defined (and mistakenly installed and luckily never used nor
documented) `completion-styles' property.
(completion-initials-expand, completion-initials-all-completions)
(completion-initials-try-completion): New functions.
(completion-styles-alist): Add doc to each entry.
Add new `initials' entry.
2009-09-01 19:49:34 +00:00
Stefan Monnier
ab22be48bd (minibuffer-message): If the current buffer is not
a minibuffer, insert the message in the echo area rather than at the
end of the buffer.
(completion-annotate-function): New variable.
(minibuffer-completion-help): Use it.
(completion--embedded-envvar-table): Environment vars are
always case-sensitive.
2009-08-30 03:45:30 +00:00
Stefan Monnier
890429cc79 (minibuffer-hide-completions): New function.
(completion--do-completion): Use it.
(completions-annotations): New face.
(completion--insert-strings): Use it.
(completion-pcm--delim-wild-regex): Add docstring.
(completion-pcm--string->pattern): Add support for 0-width delimiters
in completion-pcm--delim-wild-regex.
2009-08-19 02:15:19 +00:00
Stefan Monnier
265d4549b0 (completion--do-completion): Move point for the #b001 case as well (bug#4176).
(minibuffer-complete, minibuffer-complete-word): Don't move point.
2009-08-18 19:11:41 +00:00
Jason Rumney
2aafe8087c (read-file-name): Treat confirm options to
MUSTMATCH as nil when invoking x-file-dialog.  (Bug#3969)
2009-08-02 14:56:04 +00:00
Stefan Monnier
1afbbf8521 (completion--try-word-completion): Don't disable
`partial-completion' any more.  Mark the added char instead.
(completion-pcm--string->pattern): Notice chars added by
completion--try-word-completion and treat them specially.
2009-04-14 02:02:30 +00:00
Chong Yidong
90810a8ef0 (minibuffer-complete-and-exit): Doc fix. 2009-03-17 04:39:09 +00:00
Chong Yidong
846b6ebaae (read-file-name): Doc fix. 2009-03-16 03:17:48 +00:00
Chong Yidong
68b113f645 (completion-styles): Add emacs22 completion style as fallback. 2009-03-15 14:29:12 +00:00
Jason Rumney
6462af0dee (read-file-name): Only split dir name when
default filename is missing.  (Bug#2585)
2009-03-09 13:31:23 +00:00
Juanma Barranquero
e35b306327 * minibuffer.el (internal-complete-buffer-except): Doc fix. (Bug#2315) 2009-02-13 10:35:40 +00:00
Stefan Monnier
f87ff5396e (completion--insert-strings): Fix up computation of
column position which manifested e.g. in proced's signal completion.
2009-01-21 21:20:55 +00:00
Juanma Barranquero
9f3618b5f0 * minibuffer.el (minibuffer-message): Fix regexp so it doesn't exclude
MESSAGEs with internal square brackets (i.e., " this [test] message").
  Use `string-match-p'.
  (completion--make-envvar-table, completion--file-name-table)
  (completion-pcm--string->pattern, completion-pcm--all-completions)
  (completion-pcm--filename-try-filter): Use `string-match-p'.
2009-01-14 02:29:52 +00:00
Glenn Morris
8989a9203f Replace last-command-char with last-command-event. 2009-01-09 04:44:15 +00:00
Stefan Monnier
1bba1cfc46 (completion-hilit-commonality): Don't presume
all-completions always include the input as prefix.
(completion-pcm--pattern-trivial-p): Accept a few more patterns
as trivial.
(completion-pcm--hilit-commonality): Remove leftover code that used to
deal with the now removed cdr-in-last-cons.
2009-01-06 04:17:04 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Stefan Monnier
125f795168 (completion-all-completions-with-base-size): Remove.
(completion-all-completions): Don't set it.
(completion-table-with-context, completion--file-name-table):
Don't add base-size in last cdr.
(completion-hilit-commonality): Add argument `base-size'.
(display-completion-list, completion-emacs21-all-completions)
(completion-emacs22-all-completions, completion-basic-all-completions):
Provide it.
(completion-pcm--all-completions): Don't need to remove the base-size
in last-cdr any more.
2008-12-21 05:20:06 +00:00
Chong Yidong
a25c543a3c (minibuffer-confirm-exit-commands): Add PC-complete and
PC-complete-word to the list.
2008-11-29 21:41:30 +00:00
Miles Bader
d182658510 Add and use minibuffer-confirm-exit-commands variable
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1483
2008-11-29 18:07:15 +00:00
Stefan Monnier
a231a45f50 (completion--try-word-completion): Don't ignore
partial-completion if it's the only style.
2008-11-29 02:39:19 +00:00
Chong Yidong
bec1e8a50e (minibuffer-complete-and-exit): Change `confirm-only' value of
minibuffer-completion-confirm to `confirm', and handle a
`confirm-after-completion' value.
2008-11-24 19:14:05 +00:00
Chong Yidong
8c9f211fd5 (delete-minibuffer-contents): Delete all minibuffer contents instead
of just the current field.
2008-10-29 21:30:44 +00:00
Eli Zaretskii
b8fc05a9f2 (apply-partially): Move from minibuffer.el to subr.el. 2008-10-19 21:07:17 +00:00
Stefan Monnier
15c72e1d4a (completion-pcm--pattern->regex): Undo last change.
(completion-pcm--all-completions): Move the case-fold-search binding to
it also applies to completion-regexp-list (used in all-completions).
(completion-pcm--hilit-commonality): Add missing case-fold-search.
2008-09-03 14:09:49 +00:00
Chong Yidong
1353c8da70 (completion-pcm--pattern->regex): When completion-ignore-case is
non-nil, generate a regexp that ignores case.
2008-09-01 21:34:23 +00:00
Chong Yidong
4b6f7dc970 (completion--try-word-completion): Disable partial-completion when
considering the addition of a space or hyphen.
2008-08-21 17:28:58 +00:00
Chong Yidong
e8061cd98c (completion-table-dynamic): Doc fix. 2008-08-19 04:34:54 +00:00
Stefan Monnier
72444d02b7 (display-completion-list): Re-state the obsolescence of `common-substring'. 2008-08-18 19:59:38 +00:00
Chong Yidong
7bc7f64d75 (display-completion-list): Revert last change. Only default base-size
to zero if completing in the minibuffer.
2008-08-15 00:10:03 +00:00
Chong Yidong
7ce8dff29a (completion-boundaries): Doc fix.
(display-completion-list): New arg BASE-SIZE, to specify an
overriding base-size.
2008-08-14 23:44:41 +00:00
Chong Yidong
9f6336e8ee (read-file-name-completion-ignore-case): Add cygwin to the list. 2008-07-31 21:07:11 +00:00
Dan Nicolaescu
7c2fb837ec * bitmaps/README:
* xfns.c:
* termcap.c:
* term.c:
* syswait.h:
* systty.h:
* systime.h:
* syssignal.h:
* sysdep.c:
* process.h:
* process.c:
* print.c:
* ndir.h:
* lread.c:
* keyboard.c:
* getpagesize.h:
* floatfns.c:
* fileio.c:
* emacs.c:
* doc.c:
* dispnew.c:
* dired.c:
* data.c:
* callproc.c:
* buffer.c:
* README:
* Makefile.in:
* s/template.h:
* s/msdos.h:
* m/vax.h: Remove VMS support.
* s/vms.h:
* vlimit.h:
* uaf.h:
* temacs.opt:
* param.h:
* ioctl.h: Remove file.

* descrip.mms:
* compile.com: Remove file.
* Create.c: Remove VMS support.

* message.el (Module):

* gnus-start.el (Module):

* gnus-registry.el (Module):

* textmodes/texinfmt.el:
* nxml/nxml-enc.el:
* mail/feedmail.el:
* international/mule.el:
* international/latexenc.el:
* emulation/viper-util.el:
* emulation/viper-init.el:
* emulation/viper-ex.el:
* emacs-lisp/bytecomp.el:
* version.el:
* subr.el:
* startup.el:
* sort.el:
* shadowfile.el:
* recentf.el:
* printing.el:
* paths.el:
* minibuffer.el:
* ls-lisp.el:
* loadup.el:
* hippie-exp.el:
* finder.el:
* files.el:
* ediff-util.el:
* ediff-ptch.el:
* ediff-init.el:
* ediff-diff.el:
* dired.el:
* dired-aux.el:
* cus-edit.el:
* bindings.el:
* arc-mode.el:
* add-log.el: Remove VMS support.
* obsolete/vmsproc.el:
* obsolete/vms-pmail.el:
* obsolete/vms-patch.el: Remove file.

* etags.c:
* emacsclient.c: Remove VMS support.

* termcap.src: Remove file.
* README:
* PROBLEMS:
* MACHINES: Remove VMS info.

* ediff.texi: Remove VMS support.

* os.texi:
* intro.texi:
* files.texi: Remove VMS support.

* emacs.texi: Remove VMS support.

* make-dist:
* README: Remove VMS support.
* vms: Remove directory.
2008-07-31 05:33:56 +00:00
Stefan Monnier
86011bf229 (completion-basic-try-completion): Use the text after
point to consrain the completion candidates.
(completion-basic-all-completions): Adjust accordingly.
2008-06-26 02:48:56 +00:00
Stefan Monnier
eee6de7323 (completion--merge-suffix): New function.
(completion-basic-try-completion): Use it.
(completion-pcm--find-all-completions): Add argument `filter'.
(completion-pcm--filename-try-filter, completion-pcm--merge-try): New funs.
(completion-pcm-try-completion): Use them.
2008-06-10 22:01:59 +00:00
Andreas Schwab
24f7ee4cee (minibuffer-message): Bind inhibit-quit around
sit-for.
2008-06-08 14:10:50 +00:00
Stefan Monnier
8ba31f366f * keymap.c (Vminibuffer_local_filename_must_match_map):
Rename from Vminibuffer_local_must_match_filename_map.
(syms_of_keymap):
* minibuf.c (Fcompleting_read): Adjust accordingly.
* commands.h: Rename declaration as well.
* minibuffer.el (minibuffer-local-must-match-filename-map):
Declare obsolete alias for the old name.
2008-06-05 05:44:12 +00:00
Juanma Barranquero
d9aa6b3358 (completion-table-dynamic): Doc fix. 2008-05-30 19:50:26 +00:00
Stefan Monnier
d4e88786de (completion-pcm-all-completions): Add the base-size. 2008-05-29 20:46:35 +00:00
Stefan Monnier
f838180339 * minibuffer.el (completion-boundaries): Change calling convention, so
`string' has the same semantics as in try-completion and all-completions.
(completion-table-with-context, completion--embedded-envvar-table)
(completion--file-name-table, completion-pcm--find-all-completions):
Adjust code accordingly.
* vc-bzr.el (vc-bzr-annotate-time): Reduce memory allocation.
(vc-bzr-revision-completion-table): Handle `boundaries' argument.
2008-05-23 01:58:15 +00:00
Stefan Monnier
c63028e1b4 (completion-pcm--find-all-completions): Don't add pseudo-completions. 2008-05-22 04:26:41 +00:00