From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Subject: auto-composition-mode and display properties
Date: Thu, 21 Feb 2008 17:12:37 +0100 [thread overview]
Message-ID: <878x1ee1ai.fsf@escher.local.home> (raw)
Since the unicode merge, composite.el contains auto-composition-mode,
which is enabled globally by default. This adds the auto-composed
property to every character. The auto-composed property also gets added
to display properties. For example:
1. emacs -Q
2. Type the string "ab".
3. Put the cursor after "b" and type
`M-: (put-text-property (1- (point)) (point) 'display "test")'.
Now the buffer display "atest".
4. Put the cursor after "a", i.e. on the first "t" and type `C-u C-x
='. The *Help* buffer says:
There are text properties here:
auto-composed t
display [Show]
By clicking on `[Show]' we get the value of the display property:
#("test" 0 4
(auto-composed t))
I assume the display property is supposed to be like this, i.e. this is
not a bug? I ask because it is wreaking havoc with isearch in a mode I
have that uses display properties (e.g., isearch stops when it gets to
the bottom of the window, even though there are further occurrences out
of view, and the cursor cycles over lines above the last visible
occurrence). There may be a bug in the mode that is triggered by
isearch with auto-composition-mode enabled, but I don't know how to
debug it: when I instrument isearch-mode for edebug and step through it,
after isearch-update is called the focus for entering isearch strings
becomes the buffer of isearch.el and switching back to the buffer with
my mode interrupts isearch. So I cannot trigger the bug under edebug.
All I know is that when I disable auto-composition-mode, isearch works
fine in my mode (and it works fine in CVS Emacs prior to the unicode
merge). So I would like to know, again, if auto-composition-mode is
really supposed to add the auto-composed property to the display string.
And does anyone have any suggestions for how I can debug isearch?
Steve Berman
next reply other threads:[~2008-02-21 16:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-21 16:12 Stephen Berman [this message]
2008-02-21 16:23 ` auto-composition-mode and display properties Stefan Monnier
2008-02-23 22:24 ` isearch, " Stephen Berman
2008-02-24 19:09 ` Juri Linkov
2008-05-30 8:49 ` Stephen Berman
2008-05-30 14:17 ` Stephen Berman
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=878x1ee1ai.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--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).