emacs/lisp/textmodes
Stefan Monnier a2a25d2435 Add an :exit-function for completion-at-point.
* lisp/minibuffer.el (completion--done): New fun.
(completion--do-completion): Use it.  New arg `expect-exact'.
(minibuffer-complete, minibuffer-complete-word): Don't output message,
since completion--do-completion does it for us now.
(minibuffer-force-complete): Use completion--done and
completion--replace.  Handle sole-completion case with more care.
(minibuffer-complete-and-exit): Use new `expect-exact' arg.
(completion-extra-properties): New var.
(completion-annotate-function): Make obsolete.
(minibuffer-completion-help): Adjust accordingly.
Use completion-list-insert-choice-function.
(completion-at-point, completion-help-at-point):
Bind completion-extra-properties.
(completion-pcm-word-delimiters): Add | (for uniquify, for example).
* lisp/simple.el (completion-list-insert-choice-function): New var.
(completion-setup-function): Preserve it.
(choose-completion): Pay attention to it, shuffle the code a bit.
(choose-completion-string): New arg `insert-function'.

* lisp/textmodes/bibtex.el: Convert to lexical binding.
(bibtex-mode-map): Use completion-at-point.
(bibtex-mode): Use define-derived-mode&completion-at-point-functions.
(bibtex-completion-at-point-function): New fun, from bibtex-complete.
(bibtex-complete): Define as obsolete alias.
(bibtex-complete-internal): Remove.
(bibtex-format-entry): Remove unused sub-group in regexp.
* lisp/shell.el (shell--command-completion-data)
(shell-environment-variable-completion):
* lisp/pcomplete.el (pcomplete-completions-at-point):
* lisp/comint.el (comint--complete-file-name-data): Use :exit-function
instead of completion-table-with-terminator so it also works for
choose-completion.
2011-05-23 23:45:50 -03:00
..
.gitignore
artist.el fix many doubled-word typos 2011-05-10 15:57:12 +02:00
bib-mode.el Move keymap initialization into declaration. 2011-02-10 11:56:00 -05:00
bibtex-style.el Misc fixes, and use lexical-binding in more files. 2011-03-11 15:04:22 -05:00
bibtex.el Add an :exit-function for completion-at-point. 2011-05-23 23:45:50 -03:00
conf-mode.el Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
css-mode.el Misc fixes, and use lexical-binding in more files. 2011-03-11 15:04:22 -05:00
dns-mode.el Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
enriched.el Move keymap initialization into declaration. 2011-02-10 11:56:00 -05:00
fill.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
flyspell.el Don't quote lambda expressions with `quote'. 2011-05-23 14:57:17 -03:00
ispell.el ispell.el (ispell-add-per-file-word-list): Use `concat' to create string for insertion. 2011-05-03 16:11:39 +02:00
makeinfo.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
nroff-mode.el Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
page-ext.el Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
page.el Merge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef. 2011-04-22 20:07:16 -07:00
paragraphs.el Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org. 2011-02-27 17:07:29 -08:00
picture.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
po.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
refbib.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
refer.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
refill.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-auc.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-cite.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-dcr.el fix many doubled-word typos 2011-05-10 15:57:12 +02:00
reftex-global.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-index.el Merge changes from emacs-23 branch 2011-02-12 18:40:43 -05:00
reftex-parse.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-ref.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-sel.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-toc.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex-vars.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
reftex.el * lisp/bookmark.el: 2011-03-06 01:30:16 +01:00
remember.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
rst.el Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
sgml-mode.el * lisp/textmodes/sgml-mode.el (sgml-fill-nobreak): Give it a doc. (Bug#5326) 2011-03-05 18:30:44 -08:00
table.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
tex-mode.el * lisp/textmodes/tex-mode.el: Get rid of compilation-parse-errors-function 2011-01-28 16:16:04 -05:00
texinfmt.el Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
texinfo.el texinfo.el addition for bug#2783. 2011-03-07 20:42:40 -08:00
texnfo-upd.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
text-mode.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
tildify.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
two-column.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
underline.el Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00