[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mouse-face hightlighting fails with inserted unicode
From: |
Stephen Berman |
Subject: |
Re: mouse-face hightlighting fails with inserted unicode |
Date: |
Mon, 11 Feb 2008 20:11:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
On Mon, 11 Feb 2008 12:40:40 -0500 Stefan Monnier <address@hidden> wrote:
>>>>>> "Stephen" == Stephen Berman <address@hidden> 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