mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
69ec333eab
The substring completion style completes "foo-bar" as "*foo-bar*". The partial-completion completion style completes "foo-bar" as "foo*bar*". Previously, it was not possible to get completion of "foo-bar" to act as "*foo*bar*", e.g. combining the partial-completion and substring styles. This would be especially useful for things like project-find-file. Now it is possible by customizing the completion-pcm-leading-wildcard variable to a non-nil value. Furthermore, it's convenient to be able to run regular (completion-pcm-leading-wildcard=t, non-substring) partial-completion before running completion-pcm-leading-wildcard=nil partial-completion, since the former provides more narrowly targeted completions. It's possible to do this by customizing completion-styles. Just add '(partial-completion ((completion-pcm-leading-wildcard t))) and '(partial-completion ((completion-pcm-leading-wildcard nil))) in that order. Then the completion machinery will first run partial-completion with completion-pcm-leading-wildcard=t, and if that returns no completions, run partial-completion with completion-pcm-leading-wildcard=nil. * lisp/minibuffer.el (completion--nth-completion): Allow an element of completion-styles to contain a list of bindings. (completion-styles): Document that. (completion-pcm-leading-wildcard): Add. (completion-pcm--string->pattern): Check completion-pcm-leading-wildcard. (bug#70217) |
||
---|---|---|
.. | ||
charsets | ||
e | ||
forms | ||
gnus | ||
images | ||
nxml | ||
org | ||
refcards | ||
schema | ||
srecode | ||
themes | ||
tutorials | ||
AUTHORS | ||
CALC-NEWS | ||
ChangeLog.1 | ||
compilation.txt | ||
COPYING | ||
copyright-assign.txt | ||
DEBUG | ||
DEVEL.HUMOR | ||
DISTRIB | ||
edt-user.el | ||
EGLOT-NEWS | ||
emacs_lldb.py | ||
emacs-buffer.gdb | ||
emacs-mail.desktop | ||
emacs.desktop | ||
emacs.icon | ||
emacs.metainfo.xml | ||
emacs.service | ||
emacsclient-mail.desktop | ||
emacsclient.desktop | ||
enriched.txt | ||
ERC-NEWS | ||
ETAGS.EBNF | ||
ETAGS.README | ||
future-bug | ||
gnus-tut.txt | ||
grep.txt | ||
HELLO | ||
HISTORY | ||
JOKES | ||
MACHINES | ||
MH-E-NEWS | ||
NEWS | ||
NEWS.1-17 | ||
NEWS.18 | ||
NEWS.19 | ||
NEWS.20 | ||
NEWS.21 | ||
NEWS.22 | ||
NEWS.23 | ||
NEWS.24 | ||
NEWS.25 | ||
NEWS.26 | ||
NEWS.27 | ||
NEWS.28 | ||
NEWS.29 | ||
NEWS.30 | ||
NEWS.unknown | ||
NEXTSTEP | ||
NXML-NEWS | ||
ORG-NEWS | ||
org.gnu.emacs.defaults.gschema.xml | ||
package-keyring.gpg | ||
PROBLEMS | ||
ps-prin0.ps | ||
ps-prin1.ps | ||
publicsuffix.txt | ||
README | ||
rgb.txt | ||
ses-example.ses | ||
spook.lines | ||
TERMS | ||
TODO | ||
w32-feature.el | ||
yow.lines |
This directory contains the architecture-independent files used by or with Emacs. This includes some text files of documentation for GNU Emacs or of interest to Emacs users, and the file of dumped docstrings for Emacs functions and variables. COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES File: emacs.icon Author: Sun Microsystems, Inc Copyright (C) 1999, 2001-2024 Free Software Foundation, Inc. License: GNU General Public License version 3 or later (see COPYING)