unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Messed up display and incorrect handling of `face' specs on before-strings
Date: Wed, 07 Apr 2010 14:54:13 -0400	[thread overview]
Message-ID: <jwvsk77cdfj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83sk77w41k.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 07 Apr 2010 20:44:39 +0300")

>> The first and 3rd issues seem to be due to the fact that `face'
>> properties on the before-strings of the overlays aren't obeyed except on
>> the first line.  And the second is the same problem but for the
>> `display' property.
> Can you construct a simple test case that shows these problems?

If you look at the code, it's pretty simple.

> I tried a few, but they all seem to work, so I probably do something
> differently than nhexl-mode.el does.  Specifically, I don't know how
> to simulate ``non-first lines''.

If you set nhexl-point to some integer value and then run (nhexl-jit
(point-min) (+ 30 (point-min))) without enabling the mode, you should
get just two overlays and the problem is already visible there.

I think the trick is to have two consecutive overlays, the first with an
after-string and the second with a before-string.


        Stefan




      reply	other threads:[~2010-04-07 18:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-07  3:13 Messed up display and incorrect handling of `face' specs on before-strings Stefan Monnier
2010-04-07  5:15 ` Eli Zaretskii
2010-04-07 13:46   ` Stefan Monnier
2010-04-07 17:44     ` Eli Zaretskii
2010-04-07 18:54       ` Stefan Monnier [this message]

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=jwvsk77cdfj.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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).