unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51434: [PATCH] Fix typos
@ 2021-10-27 12:12 Jan Synáček
  2021-10-27 15:24 ` Robert Pluim
  2021-10-28 21:34 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Synáček @ 2021-10-27 12:12 UTC (permalink / raw)
  To: 51434

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

Tags: patch


In GNU Emacs 28.0.60 (build 13, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4)
 of 2021-10-27 built on jsynacek-home
Repository revision: b81471279696e591ab91eb4eb10e9544f9f903ac
Repository branch: emacs-28
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Arch Linux

Configured using:
 'configure --with-native-compilation'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-typos.patch --]
[-- Type: text/patch, Size: 1800 bytes --]

From 7988c64fcede3b249e77b69ee77ec091d71769c1 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jan.synacek@gmail.com>
Date: Wed, 27 Oct 2021 13:38:08 +0200
Subject: [PATCH] Fix typos

* lisp/minibuffer.el (completion-pcm--hilit-commonality):
* doc/lispintro/emacs-lisp-intro.texi (Mode Line): Fix a typos.

Copyright-paperwork-exempt: yes.
---
 doc/lispintro/emacs-lisp-intro.texi | 2 +-
 lisp/minibuffer.el                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index 6ecd552ebb..8173f6a019 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -17839,7 +17839,7 @@ Mode Line
 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 bc21f027b6..19e02bdc79 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -3579,7 +3579,7 @@ completion-pcm--hilit-commonality
                 ;; "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
+                ;; 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
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#51434: [PATCH] Fix typos
  2021-10-27 12:12 bug#51434: [PATCH] Fix typos Jan Synáček
@ 2021-10-27 15:24 ` Robert Pluim
  2021-10-27 15:34   ` Lars Ingebrigtsen
  2021-10-28 21:34 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 5+ messages in thread
From: Robert Pluim @ 2021-10-27 15:24 UTC (permalink / raw)
  To: Jan Synáček; +Cc: 51434

>>>>> On Wed, 27 Oct 2021 14:12:34 +0200, Jan Synáček <jan.synacek@gmail.com> said:
    Jan>  When I work over a network, I forget which machine I am using.  Also,
    Jan> -I tend to I lose track of where I am, and which line point is on.
    Jan> +I tend to lose track of where I am, and which line point is on.

Yes.

    Jan>  So I reset my mode line to look like this:
 
    Jan> diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
    Jan> index bc21f027b6..19e02bdc79 100644
    Jan> --- a/lisp/minibuffer.el
    Jan> +++ b/lisp/minibuffer.el
    Jan> @@ -3579,7 +3579,7 @@ completion-pcm--hilit-commonality
    Jan>                  ;; "hole" in the middle of the string is indicated by
    Jan>                  ;; "-".  Note that there are no "holes" near the edges
    Jan>                  ;; of the string.  The completion score is a number
    Jan> -                ;; bound by ]0..1]: the higher the better and only a
    Jan> +                ;; bound by [0..1]: the higher the better and only a
    Jan>                  ;; perfect match (pattern equals string) will have
    Jan>                  ;; score 1.  The formula takes the form of a quotient.
    Jan>                  ;; For the numerator, we use the number of +, i.e. the

No. Itʼs talking about the range 0..1 but without including 0

Robert
-- 





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#51434: [PATCH] Fix typos
  2021-10-27 15:24 ` Robert Pluim
@ 2021-10-27 15:34   ` Lars Ingebrigtsen
  2021-10-28  6:15     ` H. Dieter Wilhelm
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-10-27 15:34 UTC (permalink / raw)
  To: Robert Pluim; +Cc: 51434, Jan Synáček

Robert Pluim <rpluim@gmail.com> writes:

>     Jan> -                ;; bound by ]0..1]: the higher the better and only a
>     Jan> +                ;; bound by [0..1]: the higher the better and only a

[...]

> No. Itʼs talking about the range 0..1 but without including 0

I don't think I've seen that syntax before -- <0..1] is pretty common,
though.

In any case, I think it's better to spell this out explicitly.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#51434: [PATCH] Fix typos
  2021-10-27 15:34   ` Lars Ingebrigtsen
@ 2021-10-28  6:15     ` H. Dieter Wilhelm
  0 siblings, 0 replies; 5+ messages in thread
From: H. Dieter Wilhelm @ 2021-10-28  6:15 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 51434, Jan Synáček, Robert Pluim

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Robert Pluim <rpluim@gmail.com> writes:
>
>>     Jan> -                ;; bound by ]0..1]: the higher the better and only a
>>     Jan> +                ;; bound by [0..1]: the higher the better and only a
>
> [...]
>
>> No. Itʼs talking about the range 0..1 but without including 0
>
> I don't think I've seen that syntax before -- <0..1] is pretty common,
> though.

May I pipe in with another convention?  

Emacs' Calc is using this notation (0 .. 1] for one sided open
ranges.. ;-)

> In any case, I think it's better to spell this out explicitly.

Off course





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#51434: [PATCH] Fix typos
  2021-10-27 12:12 bug#51434: [PATCH] Fix typos Jan Synáček
  2021-10-27 15:24 ` Robert Pluim
@ 2021-10-28 21:34 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-10-28 21:34 UTC (permalink / raw)
  To: Jan Synáček; +Cc: 51434

Jan Synáček <jan.synacek@gmail.com> writes:

> Tags: patch

Thanks; applied with a slight change:

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

> Emacs' Calc is using this notation (0 .. 1] for one sided open
> ranges.. ;-)

Yeah, that seems like the most common syntax.

>> In any case, I think it's better to spell this out explicitly.
>
> Off course

So I've now done this in emacs-28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-28 21:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 12:12 bug#51434: [PATCH] Fix typos Jan Synáček
2021-10-27 15:24 ` Robert Pluim
2021-10-27 15:34   ` Lars Ingebrigtsen
2021-10-28  6:15     ` H. Dieter Wilhelm
2021-10-28 21:34 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).