1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
emacs/lisp
João Távora 63fd71cd09 Improve scoring algorithm for flex-style completions
The previous algorithm had two problems: it considered non-matches in
the beginning and end of the string as matching "holes" and failed to
penalize larger holes, making flex-score-match-tightness only
effective in some corner cases.

The new formula, which is described in code and in pseudo-code in the
comments, fixes these problems.

As a result, by default, C-h f flex now correctly bubbles up
"company-search-flex-regexp" to the top, in front of "file-exists-p".
With a flex-score-match-tightness smaller than 1.0, the situation is
reversed.

* lisp/minibuffer.el (flex-score-match-tightness): Adjust default
value.  Improve docstring example.
(completion-pcm--hilit-commonality): Improve example.  Remove unused
variable.  Improve algorithm.
2019-10-27 01:46:56 +01:00
..
calc Fix optional parameter passing in calc-fin-* functions 2019-10-19 11:46:17 +02:00
calendar Clean up previous icalendar.el change 2019-10-21 21:21:50 +02:00
cedet * lisp/cedet/mode-local.el: Clean up name space 2019-10-24 23:06:23 -04:00
emacs-lisp * lisp/tab-bar.el (tab-bar-switch-to-recent-tab): New command. 2019-10-27 01:16:10 +03:00
emulation Remove more XEmacs compat code from viper-*.el 2019-10-21 21:19:25 +02:00
erc Ensure that the prompt is kept on the final line 2019-10-23 11:55:13 +02:00
eshell Improve doc string of eshell and eshell-buffer-name 2019-10-20 15:14:57 +02:00
gnus Fix gnus-thread-hide-subtree defcustom 2019-10-25 12:41:36 +02:00
image Change the commands in image-converter--converters to lists 2019-09-30 06:29:27 +02:00
international Use text properties instead of truncating strings 2019-10-07 20:11:26 +02:00
language Omit one more superfluous "-" in regexp 2019-10-05 03:15:12 -07:00
leim/quail Updated to match more recent versions of Praat. 2019-09-17 13:56:28 +02:00
mail Try to not put SMTP passwords in the *Messages* buffer 2019-10-21 22:38:44 +02:00
mh-e lisp/*.el: Force non-nil result to t, to match docstring 2019-10-14 23:53:16 +02:00
net Merge from origin/emacs-26 2019-10-26 09:55:12 -07:00
nxml lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
obsolete lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
org lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
play Remove XEmacs compat code from decipher.el 2019-10-20 23:05:40 +02:00
progmodes CC Mode: Fix positioning of point whilst inserting comments without non-ws 2019-10-25 20:11:48 +00:00
term Update X keysym mapping 2019-09-28 17:08:19 +03:00
textmodes Improve support for biblatex and cleveref macros 2019-10-26 20:38:55 +02:00
url Make url-hexify-string accept a list of allowed chars (bug#26469) 2019-10-14 06:46:47 +02:00
vc Improve the documentation of 'vc-tor' 2019-10-26 12:57:09 +03:00
abbrev.el * lisp/abbrev.el (abbrev-prefix-mark): Fix a typo. (Bug#36715) 2019-07-18 15:44:51 +03:00
align.el Declare unused vhdl code in align.el obsolete 2019-10-04 17:11:53 +02:00
allout-widgets.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
allout.el
ansi-color.el
apropos.el lisp/*.el, src/*.c: Fix typos in docstrings 2019-09-19 04:32:25 +02:00
arc-mode.el
array.el Add conditional operator xor to subr.el 2019-08-06 13:38:47 +02:00
auth-source-pass.el lisp/*.el, src/*.c: Fix typos in docstrings 2019-09-19 04:32:25 +02:00
auth-source.el lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
autoarg.el
autoinsert.el Various doc fixes for auto-insert-mode 2019-10-22 18:06:01 +02:00
autorevert.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
avoid.el Fix two mouse drag and drop issues (Bug#28620, Bug#36269) 2019-08-04 09:21:18 +02:00
battery.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
bindings.el Bind Scroll_Lock to scroll-lock-mode globally 2019-10-04 18:02:45 +02:00
bookmark.el Remove support for upgrading from old bookmark file format 2019-09-08 22:48:20 +02:00
bs.el
buff-menu.el Make list-buffers--refresh preserve marks 2019-10-13 22:56:44 +02:00
button.el button-* function doc string clarifications 2019-10-12 21:47:47 +02:00
calculator.el Remove no-longer-needed integer overflow code 2019-07-22 16:36:50 -07:00
case-table.el
cdl.el
ChangeLog.1
ChangeLog.2
ChangeLog.3 ; Fix typo, insure -> ensure in ChangeLogs 2019-07-05 21:50:29 -04:00
ChangeLog.4
ChangeLog.5 Merge from origin/emacs-26 2019-07-06 12:51:30 -07:00
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.17 lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
char-fold.el * lisp/char-fold.el: Rename char-fold-make-table to char-fold--make-table. 2019-07-29 01:55:34 +03:00
chistory.el
cmuscheme.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
color.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
comint.el Respect buffer-local values in comint-read-input-ring 2019-10-01 21:22:28 +02:00
completion.el * lisp/completion.el (completion-kill-region): Doc fix. 2019-09-21 10:05:20 +03:00
composite.el Allow Zs characters to be composed 2019-09-07 12:19:06 +03:00
COPYING
cus-dep.el
cus-edit.el Don't discard customizations in progress when adding comments (Bug#5358) 2019-09-27 18:06:36 +02:00
cus-face.el Added face parameter :extend. 2019-10-14 14:18:39 +02:00
cus-start.el Provide default value for tab-name/frame-name reading minibuffer 2019-10-20 19:30:30 +03:00
cus-theme.el
custom.el Fix load-theme bug with user-emacs-directory 2019-09-01 09:56:59 -07:00
dabbrev.el
delim-col.el Make delimit-columns-region say what it does 2019-07-09 04:50:37 +02:00
delsel.el
descr-text.el Make description of text properties on the form `(string ...)' work 2019-07-30 12:09:12 +02:00
desktop.el * lisp/desktop.el (desktop-read): With argument, ask the user for DIRNAME. 2019-09-26 12:17:20 +02:00
dframe.el Remove final XEmacs compat code from dframe.el 2019-09-09 01:13:54 +02:00
dired-aux.el dired-dwim-target uses most recently visited window instead of next window. 2019-10-27 02:20:15 +03:00
dired-x.el Add some sanity checks to dired-x.el key bindings 2019-10-09 09:38:11 +02:00
dired.el dired-dwim-target uses most recently visited window instead of next window. 2019-10-27 02:20:15 +03:00
dirtrack.el
disp-table.el
display-fill-column-indicator.el
display-line-numbers.el
dnd.el lisp/*.el, src/*.c: Fix typos in docstrings 2019-09-19 04:32:25 +02:00
doc-view.el Adapt doc-view to latest image-mode changes 2019-10-25 22:19:46 +02:00
dom.el Add a new `dom-search' function 2019-09-27 00:33:45 +02:00
dos-fns.el
dos-vars.el
dos-w32.el
double.el
dynamic-setting.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
ebuff-menu.el
echistory.el
ecomplete.el New function time-convert 2019-08-05 18:37:29 -07:00
edmacro.el
ehelp.el
elec-pair.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
electric.el Correctly reindent previous line in electric-indent-mode 2019-07-02 16:10:45 +01:00
elide-head.el
emacs-lock.el lisp/*.el: Force non-nil result to t, to match docstring 2019-10-17 02:08:43 +02:00
env.el
epa-dired.el
epa-file.el Preserve more markers when reverting .gpg files 2019-09-04 15:20:00 +02:00
epa-hook.el
epa-mail.el
epa.el Change the lighter in epa-info-mode 2019-09-27 17:49:37 +02:00
epg-config.el Add -unknown to version-regexp-alist 2019-10-13 04:59:44 +02:00
epg.el Make display of S/MIME signatures slightly better 2019-10-23 10:50:29 +02:00
expand.el
ezimage.el Remove XEmacs compat code from ezimage.el 2019-10-19 01:13:42 +02:00
face-remap.el Fix internal-lisp-face-attributes to match face. 2019-10-20 16:45:21 +02:00
facemenu.el Fix usage of remove-text-properties 2019-08-01 17:04:53 +03:00
faces.el Add ':extend t' face attribute to diff faces (bug#37774) 2019-10-19 23:51:03 +03:00
ffap.el Remove XEmacs compat code from ffap.el 2019-10-17 15:25:07 +02:00
filecache.el
fileloop.el
filenotify.el Distinguish different file notification events 2019-07-31 21:22:05 +02:00
files-x.el Invalidate dir-locals-directory-cache when writing dir-local file 2019-08-18 15:49:29 -07:00
files.el lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nil 2019-10-17 02:45:06 +02:00
filesets.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
find-cmd.el
find-dired.el
find-file.el
find-lisp.el New function time-convert 2019-08-05 18:37:29 -07:00
finder.el Make finder-exit use quit-window (Bug#33610) 2019-07-20 12:23:07 +03:00
flow-ctrl.el
foldout.el
follow.el Handle scroll-error-top-bottom in follow.el and view.el (bug#21893) 2019-07-08 01:35:35 +03:00
font-core.el lisp/*.el, src/*.c: Fix typos in docstrings 2019-09-19 04:32:25 +02:00
font-lock.el
format-spec.el Fix last change to format-spec 2019-07-20 16:46:04 +01:00
format.el
forms.el Fix usage of remove-text-properties 2019-08-01 17:04:53 +03:00
frame.el Provide default value for tab-name/frame-name reading minibuffer 2019-10-20 19:30:30 +03:00
frameset.el * lisp/frameset.el (frameset-restore): Make sure last-focus frame has focus. 2019-08-18 01:40:32 +03:00
fringe.el
generic-x.el
help-at-pt.el
help-fns.el Added face parameter :extend. 2019-10-14 14:18:39 +02:00
help-macro.el
help-mode.el Factor out the lambda from help-function-def 2019-10-11 21:58:26 +02:00
help.el Upcase parameters in things like "&optional (arg 3)" 2019-10-09 09:06:33 +02:00
hex-util.el
hexl.el Revert "Apply font-lock in hexl-mode buffers" 2019-06-27 16:28:22 +02:00
hfy-cmap.el
hi-lock.el Hi-lock lines up to right margin (Bug#15934) 2019-08-23 13:26:36 +02:00
hilit-chg.el
hippie-exp.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
hl-line.el Extend face hl-line after end-of-line 2019-10-14 14:18:41 +02:00
htmlfontify.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
ibuf-ext.el Make completion in the `E' command in *Ibuffer* work 2019-10-07 18:06:03 +02:00
ibuf-macs.el
ibuffer.el Fix customizing ibuffer-help-buffer-modes 2019-09-28 21:06:39 +02:00
icomplete.el
ido.el lisp/*.el: Force non-nil result to t, to match docstring 2019-10-14 23:53:16 +02:00
ielm.el
iimage.el Fix usage of remove-text-properties 2019-08-01 17:04:53 +03:00
image-dired.el Correct some more custom type specs 2019-10-11 14:17:08 +02:00
image-file.el Include ImageMagick file name regexps in image-file-name-regexp 2019-09-26 21:26:33 +02:00
image-mode.el Move point in the dired buffer with n'/p' in an image-mode buffer 2019-10-09 07:00:39 +02:00
image.el lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nil 2019-10-17 02:45:06 +02:00
imenu.el Fix the previous imenu commit 2019-09-20 15:01:52 +02:00
indent.el
info-look.el
info-xref.el
info.el Fix display of Info files on TTY frames 2019-10-19 12:12:31 +03:00
informat.el
isearch.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
isearchb.el
jit-lock.el
jka-cmpr-hook.el
jka-compr.el
json.el Improve pretty-printing of multiple JSON snippets in a region 2019-08-02 18:05:13 +02:00
jsonrpc.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
kermit.el
kmacro.el
ldefs-boot.el Use 'C-x t' for tab-prefix-map instead of 'C-x 6' still used by 2C-mode-map. 2019-10-20 01:06:38 +03:00
linum.el
loadhist.el
loadup.el Text-based nox builds compiled without X window support 2019-09-04 22:05:05 +03:00
locate.el
lpr.el
ls-lisp.el Avoid signaling errors from ls-lisp--insert-directory on macOS 2019-08-31 09:54:05 +03:00
macros.el Print macro modified macro keys as characters not integers 2019-08-23 08:38:45 -04:00
Makefile.in Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo" 2019-06-26 10:24:59 -04:00
makesum.el
man.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
master.el
mb-depth.el
md4.el
menu-bar.el Make menu bar entries only point to named functions, not lambdas 2019-10-09 05:27:03 +02:00
midnight.el Add FIXMEs for subsecond support 2019-08-17 15:43:05 -07:00
minibuf-eldef.el
minibuffer.el Improve scoring algorithm for flex-style completions 2019-10-27 01:46:56 +01:00
misc.el
misearch.el
mouse-copy.el
mouse-drag.el
mouse.el Merge branch 'feature/tabs' 2019-10-01 23:15:03 +03:00
mpc.el
msb.el
mwheel.el Change font size in correct window using mouse wheel 2019-10-11 02:16:11 +02:00
newcomment.el Doc clarification in two comment-* functions 2019-08-17 16:35:59 -07:00
notifications.el
novice.el
obarray.el
outline.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
paren.el
password-cache.el password-cache: differentiate null values from non-existent entries 2019-08-12 01:43:19 +02:00
pcmpl-cvs.el
pcmpl-gnu.el Fix :version in recent commit 2019-09-19 14:39:34 +02:00
pcmpl-linux.el
pcmpl-rpm.el
pcmpl-unix.el
pcmpl-x.el
pcomplete.el * lisp/pcomplete.el: Mark 'pcomplete' command as obsolete 2019-10-03 10:36:00 -04:00
pixel-scroll.el
plstore.el
printing.el
proced.el Add conditional operator xor to subr.el 2019-08-06 13:38:47 +02:00
profiler.el Use the elisp xref backend in profiler buffers 2019-07-30 12:04:21 +02:00
ps-bdf.el
ps-def.el
ps-mule.el
ps-print.el ; * lisp/ps-print.el: Doc fix. 2019-09-09 01:13:54 +02:00
ps-samp.el
README
recentf.el * lisp/recentf.el (recentf-mode): Doc fix. (Bug#37772) 2019-10-17 20:10:35 +03:00
rect.el * lisp/rect.el (string-rectangle): Inherit input method in minibuffer 2019-10-15 11:08:18 -04:00
register.el Make register-preview ignore empty registers 2019-09-21 00:19:11 +02:00
registry.el lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
repeat.el
replace.el ; Fix typo in previous commit 2019-10-09 15:16:07 +02:00
reposition.el
reveal.el Allow reveal.el to toggle `display' properties 2019-09-21 12:04:00 +02:00
rfn-eshadow.el
rot13.el
rtree.el
ruler-mode.el
savehist.el Don't have savehist-save bug out on non-existing directory 2019-07-13 17:13:12 +02:00
saveplace.el
sb-image.el
scroll-all.el
scroll-bar.el Remove no-longer-needed integer overflow code 2019-07-22 16:36:50 -07:00
scroll-lock.el Bind Scroll_Lock to scroll-lock-mode globally 2019-10-04 18:02:45 +02:00
select.el Change gui--selection-value-internal comment into doc string 2019-09-13 14:57:23 +02:00
server.el Fix some file-mode races 2019-09-16 18:00:59 -07:00
ses.el Fix some &rest body edebug specs 2019-10-16 04:44:22 +02:00
shadowfile.el lisp/*.el: Force non-nil result to t, to match docstring 2019-10-17 02:08:43 +02:00
shell.el * lisp/shell.el (shell): Make shell buffer the current buffer. (Bug#37745) 2019-10-17 18:46:53 +02:00
simple.el special-mode doc string clarification 2019-10-19 10:43:37 +02:00
skeleton.el Fix skeleton edebug spec 2019-08-23 02:20:54 +02:00
so-long.el lisp/*.el: Fix typos and improve some docstrings 2019-10-20 12:12:27 +02:00
sort.el Enable sorting paragraphs when the final paragraph has no newline 2019-08-23 03:43:41 +02:00
soundex.el
speedbar.el Customizable tab-line-tabs-function and new buffer-local tab-line-mode. 2019-10-27 01:38:32 +03:00
startup.el Enable tab-bar-mode from X resources 2019-10-13 23:56:17 +03:00
strokes.el Use quit-window in some functions 2019-10-13 05:08:37 +02:00
subr.el subr.el (run-window-configuration-change-hook): Mark obsolete 2019-10-26 08:17:09 -04:00
svg.el Revert "Revert "Add support for paths to svg.el"" 2019-07-31 22:29:29 +02:00
t-mouse.el
tab-bar.el * lisp/tab-bar.el (tab-bar-switch-to-recent-tab): New command. 2019-10-27 01:16:10 +03:00
tab-line.el Customizable tab-line-tabs-function and new buffer-local tab-line-mode. 2019-10-27 01:38:32 +03:00
tabify.el
talk.el
tar-mode.el Add a new tar-copy-preserve-time variable 2019-10-14 05:41:45 +02:00
tempo.el
term.el Quadruple term-buffer-maximum-size (Bug#37584) 2019-10-07 12:15:48 +02:00
thingatpt.el Make number-at-point recognize some hex numbers 2019-09-20 19:37:54 +02:00
thread.el
thumbs.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
time-stamp.el Minor tweaks to time-stamp documentation strings 2019-10-13 07:59:59 -07:00
time.el New function time-convert 2019-08-05 18:37:29 -07:00
timezone.el Fix time-add rounding bug 2019-08-16 16:27:27 -07:00
tmm.el * lisp/tmm.el: Fix broken tmm-prompt (bug#34517) 2019-09-08 23:27:23 +03:00
tool-bar.el tool-bar-map doc string clarification 2019-10-12 07:30:36 +02:00
tooltip.el With tooltip-mode disabled, don't unconditionally clear the echo area 2019-09-16 22:17:51 +02:00
tree-widget.el Remove last XEmacs compat code from tree-widget.el 2019-10-20 22:52:02 +02:00
tutorial.el
type-break.el
uniquify.el Remove outdated comment in uniquify.el 2019-07-06 16:37:09 +02:00
userlock.el * etc/PROBLEMS: Describe navigation problem from Nautilus. (Bug#37573) 2019-10-08 15:41:00 +02:00
vcursor.el
version.el Replace manually crafted hex regexes with [:xdigit:] 2019-07-06 10:54:25 +03:00
view.el lisp/*.el, src/*.c: Fix typos in docstrings 2019-09-19 04:32:25 +02:00
vt100-led.el
vt-control.el
w32-fns.el
w32-vars.el
wdired.el Prevent infinite loop on entering wdired-mode 2019-07-16 11:04:56 +02:00
whitespace.el lisp/*.el: Force non-nil result to t, to match docstring 2019-10-14 23:53:16 +02:00
wid-browse.el Make widget-browse-at always detect an editable-field 2019-09-15 15:21:08 +02:00
wid-edit.el * lisp/wid-edit.el (widget-default-active): Normalize boolean result. 2019-10-16 15:42:41 +02:00
widget.el
windmove.el windmove.el: Suppress warnings for obsolete functions 2019-10-25 16:39:54 +02:00
window.el In 'bury-buffer' don't try to remove current buffer from minibuffer window 2019-10-17 19:35:29 +02:00
winner.el Correct some more custom type specs 2019-10-11 14:17:08 +02:00
woman.el
x-dnd.el lisp/*.el: Fix typos and other trivial doc fixes 2019-09-21 00:27:53 +02:00
xdg.el
xml.el Replace manually crafted hex regexes with [:xdigit:] 2019-07-06 10:54:25 +03:00
xt-mouse.el Merge branch 'feature/tabs' 2019-10-01 23:15:03 +03:00
xwidget.el

This directory contains source code for the parts of Emacs that are
written in Emacs Lisp.  *.el files are Emacs Lisp source, and the
corresponding *.elc files are byte-compiled versions.  Byte-compiled
files are architecture-independent.

The term subdirectory contains Lisp files that customize Emacs for
certain terminal types.  When Emacs starts, it checks the TERM
environment variable to get the terminal type and loads
'term/${TERM}.el' if it exists.

The other subdirectories hold Lisp packages grouped by their general
purpose.