GNU bug report logs - #28609
simple.el docstring grammar fixes

Previous Next

Package: emacs;

Reported by: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>

Date: Tue, 26 Sep 2017 14:52:01 UTC

Severity: minor

Fixed in version 26.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28609 in the body.
You can then email your comments to 28609 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Tue, 26 Sep 2017 14:52:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 26 Sep 2017 14:52:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>
To: bug-gnu-emacs <at> gnu.org
Subject: simple.el
Date: Tue, 26 Sep 2017 10:51:04 -0400
Correct grammar; also, call a pair a pair.

--- a/simple.el	2017-09-26 05:31:16.000000000 -0400
+++ b/simple.el	2017-09-26 10:45:41.000000000 -0400
@@ -39,11 +39,11 @@
 
 (defcustom shell-command-dont-erase-buffer nil
   "If non-nil, output buffer is not erased between shell commands.
-Also, a non-nil value set the point in the output buffer
-once the command complete.
-The value `beg-last-out' set point at the beginning of the output,
-`end-last-out' set point at the end of the buffer, `save-point'
-restore the buffer position before the command."
+Also, a non-nil value sets the point in the output buffer
+once the command completes.
+The value `beg-last-out' sets point at the beginning of the output,
+`end-last-out' sets point at the end of the buffer, `save-point'
+restores the buffer position before the command."
   :type '(choice
           (const :tag "Erase buffer" nil)
           (const :tag "Set point to beginning of last output" beg-last-out)
@@ -53,9 +53,9 @@
   :version "26.1")
 
 (defvar shell-command-saved-pos nil
-  "Point position in the output buffer after command complete.
-It is an alist (BUFFER . POS), where BUFFER is the output
-buffer, and POS is the point position in BUFFER once the command finish.
+  "Point position in the output buffer after command completes.
+It is an alist of (BUFFER . POS), where BUFFER is the output
+buffer, and POS is the point position in BUFFER once the command finishes.
 This variable is used when `shell-command-dont-erase-buffer' is non-nil.")
 
 (defcustom idle-update-delay 0.5
@@ -1003,7 +1003,7 @@
 If METHOD is `delete-only', then delete the region; the return value
 is undefined.  If METHOD is nil, then return the content as a string.
 If METHOD is `bounds', then return the boundaries of the region
-as a list of the form (START . END).
+as a pair of (START . END) positions.
 If METHOD is anything else, delete the region and return its content
 as a string, after filtering it with `filter-buffer-substring', which
 is called with METHOD as its 3rd argument.")
@@ -5473,7 +5473,7 @@
        (progn (cl-assert (mark)) t)))
 
 (defun region-bounds ()
-  "Return the boundaries of the region as a list of (START . END) positions."
+  "Return the boundaries of the region as a pair of (START . END) positions."
   (funcall region-extract-function 'bounds))
 
 (defun region-noncontiguous-p ()





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Tue, 26 Sep 2017 16:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: John Wiegley <jwiegley <at> gmail.com>
To: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>
Cc: 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Tue, 26 Sep 2017 09:28:31 -0700
>>>>> "DSM" == Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net> writes:

DSM> Correct grammar; also, call a pair a pair.

Thank you! Even minor corrections like these are quite helpful.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Tue, 26 Sep 2017 16:34:03 GMT) Full text and rfc822 format available.

Message #11 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: John Wiegley <jwiegley <at> gmail.com>
To: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>
Cc: 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Tue, 26 Sep 2017 09:33:15 -0700
fixed 28609
thanks

This has been applied to the emacs-26 as a documentation correction, thank
you.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Tue, 26 Sep 2017 19:11:01 GMT) Full text and rfc822 format available.

Message #14 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Johan Bockgård <bojohan <at> gnu.org>
To: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>
Cc: John Wiegley <jwiegley <at> gmail.com>, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Tue, 26 Sep 2017 21:09:59 +0200
Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net> writes:

> @@ -1003,7 +1003,7 @@
>  If METHOD is `delete-only', then delete the region; the return value
>  is undefined.  If METHOD is nil, then return the content as a string.
>  If METHOD is `bounds', then return the boundaries of the region
> -as a list of the form (START . END).
> +as a pair of (START . END) positions.

It's a list of pairs.

> @@ -5473,7 +5473,7 @@
>         (progn (cl-assert (mark)) t)))
>  
>  (defun region-bounds ()
> -  "Return the boundaries of the region as a list of (START . END) positions."
> +  "Return the boundaries of the region as a pair of (START . END) positions."
>    (funcall region-extract-function 'bounds))

Ditto.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Tue, 26 Sep 2017 19:39:02 GMT) Full text and rfc822 format available.

Message #17 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: John Wiegley <jwiegley <at> gmail.com>
To: Johan Bockgård <bojohan <at> gnu.org>
Cc: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Tue, 26 Sep 2017 12:37:54 -0700
>>>>> Johan Bockgård <bojohan <at> gnu.org> writes:

> It's a list of pairs.

Thanks, change applied in 98a37e60142340b9c2b4e6b17c373f4ae6a2d8b4 on emacs-26
branch, and 52a1da03b226b8686856259ac5d9474a8462322a on master.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




bug marked as fixed in version 26.1, send any further explanations to 28609 <at> debbugs.gnu.org and Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Sep 2017 18:16:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Fri, 29 Sep 2017 13:03:01 GMT) Full text and rfc822 format available.

Message #22 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>
Cc: 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Fri, 29 Sep 2017 16:02:25 +0300
> From: Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net>
> Date: Tue, 26 Sep 2017 10:51:04 -0400
> 
> Correct grammar; also, call a pair a pair.

Thanks for the fixes.

As for "pair", it's actually a cons cell, right?  Also, we do tend to
use the phrase "of the form ..." in our documentation, so there's no
need to remove that.

Finally, a nit: "Point position" is inherently ambiguous, so it's
better to use "Position of point" to disambiguate.  I made that change
in a followup commit.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Fri, 29 Sep 2017 13:29:02 GMT) Full text and rfc822 format available.

Message #25 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johan Bockgård <bojohan <at> gnu.org>
Cc: jwiegley <at> gmail.com, Emacs-Hacker2017 <at> jovi.net, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Fri, 29 Sep 2017 16:28:16 +0300
> From: Johan Bockgård <bojohan <at> gnu.org>
> Date: Tue, 26 Sep 2017 21:09:59 +0200
> Cc: John Wiegley <jwiegley <at> gmail.com>, 28609 <at> debbugs.gnu.org
> 
> Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net> writes:
> 
> > @@ -1003,7 +1003,7 @@
> >  If METHOD is `delete-only', then delete the region; the return value
> >  is undefined.  If METHOD is nil, then return the content as a string.
> >  If METHOD is `bounds', then return the boundaries of the region
> > -as a list of the form (START . END).
> > +as a pair of (START . END) positions.
> 
> It's a list of pairs.

Actually, a cons cell, right?

> > @@ -5473,7 +5473,7 @@
> >         (progn (cl-assert (mark)) t)))
> >  
> >  (defun region-bounds ()
> > -  "Return the boundaries of the region as a list of (START . END) positions."
> > +  "Return the boundaries of the region as a pair of (START . END) positions."
> >    (funcall region-extract-function 'bounds))
> 
> Ditto.

Ditto, right?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Sat, 30 Sep 2017 02:31:02 GMT) Full text and rfc822 format available.

Message #28 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Devon Sean McCullough
 <Emacs-Hacker2017 <at> jovi.net>
Cc: 28609 <at> debbugs.gnu.org
Subject: RE: bug#28609: simple.el
Date: Fri, 29 Sep 2017 19:30:40 -0700 (PDT)
> Finally, a nit: "Point position" is inherently ambiguous, so it's
> better to use "Position of point" to disambiguate.  I made that change
> in a followup commit.

Apologies for not reading the thread.  Going only by what is written
here, which might not be fair/appropriate, "position of point" is
also ill-advised.  "Point" is the buffer position of the cursor
(text-insertion position).  "Position of point" would then mean
"position of position of the cursor".

Again, please ignore if interpreting this out of context is mistaken.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Sat, 30 Sep 2017 08:14:02 GMT) Full text and rfc822 format available.

Message #31 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Emacs-Hacker2017 <at> jovi.net, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Sat, 30 Sep 2017 11:12:51 +0300
> Date: Fri, 29 Sep 2017 19:30:40 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: 28609 <at> debbugs.gnu.org
> 
> > Finally, a nit: "Point position" is inherently ambiguous, so it's
> > better to use "Position of point" to disambiguate.  I made that change
> > in a followup commit.
> 
> Apologies for not reading the thread.  Going only by what is written
> here, which might not be fair/appropriate, "position of point" is
> also ill-advised.  "Point" is the buffer position of the cursor
> (text-insertion position).  "Position of point" would then mean
> "position of position of the cursor".

"Point" is Emacs terminology (and its definition in Glossary is not
"position of the cursor").  Since it's a widely-used term, I see no
need to replace "point" with its definition to judge that sentence's
grammar or style.  We use "position of point" in our manuals, and I
see no problem with that usage.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Sat, 30 Sep 2017 11:11:02 GMT) Full text and rfc822 format available.

Message #34 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Johan Bockgård <bojohan <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: jwiegley <at> gmail.com, Emacs-Hacker2017 <at> jovi.net, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Sat, 30 Sep 2017 13:09:50 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Actually, a cons cell, right?

A list of cons cells (see region-noncontiguous-p).





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Wed, 04 Oct 2017 20:25:01 GMT) Full text and rfc822 format available.

Message #37 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Johan Bockgård <bojohan <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: jwiegley <at> gmail.com, Emacs-Hacker2017 <at> jovi.net, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Wed, 04 Oct 2017 22:24:27 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Actually, a cons cell, right?

No. Your latest doc fix is wrong; in all three cases
(shell-command-saved-pos, region-extract-function, region-bounds) the
value is a list of cons cells, not a single cons cell. (In the first
case it's an actual alist.)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Thu, 05 Oct 2017 08:34:02 GMT) Full text and rfc822 format available.

Message #40 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johan Bockgård <bojohan <at> gnu.org>
Cc: jwiegley <at> gmail.com, Emacs-Hacker2017 <at> jovi.net, 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Thu, 05 Oct 2017 11:33:21 +0300
> From: Johan Bockgård <bojohan <at> gnu.org>
> Cc: jwiegley <at> gmail.com,  Emacs-Hacker2017 <at> jovi.net,  28609 <at> debbugs.gnu.org
> Date: Wed, 04 Oct 2017 22:24:27 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Actually, a cons cell, right?
> 
> No. Your latest doc fix is wrong; in all three cases
> (shell-command-saved-pos, region-extract-function, region-bounds) the
> value is a list of cons cells, not a single cons cell. (In the first
> case it's an actual alist.)

Thanks.  Can you propose a patch to fix these discrepancies?




bug No longer marked as fixed in versions 26.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 09 Oct 2017 11:37:01 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 09 Oct 2017 11:37:01 GMT) Full text and rfc822 format available.

Changed bug title to 'simple.el docstring grammar fixes' from 'simple.el' Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sat, 21 Oct 2017 01:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28609; Package emacs. (Sat, 22 Aug 2020 19:25:02 GMT) Full text and rfc822 format available.

Message #49 received at 28609 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Johan Bockgård <bojohan <at> gnu.org>
Cc: jwiegley <at> gmail.com, Eli Zaretskii <eliz <at> gnu.org>, Emacs-Hacker2017 <at> jovi.net,
 28609 <at> debbugs.gnu.org
Subject: Re: bug#28609: simple.el
Date: Sat, 22 Aug 2020 15:23:55 -0400
close 28609 26.1
thanks

Johan Bockgård <bojohan <at> gnu.org> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Actually, a cons cell, right?
>
> No. Your latest doc fix is wrong; in all three cases
> (shell-command-saved-pos, region-extract-function, region-bounds) the
> value is a list of cons cells, not a single cons cell. (In the first
> case it's an actual alist.)

This was fixed here:

commit c9d71b31bf1144c3f11a82612f07a7bd649c25d4
Author: Eli Zaretskii <eliz <at> gnu.org>
Date:   Sat Oct 21 11:36:37 2017 +0300

    Fix doc strings in simple.el

    * lisp/simple.el (shell-command-saved-pos)
    (region-extract-function, region-bounds): Doc fixes.  (Bug#28609)

But the bug was left open, so I'm closing it now.

Best regards,
Stefan Kangas




bug marked as fixed in version 26.1, send any further explanations to 28609 <at> debbugs.gnu.org and Devon Sean McCullough <Emacs-Hacker2017 <at> jovi.net> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 19:25:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Sep 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.