From: David.Kastrup@t-online.de (David Kastrup)
Cc: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>,
Richard Stallman <rms@gnu.org>,
emacs-devel@gnu.org
Subject: Re: Should invisible imply intangible?
Date: 24 Mar 2002 00:37:37 +0100 [thread overview]
Message-ID: <x5it7mony6.fsf@tupik.goethe.zz> (raw)
In-Reply-To: <200203160128.g2G1Spn04980@rum.cs.yale.edu>
"Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu> writes:
> > Actually, there is a fine distinction here. The cursor can never be
> > immediately before a before-string. It is either strictly before the
> > start of the overlay, in which case it is one character away from the
> > before-string, or it is on the first character of the overlay, in
> > which case it is _after_ the before-string.
>
> I believe that the behavior should again depend on the insertion-type
> of the overlay's boundary. If point is just at the beginning of an
> overlay with a before-string and inserting a char will move the
> overlay's boundary, then the cursor should be displayed before
> the before-string.
> This was recently brought up when discussing code that adds a "¶" at
> end of paragraphs (using a before-string property): the current code
> always displays the cursor just after this string, which looks very odd
> since typed text will be inserted before the string.
I just wanted to call back in order to report that preview-latex is
out of the debate. I don't use the invisible text property any more.
And I don't use the isearch-invisible hooks anymore. And I don't
want to have isearch bother about opening my overlays anymore (even
though they use the display property. isearch never cared for that
up to now, and it should not do so in future. If it will, I want to
know as soon as possible in order to know how to keep it from
bothering).
All that I ask is that
a) isearch and its cousins keep setting disable-point-adjustment to t
when they don't want the cursor to be moved from the point of
replacement
b) post-command-hook gets run *before* Emacs tries to attempt any point
adjustment itself.
If it does, I have the choice of either
a) doing point adjustment the way I feel right if
disable-point-adjustment and global-disable-point-adjustment are not
set
b) remove the display property of my overlay if they are, so that
Emacs' point-adjustment will not have to do anything.
c) set disable-point-adjustment in the post-command-hook in order to
signal Emacs it should not bother itself.
I would be quite happy if query-replace would also run
post-command-hook with disable-point-adjustment set for every
replacement, but that's a different story. Perhaps I'll be able to
find a way to persuade it to do the equivalent.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2002-03-23 23:37 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-23 20:19 Should invisible imply intangible? Richard Stallman
2002-02-23 21:24 ` Paul Michael Reilly
2002-02-25 0:09 ` Richard Stallman
2002-02-25 5:10 ` Stefan Monnier
2002-02-26 20:13 ` Richard Stallman
2002-03-01 1:30 ` Stefan Monnier
2002-03-03 14:40 ` Richard Stallman
2002-03-03 17:11 ` Stefan Monnier
2002-03-04 23:41 ` Richard Stallman
2002-03-04 23:46 ` Stefan Monnier
2002-03-05 1:40 ` Stefan Monnier
2002-03-07 2:30 ` Richard Stallman
2002-03-04 23:41 ` Richard Stallman
2002-03-05 21:58 ` Richard Stallman
2002-03-05 23:04 ` Stefan Monnier
2002-03-05 23:34 ` Stefan Monnier
2002-03-09 20:03 ` Richard Stallman
2002-03-09 22:37 ` Stefan Monnier
2002-03-10 21:32 ` Richard Stallman
[not found] ` <200203102202.g2AM26q06798@rum.cs.yale.edu>
2002-03-11 19:06 ` Richard Stallman
2002-03-12 17:56 ` Stefan Monnier
2002-03-13 10:58 ` Richard Stallman
2002-03-13 11:19 ` David Kastrup
2002-03-15 3:41 ` Richard Stallman
2002-03-15 11:47 ` David Kastrup
2002-03-16 6:39 ` Richard Stallman
2002-03-16 11:58 ` David Kastrup
2002-03-18 9:06 ` Richard Stallman
2002-03-18 23:36 ` David Kastrup
2002-03-19 7:24 ` Eli Zaretskii
2002-03-19 11:12 ` David Kastrup
2002-03-16 0:22 ` Stefan Monnier
2002-03-16 0:56 ` Miles Bader
2002-03-16 0:59 ` Stefan Monnier
2002-03-16 1:25 ` David Kastrup
2002-03-17 10:06 ` Richard Stallman
2002-03-16 1:18 ` David Kastrup
2002-03-16 1:28 ` Stefan Monnier
2002-03-16 2:16 ` David Kastrup
2002-03-16 3:29 ` Miles Bader
2002-03-16 4:05 ` David Kastrup
2002-03-23 23:37 ` David Kastrup [this message]
2002-03-13 13:06 ` Stefan Monnier
2002-03-13 14:15 ` David Kastrup
2002-03-13 16:53 ` Stefan Monnier
2002-03-14 12:42 ` Richard Stallman
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=x5it7mony6.fsf@tupik.goethe.zz \
--to=david.kastrup@t-online.de \
--cc=emacs-devel@gnu.org \
--cc=monnier+gnu/emacs@RUM.cs.yale.edu \
--cc=rms@gnu.org \
/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).