all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>,
	Michael Heerdegen <michael_heerdegen@web.de>
Cc: 23067-done@debbugs.gnu.org
Subject: bug#23067: 25.0.92; A detail in the doc of query-replace
Date: Fri, 25 Mar 2016 07:13:48 -0700 (PDT)	[thread overview]
Message-ID: <42d06a78-824b-4661-aa84-845def8ca855@default> (raw)
In-Reply-To: <<83k2kq27j0.fsf@gnu.org>>

> > "In Transient Mark mode, if the mark is active, operate on the contents
> > of the region.  Otherwise, operate from point to the end of the buffer."
> >
> > I think the second sentence is confusing (wrong).  The command operates
> > up to `point-max'.
> 
> Thanks.  I fixed the doc string of this function (and of a few others
> in the same file).
> 
> However, I must say that it makes very little sense to me to make such
> corrections only in a couple of functions, when we have gobs of them
> with the same problem in the doc strings, so much so that I wonder
> whether "end of buffer" isn't already a widely accepted synonym of
> "end of the buffer's accessible portion", and we shouldn't bother,
> certainly not with fixing that one function at a time.  I won't be
> surprised if the same issue has crept in the manuals as well.
> 
> Please, let's not start another prolonged dispute that leads nowhere.
> Instead, if someone really thinks this stuff should be spelled out in
> documentation, that someone is kindly requested to submit a patch that
> fixes _all_ of the instances where we don't say that explicitly.  TIA.

There's another way to look at this that occurs to me.  It is also
perhaps not without some ambiguity, but it might nevertheless help.

"End of buffer" can be regarded as `point-max'.

This is what we say in the doc string of the predicate (`eobp') that
determines (tests for) end-of-buffer-ness:

 Return t if point is at the end of the buffer.
                         ^^^^^^^^^^^^^^^^^^^^^
 If the buffer is narrowed, this means the end of the narrowed part.
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Notice too that even though this is a predicate for Lisp, and you
would expect its doc to be aimed at Lisp programmers and not just
non-Lisper users, it does not mention `point-max'.

Again, yes, there is some perhaps inherent ambiguity in using the
term "end of the buffer" this way.  But it might help, in general.





       reply	other threads:[~2016-03-25 14:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<87oaa9vrdz.fsf@web.de>
     [not found] ` <<83k2kq27j0.fsf@gnu.org>
2016-03-25 14:13   ` Drew Adams [this message]
2016-03-25 14:23     ` bug#23067: 25.0.92; A detail in the doc of query-replace Eli Zaretskii
     [not found] <<<87oaa9vrdz.fsf@web.de>
     [not found] ` <<<83k2kq27j0.fsf@gnu.org>
     [not found]   ` <<42d06a78-824b-4661-aa84-845def8ca855@default>
     [not found]     ` <<837fgq1vr4.fsf@gnu.org>
2016-03-25 14:41       ` Drew Adams
2016-03-25 15:55         ` Michael Heerdegen
2016-03-25 16:08           ` Drew Adams
2016-03-20  2:02 Michael Heerdegen
2016-03-20  2:14 ` Drew Adams
2016-03-25 10:09 ` Eli Zaretskii
2016-03-26 22:06   ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42d06a78-824b-4661-aa84-845def8ca855@default \
    --to=drew.adams@oracle.com \
    --cc=23067-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.