From: Stephen Berman <stephen.berman@gmx.net>
To: Kelly Dean <kellydeanch@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: thing-at-point's meaning of current sexp vs. up-list's: which is correct?
Date: Thu, 13 Jun 2013 09:49:56 +0200 [thread overview]
Message-ID: <87ppvqxxej.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <1371087658.53077.YahooMailClassic@web141105.mail.bf1.yahoo.com> (Kelly Dean's message of "Wed, 12 Jun 2013 18:40:58 -0700 (PDT)")
On Wed, 12 Jun 2013 18:40:58 -0700 (PDT) Kelly Dean <kellydeanch@yahoo.com> wrote:
> Davis Herring wrote:
>>Point isn't on a character, but between them; the box cursor is drawn on
>>the character following point. Therefore when the cursor is on a ),
>>point is definitely inside the parentheses.
>
> I switched to Emacs almost six months ago; I'm surprised I missed something
> this basic until now.
> The docstring for (point) says "Beginning of buffer is position (point-min)",
> so point is at, not between, "positions".
> If there's one character in a buffer, then point can be at position 1 or
> 2. Which position is the character at? Or are characters not at positions, but
> _between_ positions? That seems weird. I always thought both point and
> characters were at positions.
See (elisp)Positions:
A "position" is the index of a character in the text of a buffer. More
precisely, a position identifies the place between two characters (or
before the first character, or after the last character), so we can
speak of the character before or after a given position. However, we
often speak of the character "at" a position, meaning the character
after that position.
Steve Berman
next prev parent reply other threads:[~2013-06-13 7:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 13:23 thing-at-point's meaning of current sexp vs. up-list's: which is correct? Kelly Dean
2013-06-12 14:35 ` Kelly Dean
2013-06-12 15:47 ` Davis Herring
2013-06-13 1:40 ` Kelly Dean
2013-06-13 7:49 ` Stephen Berman [this message]
2013-06-12 19:31 ` Stefan Monnier
2013-06-13 1:36 ` Kelly Dean
2013-06-13 14:13 ` Stefan Monnier
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=87ppvqxxej.fsf@rosalinde.fritz.box \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=kellydeanch@yahoo.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 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.