From: Jean-Christophe Helary <brandelune@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: "Point" vs. "cursor" in documentation
Date: Wed, 4 Jul 2018 15:21:42 +0900 [thread overview]
Message-ID: <CBE23A84-BD09-4439-858D-19320A0EB79A@gmail.com> (raw)
In-Reply-To: <jwvzhz7iv7u.fsf-monnier+gmane.emacs.devel@gnu.org>
> On Jul 4, 2018, at 11:39, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> When do we use point over cursor, and vice versa, in documentation?
>
> "Point" is concerned about where operations will happen, whereas
> "cursor" is concerned about where the thingy will be drawn on screen.
> The cursor only moves when the display gets refreshed (i.e. once per
> command, more or less), whereas point can be modified by lots of
> intermediate operations, so it can change thousands of times within
> a single command.
Which is the reason why "save-excursion" is used:
Introduction, 3.10
"In Emacs, a function frequently moves point as part of its internal workings even though a user would not expect this. For example, count-lines-region moves point. To prevent the user from being bothered by jumps that are both unexpected and (from the user’s point of view) unnecessary, save-excursion is often used to keep point in the location expected by the user. The use of save-excursion is good housekeeping."
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
next prev parent reply other threads:[~2018-07-04 6:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 13:25 "Point" vs. "cursor" in documentation Siraphob (Ben) Phipathananunth
2018-07-03 14:27 ` Drew Adams
2018-07-03 14:37 ` Jean-Christophe Helary
2018-07-03 20:16 ` John Yates
2018-07-03 23:04 ` Richard Stallman
2018-07-04 12:13 ` John Yates
2018-07-04 15:15 ` Eli Zaretskii
2018-07-04 17:20 ` Drew Adams
2018-07-04 22:32 ` Richard Stallman
2018-07-04 23:03 ` John ff
2018-07-04 2:27 ` Siraphob (Ben) Phipathananunth
2018-07-04 2:39 ` Stefan Monnier
2018-07-04 6:21 ` Jean-Christophe Helary [this message]
2018-07-04 14:52 ` Drew Adams
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=CBE23A84-BD09-4439-858D-19320A0EB79A@gmail.com \
--to=brandelune@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.