From d72fefdeabf2da7668aebc7ec0ff8008d63247a9 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Thu, 28 Oct 2021 23:32:59 +0200 Subject: [PATCH] Fix typos in the manual and in a comment * lisp/minibuffer.el (completion-pcm--hilit-commonality): * doc/lispintro/emacs-lisp-intro.texi (Mode Line): Fix typos (bug#51434). Copyright-paperwork-exempt: yes --- doc/lispintro/emacs-lisp-intro.texi | 2 +- lisp/minibuffer.el | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 391b6d9c590..308153f9231 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi @@ -17843,7 +17843,7 @@ xmodmap -e "keysym Alt_L = Meta_L Alt_L" Finally, a feature I really like: a modified mode line. When I work over a network, I forget which machine I am using. Also, -I tend to I lose track of where I am, and which line point is on. +I tend to lose track of where I am, and which line point is on. So I reset my mode line to look like this: diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index bc21f027b6e..ca82b4a9e60 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -3579,12 +3579,13 @@ between 0 and 1, and with faces `completions-common-part', ;; "hole" in the middle of the string is indicated by ;; "-". Note that there are no "holes" near the edges ;; of the string. The completion score is a number - ;; bound by ]0..1]: the higher the better and only a - ;; perfect match (pattern equals string) will have - ;; score 1. The formula takes the form of a quotient. - ;; For the numerator, we use the number of +, i.e. the - ;; length of the pattern. For the denominator, it - ;; first computes + ;; bound by (0..1] (i.e., larger than (but not equal + ;; to) zero, and smaller or equal to one): the higher + ;; the better and only a perfect match (pattern equals + ;; string) will have score 1. The formula takes the + ;; form of a quotient. For the numerator, we use the + ;; number of +, i.e. the length of the pattern. For + ;; the denominator, it first computes ;; ;; hole_i_contrib = 1 + (Li-1)^(1/tightness) ;; -- 2.39.2