From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: mouse-face hightlighting fails with inserted unicode Date: Mon, 11 Feb 2008 20:11:26 +0100 Message-ID: <87tzkfcnq9.fsf@escher.local.home> References: <87k5lbsew9.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202757124 29252 80.91.229.12 (11 Feb 2008 19:12:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 19:12:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 20:12:27 2008 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 1JOe4c-0004CL-SX for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 20:12:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOe49-0006Hh-HT for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 14:11:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOe46-0006HY-CG for emacs-devel@gnu.org; Mon, 11 Feb 2008 14:11:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOe45-0006HL-37 for emacs-devel@gnu.org; Mon, 11 Feb 2008 14:11:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOe44-0006HI-Rs for emacs-devel@gnu.org; Mon, 11 Feb 2008 14:11:40 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOe44-0002Rm-Fz for emacs-devel@gnu.org; Mon, 11 Feb 2008 14:11:40 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JOe3x-0001DM-C1 for emacs-devel@gnu.org; Mon, 11 Feb 2008 19:11:33 +0000 Original-Received: from i5387c54a.versanet.de ([83.135.197.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Feb 2008 19:11:33 +0000 Original-Received: from Stephen.Berman by i5387c54a.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Feb 2008 19:11:33 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387c54a.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:88779 Archived-At: On Mon, 11 Feb 2008 12:40:40 -0500 Stefan Monnier wrote: >>>>>> "Stephen" == Stephen Berman writes: > >> With Emacs 22.1, 23.0.50 and 23.0.60: >> 1. emacs -Q >> 2. Type some characters, e.g. "aa". >> 3. M-: (put-text-property (point-min) (point-max) 'mouse-face 'highlight) >> 4. Run the mouse over "aa" and see the highlighting over each character. >> 5. Type another character; now the buffer displays e.g. "aba", and still >> all characters show mouse-face highlighting. >> 6. Delete the "b" and type M-: (insert (format "%s" "\x62")) >> => Now the buffer again displays "aba", but "b" does not show >> mouse-face highlighting. >> 7. Delete the "b" and type M-x ucs-insert RET 62 RET >> => Again the buffer again displays "aba" and "b" does not show >> mouse-face highlighting. > > Step 6 is expected. Oh, sorry; I had had noticed the issue with ucs-insert and then tried inserting the same characters with `format' but forgot about the non-inheritance of `insert'. > I installed the patch below which should fix step 7. Thanks. Steve Berman