Skip to content

Commit

Permalink
Fix typos in the manual and in a comment
Browse files Browse the repository at this point in the history
* lisp/minibuffer.el (completion-pcm--hilit-commonality):
* doc/lispintro/emacs-lisp-intro.texi (Mode Line): Fix typos
(bug#51434).

Copyright-paperwork-exempt: yes
  • Loading branch information
jsynacek authored and larsmagne committed Oct 28, 2021
1 parent bea843d commit d72fefd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/lispintro/emacs-lisp-intro.texi
Expand Up @@ -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:

Expand Down
13 changes: 7 additions & 6 deletions lisp/minibuffer.el
Expand Up @@ -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)
;;
Expand Down

0 comments on commit d72fefd

Please sign in to comment.