1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
emacs/etc
Spencer Baugh 69ec333eab Allow customizing partial-completion to be more like substring
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)
2024-08-24 12:20:56 +03:00
..
charsets
e
forms
gnus
images ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
nxml
org
refcards Merge from savannah/emacs-30 2024-08-20 21:57:25 +08:00
schema nxml-mode: Add schemas for Mono/.NET related files 2024-05-18 21:36:47 +02:00
srecode
themes Update to modus-themes version 4.5.0 2024-08-21 11:07:47 +03:00
tutorials Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
AUTHORS Update files for Emacs 29.4 2024-06-22 01:16:33 +02:00
CALC-NEWS
ChangeLog.1 ; Fix typos 2024-07-18 11:46:50 +02:00
compilation.txt Make Compilation mode recognize non-legacy Kotlin/Gradle errors 2024-06-22 11:30:51 +03:00
COPYING
copyright-assign.txt Add assignment form as etc/copyright-assign.txt 2024-06-23 00:24:31 +02:00
DEBUG ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
DEVEL.HUMOR ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
DISTRIB
edt-user.el
EGLOT-NEWS
emacs_lldb.py * etc/emacs_lldb.py (Lisp_Object): Add TS types. 2024-06-10 18:50:15 +02:00
emacs-buffer.gdb
emacs-mail.desktop
emacs.desktop
emacs.icon
emacs.metainfo.xml
emacs.service
emacsclient-mail.desktop
emacsclient.desktop
enriched.txt
ERC-NEWS ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
ETAGS.EBNF
ETAGS.README
future-bug
gnus-tut.txt
grep.txt
HELLO Add support for Tifinagh script 2024-07-26 16:49:11 +03:00
HISTORY Revert "; * etc/HISTORY: Delete never-released Emacs 28.3." 2024-06-22 19:25:35 +02:00
JOKES
MACHINES
MH-E-NEWS
NEWS Allow customizing partial-completion to be more like substring 2024-08-24 12:20:56 +03:00
NEWS.1-17 ; Fix typos 2024-07-18 11:46:50 +02:00
NEWS.18
NEWS.19 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.20 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.21 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.22 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.23
NEWS.24
NEWS.25 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.26 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.27
NEWS.28
NEWS.29 Manually merge NEWS.29 from emacs-29 2024-06-22 18:51:46 +02:00
NEWS.30 Merge from origin/emacs-30 2024-07-27 04:27:53 -04:00
NEWS.unknown Fix first appearance records for some misdated functions 2024-04-30 18:08:03 +02:00
NEXTSTEP
NXML-NEWS ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
ORG-NEWS Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
org.gnu.emacs.defaults.gschema.xml
package-keyring.gpg
PROBLEMS Add PROBLEMS entry for bug#72517 2024-08-09 09:03:01 +03:00
ps-prin0.ps
ps-prin1.ps
publicsuffix.txt Update publicsuffix.txt from upstream 2024-06-23 00:27:02 +02:00
README
rgb.txt
ses-example.ses
spook.lines
TERMS
TODO Merge from origin/emacs-30 2024-07-19 14:31:53 -04:00
w32-feature.el ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
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)