unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: xfq.free@gmail.com, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r113909: Refine the documentation of	`insert-buffer-substring'.
Date: Fri, 16 Aug 2013 12:20:02 -0400	[thread overview]
Message-ID: <jwvhaepipd6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <838v02nona.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 16 Aug 2013 09:19:37 +0300")

> Are you saying that characters don't have positions?

Obviously not.

> We say "character at POSITION", and we mean that.

We do say that at times, but note that the functions we provide have
names like `char-after' and `char-before'.  The naming was sometimes
poorly chosen (e.g. `text-properties-at'), so we're not completely
consistent here.

> What is misleading here?

That saying explicitly "inclusive" and "exclusive" means that using "at"
is not just an abuse of language but is really how things should
be understood.

If we want to be more explicit, then rather than using "inclusive" and
"exclusive", I'd rather we add a blurb like "Remember that positions are
/between/ characters, so the char right \"at\" END will not be included".


        Stefan



  reply	other threads:[~2013-08-16 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1VAAWJ-0007pJ-65@vcs.savannah.gnu.org>
2013-08-16  3:53 ` [Emacs-diffs] trunk r113909: Refine the documentation of `insert-buffer-substring' Stefan Monnier
2013-08-16  6:19   ` Eli Zaretskii
2013-08-16 16:20     ` Stefan Monnier [this message]
2013-08-16 18:43       ` Eli Zaretskii
2013-08-17 22:27         ` Xue Fuqiao
2013-08-18 19:30           ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvhaepipd6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=xfq.free@gmail.com \
    /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 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).