From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: mouse-face highlighting broken? Date: Wed, 6 May 2009 13:41:18 -0400 Message-ID: <357AADAB-5EEF-456A-9C7B-D851376EB118@gmail.com> References: <87iqke6xx3.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241631777 9545 80.91.229.12 (6 May 2009 17:42:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 17:42:57 +0000 (UTC) To: Chong Yidong , Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 06 19:42:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1l8p-0005q5-PX for ged-emacs-devel@m.gmane.org; Wed, 06 May 2009 19:42:48 +0200 Original-Received: from localhost ([127.0.0.1]:59285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1l8p-0005Q5-4n for ged-emacs-devel@m.gmane.org; Wed, 06 May 2009 13:42:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1l7W-0004o3-R3 for emacs-devel@gnu.org; Wed, 06 May 2009 13:41:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1l7S-0004lO-Rq for emacs-devel@gnu.org; Wed, 06 May 2009 13:41:26 -0400 Original-Received: from [199.232.76.173] (port=53742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1l7S-0004lE-Ig for emacs-devel@gnu.org; Wed, 06 May 2009 13:41:22 -0400 Original-Received: from qw-out-1920.google.com ([74.125.92.149]:16151) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1l7S-0002oT-8J for emacs-devel@gnu.org; Wed, 06 May 2009 13:41:22 -0400 Original-Received: by qw-out-1920.google.com with SMTP id 4so181865qwk.24 for ; Wed, 06 May 2009 10:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=SFPVOpCtSE80YYg4eLOTfbhChItsP280XEdL82l9R0A=; b=S255qGy1ymi4uXofOIp65dpZG2g4fogVRzcI355X4UDGvn2gNMMV43FR1Z0MioGrZs C6a3oSuAn30xh0N5ju+M238zRAKR9hg0zU3qCnO9Wmnra1k+SUCWkXCbFE2jWcr2UR9Q NM774cVLMh7EpelHqxbmJBHfDf7amUOTM5z+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=vFWAIbLhSnWzmaFMk/T4RMCVpB/UItXgx9Rqzxu6k3GDSMSs7W7QvvIzApyYGtg8JA 2SouKnoM6opRaiQH+g+pw+YohNXb6ziPO37L6dOQEsKj7iSYm2MYxi/+96xZiCMQUQ5C nyxZLZiL7pKMsswlz8I7w0i7GRRgypUhv53x0= Original-Received: by 10.224.32.152 with SMTP id c24mr1942993qad.187.1241631681450; Wed, 06 May 2009 10:41:21 -0700 (PDT) Original-Received: from SCARLETT.PSY.CMU.EDU (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id 5sm1601479qwg.49.2009.05.06.10.41.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 May 2009 10:41:20 -0700 (PDT) In-Reply-To: <87iqke6xx3.fsf@cyd.mit.edu> X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110732 Archived-At: On May 6, 2009, at 11:42 AM, Chong Yidong wrote: > David Reitter 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.