From: Bastien <bzg@gnu.org>
To: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: outline-mode : cursor and point mismatch ?
Date: Thu, 14 Jun 2012 17:57:40 +0200 [thread overview]
Message-ID: <87txydhonf.fsf@gnu.org> (raw)
In-Reply-To: <jrckbp$quu$1@dough.gmane.org> (Nicolas Richard's message of "Thu, 14 Jun 2012 12:10:33 +0000 (UTC)")
Hi Nicolas,
Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:
> I have GNU Emacs 24.1.1 (i686-pc-linux-gnu) of 2012-06-14.
> I experience a strange behaviour with outline-mode (and also in
> org-mode) :
>
> (emacs is started with emacs -Q)
>
> Say I have a buffer with the two lines:
> * A
> Some text
>
> and I hit C-c C-d (hide-subtree) and M-<. Now I have:
> * A...
> ^
> where '...' indicates hidden text and '^' indicates the
> position of the cursor (on the title line).
>
> Then hitting C-f a few times will advance the cursor successively :
> * A...
> ^
> * A...
> ^
> * A...
> ^ <- I did not expect this.
> * A...
> ^
>
> The behaviour that I expected was :
> * A...
> ^
> * A...
> ^
> * A...
> ^ <- different
> * A...
> ^
The three dots here are not characters, they are a single graphical
entity (a "glyph"). Moving the point after the "A" character leaves
the cursor one "visual character length" before the end of the glyph,
hence what you observe.
> And in fact, adding 'text' when in the situation
> * A...
> ^
> gives the following situation:
> * Atext...
> ^
That's because, even though the point visually appears right before the
end of the glyph, it *is* right before the whole glyph. I agree this
looks wrong.
Note that in org-mode, when `org-catch-invisible-edits' is non-nil, it
will help you catch edits in such invisible areas.
> I am a little bit worried that I do not find references to this
> behaviour on the net ; am I the only one experiencing this ?
HTH,
--
Bastien
next prev parent reply other threads:[~2012-06-14 15:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 12:10 outline-mode : cursor and point mismatch ? Nicolas Richard
2012-06-14 15:57 ` Bastien [this message]
2012-06-14 17:04 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txydhonf.fsf@gnu.org \
--to=bzg@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=theonewiththeevillook@yahoo.fr \
/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.