aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Synacek2021-10-28 23:32:59 +0200
committerLars Ingebrigtsen2021-10-28 23:33:12 +0200
commitd72fefdeabf2da7668aebc7ec0ff8008d63247a9 (patch)
tree965c557fa4bc61918f47016fa956a950bfcbeba3
parentbea843dee19f2ac69f0d7a753d3bd917760a0344 (diff)
downloademacs-d72fefdeabf2da7668aebc7ec0ff8008d63247a9.tar.gz
emacs-d72fefdeabf2da7668aebc7ec0ff8008d63247a9.zip
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
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi2
-rw-r--r--lisp/minibuffer.el13
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"
17843Finally, a feature I really like: a modified mode line. 17843Finally, a feature I really like: a modified mode line.
17844 17844
17845When I work over a network, I forget which machine I am using. Also, 17845When I work over a network, I forget which machine I am using. Also,
17846I tend to I lose track of where I am, and which line point is on. 17846I tend to lose track of where I am, and which line point is on.
17847 17847
17848So I reset my mode line to look like this: 17848So I reset my mode line to look like this:
17849 17849
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',
3579 ;; "hole" in the middle of the string is indicated by 3579 ;; "hole" in the middle of the string is indicated by
3580 ;; "-". Note that there are no "holes" near the edges 3580 ;; "-". Note that there are no "holes" near the edges
3581 ;; of the string. The completion score is a number 3581 ;; of the string. The completion score is a number
3582 ;; bound by ]0..1]: the higher the better and only a 3582 ;; bound by (0..1] (i.e., larger than (but not equal
3583 ;; perfect match (pattern equals string) will have 3583 ;; to) zero, and smaller or equal to one): the higher
3584 ;; score 1. The formula takes the form of a quotient. 3584 ;; the better and only a perfect match (pattern equals
3585 ;; For the numerator, we use the number of +, i.e. the 3585 ;; string) will have score 1. The formula takes the
3586 ;; length of the pattern. For the denominator, it 3586 ;; form of a quotient. For the numerator, we use the
3587 ;; first computes 3587 ;; number of +, i.e. the length of the pattern. For
3588 ;; the denominator, it first computes
3588 ;; 3589 ;;
3589 ;; hole_i_contrib = 1 + (Li-1)^(1/tightness) 3590 ;; hole_i_contrib = 1 + (Li-1)^(1/tightness)
3590 ;; 3591 ;;