all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>,
	Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: mouse-face highlighting broken?
Date: Wed, 6 May 2009 13:41:18 -0400	[thread overview]
Message-ID: <357AADAB-5EEF-456A-9C7B-D851376EB118@gmail.com> (raw)
In-Reply-To: <87iqke6xx3.fsf@cyd.mit.edu>

On May 6, 2009, at 11:42 AM, Chong Yidong wrote:

> David Reitter <david.reitter@gmail.com> writes:
>
>> I'm trying to track down a problem with mouse faces, where some
>> portions of text propertized with the a mouse-face do not respect the
>> mouse face, or at least not the "background" attribute of the mouse
>> face.  The types of properties I am concerned with here are the
>> background of images and the space allocated using the display/
>> space/:width property.  (See also screenshot.)
>>
>> It may be quicker for me to track down the problem in the code than  
>> to
>> compose a standalone bug report.  Could someone tell me where such
>> properties are evaluated?
>
> Maybe handle_display_prop is what you want.

Thanks, but none of the few changes there cause my problem.

Can people on other systems try this:

(insert
  (propertize
   (concat "Hello"
	  (propertize " " 'display '(space :width 40))
	  "World")
   'mouse-face 'highlight
   ))

The highlight works ok in 22.  In 23, only "Hello" and "World" are  
highlighted - the space in between is not.
As said above, the same applies to backgrounds of images.





  reply	other threads:[~2009-05-06 17:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06 14:05 mouse-face highlighting broken? David Reitter
2009-05-06 15:42 ` Chong Yidong
2009-05-06 17:41   ` David Reitter [this message]
2009-05-06 17:51     ` Drew Adams
2009-05-07  3:14       ` David Reitter
2009-05-07  4:46         ` Chong Yidong
2009-05-07  6:29           ` YAMAMOTO Mitsuharu
2009-05-07 13:53             ` David Reitter
2009-05-07 20:56               ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=357AADAB-5EEF-456A-9C7B-D851376EB118@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=cyd@stupidchicken.com \
    --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 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.