~ubuntu-elisp/emacs/+git/master:scratch/bug-42149-funny-pcm-completion-scores

Last commit made on 2020-12-29
Get this branch:
git clone -b scratch/bug-42149-funny-pcm-completion-scores https://git.launchpad.net/~ubuntu-elisp/emacs/+git/master

Branch merges

Branch information

Name:
scratch/bug-42149-funny-pcm-completion-scores
Repository:
lp:~ubuntu-elisp/emacs/+git/master

Recent commits

03c160f... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Fix "first-differente" face in completion-pcm--hilit-commonality

Fixes: bug#42149

Depending on the position of point in the completion and the
completion style being used, it may or may not make sense for this
face to appear immediately after point. This patch assumes that it
should appear in the first non-matched character after point, which
may likely be the next one to type to disambiguate between two or more
completions.

Suggested by Dario Gjorgjevski <email address hidden>.

* lisp/minibuffer.el (completion-pcm--hilit-commonality): Fix
occasional misplacement of completions-first-differente.

d8c596f... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Robustify a helper function for test/lisp/minibuffer-tests.el

completion--pcm-first-difference-pos wasn't taking into account the
fact that faces may come in lists. bug#42149

* test/lisp/minibuffer-tests.el
(completion--pcm-first-difference-pos): Robustify.

d333ec4... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Make a completion test robust to custom completion styles

* test/lisp/minibuffer-tests.el (completion-test1): Make test
resilient to more completion styles.

0265a99... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Add tests for bug#42149

* test/lisp/minibuffer-tests.el (completion--pcm-score)
(completion--pcm-first-difference-pos): New helpers.
(completion-pcm-test-1, completion-pcm-test-2)
(completion-pcm-test-3, completion-pcm-test-4)
(completion-pcm-test-5, completion-pcm-test-6)
(completion-substring-test-1, completion-substring-test-2)
(completion-substring-test-3, completion-substring-test-4)
(completion-flex-test-1, completion-flex-test-2)
(completion-flex-test-3): New tests.

Co-authored-by: Dario Gjorgjevski <email address hidden>

ee0e259... by Lars Ingebrigtsen <email address hidden>

Add some tests for align.el

1fc011c... by Glenn Morris

* src/xdisp.c (display_mode_line): I guess FALSE should be false.

6481da6... by Lars Ingebrigtsen <email address hidden>

Revert the previous display_string change

* src/xdisp.c (display_string): Revert adding the additional
ignore_text_properties parameter -- it was already covered by the
other mix of parameters.

88c9696... by Lars Ingebrigtsen <email address hidden>

Fix compact mode line text properties

* src/xdisp.c (display_mode_line): Display the compact mode
correctly (with text properties) (bug#45520).

03bab76... by Lars Ingebrigtsen <email address hidden>

Add a parameter to display_string to allow not ignoring text props

* src/xdisp.c (display_string): Add a parameter to allow not
ignoring text properties (bug#45520). Adjust callers throughout
xdisp.c.

a66f0d3... by Lars Ingebrigtsen <email address hidden>

Introduce new variable mode-line-compact

* doc/lispref/modes.texi (Mode Line Basics): Document it (bug#34476).

* src/xdisp.c (display_mode_line): Use it.
(syms_of_xdisp): New variable mode-line-compact.