unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joe Wells <jbw@macs.hw.ac.uk>
To: rms@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Fwd: overlay face property not used for after-string 	property
Date: Sun, 28 Oct 2007 15:06:32 +0000	[thread overview]
Message-ID: <86r6jfz3bb.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: <E1Im8Y2-0000zW-Tn@fencepost.gnu.org> (Richard Stallman's message of "Sun\, 28 Oct 2007 09\:51\:26 -0400")

Richard Stallman <rms@gnu.org> writes:

>     I don't think I can fix it, but I remember discussion of something similar
>     a few years ago where the conclusion was thatit was better to not apply a
>     property of the overlay (e.g. `face' although I believe the discussion was
>     about `invisible') to the (after|before)-string because it's easier to add
>     this property manually to the relevant string than to "undo" the effect of
>     the overlay's property from the string.
>
> That sounds like a valid argument -- but it applies equally to the
> before-string and the after-string.  It can't be right to apply the
> property to one and not the other.
>
> Can someone write a patch so that the overlay's face property (and
> other display-related properties) won't apply to its before-string?
>
> Joe, what do you think about that as a solution?

I think that would be an improvement.  I think the best solution would
be for the face property of an overlay (and similar properties) to not
apply to the before-string, the after-string, _and_ the display
property of the overlay.

Note that there are additional problems.  One example (which I have
already reported) is that the face of the character in the buffer
after the overlay start location (which is not even in the overlay if
the overlay is of length zero) is applied to the before-string and
display properties of the overlay.  Another example (which I think I
have not previously reported) is that the face of the character in the
buffer _after_ the overlay end location (which is _never_ in the
overlay) is applied to the after-string property.

Also, fixing this issue this way leaves behind the difficulty of
adding a face property manually to a property string (before-string,
after-string, or display) which already has face properties.

-- 
Joe

  parent reply	other threads:[~2007-10-28 15:06 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22  9:00 [jbw@macs.hw.ac.uk: overlay face property not used for after-string property] Richard Stallman
2007-10-22 15:44 ` Fwd: overlay face property not used for after-string property Stefan Monnier
2007-10-24  9:49   ` Joe Wells
     [not found]   ` <E1Im8Y2-0000zW-Tn@fencepost.gnu.org>
2007-10-28 15:06     ` Joe Wells [this message]
2007-10-28 15:21       ` Johan Bockgård
2007-10-29  9:22       ` Richard Stallman
2007-10-29  9:57         ` Joe Wells
2007-11-03  3:58           ` Richard Stallman
2007-11-03 16:03             ` Joe Wells
2007-11-04 19:56               ` Richard Stallman
2007-11-04 23:03                 ` Joe Wells
2007-11-05  8:47                   ` Richard Stallman
2007-11-05  9:30                     ` David Kastrup
2007-11-05 11:51                       ` Joe Wells
2007-11-05 12:05                         ` Joe Wells
2007-11-06  2:16                           ` Richard Stallman
2007-11-06  3:30                             ` Joe Wells
2007-11-06  8:30                               ` Stefan Monnier
2007-11-06  9:18                                 ` David Kastrup
2007-11-06 10:05                                   ` Stefan Monnier
2007-11-07  0:15                                 ` Richard Stallman
2007-11-07  0:15                               ` Richard Stallman
2007-11-06  2:15                         ` Richard Stallman
2007-11-06  3:19                           ` Joe Wells
2007-11-05 14:55                       ` Stefan Monnier
2007-11-05 15:04                         ` David Kastrup
2007-11-05 16:35                           ` Joe Wells
2007-11-05 16:53                             ` David Kastrup
2007-11-05 22:06                               ` Joe Wells
2007-11-05 16:29                         ` Joe Wells
2007-11-05 19:38                           ` Stefan Monnier
2007-11-05 21:59                             ` Joe Wells
2007-11-06  8:37                               ` Richard Stallman
2007-11-06  2:16                         ` Richard Stallman
2007-11-05 11:55                     ` Joe Wells
2007-11-06  2:16                       ` Richard Stallman
2007-11-04 19:56               ` Richard Stallman
2007-11-04 23:10                 ` Joe Wells
2007-11-03 19:21             ` 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

  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=86r6jfz3bb.fsf@macs.hw.ac.uk \
    --to=jbw@macs.hw.ac.uk \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --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).