1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-22 10:26:20 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
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
Stefan Monnier
14c24780c3 (completion-all-sorted-completions): New var.
(completion--flush-all-sorted-completions)
(completion-all-sorted-completions): New functions.
(minibuffer-force-complete): New command.
2008-05-21 20:52:44 +00:00
Stefan Monnier
a38313e106 (completion-boundaries): New function.
(completion--some): Delay errors.
(complete-with-action, completion-table-with-context): Handle `boundaries'.
(completion--try-word-completion): Avoid partial-completion
when the user hasn't entered anything yet.
(minibuffer-local-map, minibuffer-local-filename-completion-map)
(minibuffer-local-must-match-map, minibuffer-local-completion-map)
(minibuffer-local-must-match-filename-map, minibuffer-local-ns-map):
Setup default keybindings.
(completion--embedded-envvar-re): New var.
(completion--embedded-envvar-table): Use it.  Handle `boundaries' case.
(completion--file-name-table): Handle `boundaries' case.
(completion-pcm--pattern->regex): Avoid pathological backtracking.
(completion-pcm--all-completions): Add a `prefix' arg.
(completion-pcm--find-all-completions): New function.
(completion-pcm-all-completions, completion-pcm-try-completion): Use it.
2008-05-20 17:03:30 +00:00
Juanma Barranquero
cf43708e71 (completion-table-with-predicate): Don't use `iff' in docstring. 2008-05-08 03:37:39 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Andreas Schwab
5270bf519b (completion--insert-strings): Don't delete past
bol.
2008-05-04 09:30:57 +00:00
Stefan Monnier
e5b5b82d4e (completion--insert-strings): Use string-width rather than length. 2008-05-02 17:32:51 +00:00
Stefan Monnier
457d37ba22 (completion-hilit-commonality): Revert last change:
the leftover code was actually useful.
2008-05-02 17:02:52 +00:00
Stefan Monnier
b00942d090 (completion-pcm-try-completion): Typo. 2008-04-30 04:48:27 +00:00
Stefan Monnier
81ff94589d (completion--do-completion): Move point even if the completion makes no change.
(completion-pcm-try-completion): Fix computation of new point.
2008-04-30 03:41:39 +00:00
Stefan Monnier
7372b09caf (completion-hilit-commonality): Remove leftover code.
(completion-pcm--pattern->regex): Let `group' be a list of symbols.
(completion-pcm--hilit-commonality): New function.
(completion-pcm-all-completions): Use it.
2008-04-29 06:00:21 +00:00
Stefan Monnier
6138158d86 * minibuffer.el (completion-common-substring): Mark obsolete.
(completions-first-difference, completions-common-part): Move from simple.el.
(completion-hilit-commonality): New fun.
(display-completion-list, completion-emacs21-all-completions)
(completion-emacs22-all-completions): Use it.
* simple.el (completions-first-difference, completions-common-part):
Move to minibuffer.el.
(choose-completion-string): Use field functions and minibufferp.
(completion-setup-function): Don't set completions faces.
2008-04-29 05:36:55 +00:00
Stefan Monnier
602f074a51 (completion-pcm--all-completions): Don't pass nil to all-completions. 2008-04-28 13:57:20 +00:00
Juanma Barranquero
26c548b0a4 (completion-pcm-word-delimiters): Add :group.
(completion-pcm--all-completions): Doc fix.
(completion-styles-alist, completion-all-completions): Fix typos in docstrings.
2008-04-26 12:58:13 +00:00
Stefan Monnier
3420078700 (completion-table-with-context): Fix `pred' for the
various kinds of completion tables.
(completion-emacs22-try-completion): Place cursor after the /, as was
done in Emacs-22's minibuffer-complete-word.
Fix bug reported by David Hansen <david.hansen@gmx.net>.
(completion-emacs22-try-completion): Merge all mergable text rather than /.
(completion-pcm--delim-wild-regex): New var.
(completion-pcm-word-delimiters): New custom.
(completion-pcm--prepare-delim-re, completion-pcm--pattern-trivial-p)
(completion-pcm--string->pattern, completion-pcm--pattern->regex)
(completion-pcm--all-completions, completion-pcm-all-completions)
(completion-pcm--merge-completions, completion-pcm--pattern->string)
(completion-pcm-try-completion): New functions.
(completion-styles-alist): Add them.
(completion-styles): Add it to the default.
2008-04-26 01:47:11 +00:00
Glenn Morris
4e3870f5a3 (x-file-dialog): Declare as function. 2008-04-24 05:46:17 +00:00
Stefan Monnier
19c04f3966 (completion-try-completion): Add `point' argument. Change return value.
(completion-all-completions): Add `point' argument.
(minibuffer-completion-help): Pass the new `point' argument.
(completion--do-completion): Pass the whole field to try-completion.
(completion--try-word-completion): Rewrite, making fewer assumptions.
(completion-emacs21-try-completion, completion-emacs21-all-completions)
(completion-emacs22-try-completion, completion-emacs22-all-completions)
(completion-basic-try-completion, completion-basic-all-completions): New funs.
(completion-styles-alist): Use them.
2008-04-23 21:01:31 +00:00
Stefan Monnier
e8a5fe3ed8 (read-file-name): Don't let-bind default-directory.
Only abbreviate default-filename if it's a file.
2008-04-23 18:37:50 +00:00
Stefan Monnier
dbd50d4b77 * lisp/minibuffer.el (read-file-name-function, read-file-name-predicate)
(read-file-name-completion-ignore-case, insert-default-directory):
New vars, moved from fileio.c.
(read-file-name): New fun, moved from fileio.c.
* lisp/cus-start.el: Remove insert-default-directory and
read-file-name-completion-ignore-case.
* src/fileio.c (Vread_file_name_function, Vread_file_name_predicate)
(read_file_name_completion_ignore_case, insert_default_directory)
(Qdefault_directory): Move to minibuffer.el.
(Fread_file_name): Call the new `read-file-name' instead.
2008-04-23 18:19:57 +00:00
Juri Linkov
8b04c0ae76 (internal-complete-buffer-except): New function. 2008-04-22 19:47:13 +00:00
Juanma Barranquero
b0a5a021e3 (minibuffer-complete-and-exit): Fix last change. 2008-04-22 10:20:05 +00:00
Stefan Monnier
f50e56f0e1 (completion--file-name-table): Accept both the old dir' or the new pred' arg. 2008-04-21 21:16:13 +00:00
Stefan Monnier
3911966be9 (completion-try-completion): Change magic symbol
property name.  Rename from minibuffer-try-completion.
(completion-all-completions): Rename from minibuffer-all-completions.
Remove hide-spaces argument.
(completion--do-completion): Rename from minibuffer--do-completion.
(minibuffer-complete-and-exit): Call just try-completion rather than
completion-try-completion to fix up the case.
(completion--try-word-completion): Try to add space or hyphen before
making `string' a prefix of `completion'.
(completion--insert-strings): Rename from minibuffer--insert-strings.
2008-04-21 19:02:54 +00:00
Juanma Barranquero
b95c760067 (completion-table-dynamic): Fix typo, and reflow docstring.
(completion-setup-hook, display-completion-list, completion--file-name-table):
Fix typos in docstrings.
2008-04-21 00:17:56 +00:00
Stefan Monnier
af48580eee (completion-table-with-predicate): Typo. 2008-04-19 03:34:02 +00:00
Stefan Monnier
25c0d99966 * minibuffer.el (completion-table-with-context): Add support for `pred'.
(completion-table-with-terminator): Don't use complete-with-action
since we have to distinguish all three cases anyway.
(completion-table-with-predicate): New function.
(dynamic-completion-table): Add obsolete alias.
* minibuf.texi (Programmed Completion):
Replace dynamic-completion-table with the new completion-table-dynamic.
2008-04-19 03:23:15 +00:00
Stefan Monnier
d28cfdc285 (completion-table-with-terminator): Fix last fix. 2008-04-18 12:46:14 +00:00
Miles Bader
dc6ee347e3 Add arch tagline 2008-04-18 02:46:47 +00:00
Stefan Monnier
b531ac7813 (completion-table-with-terminator): Fix paren typo. 2008-04-17 14:45:27 +00:00