all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ralf Angeli <angeli@caeruleus.net>
To: rms@gnu.org
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; Image in before-string of overlay interferes with keymap
Date: Thu, 28 Feb 2008 20:03:59 +0100	[thread overview]
Message-ID: <87zltklx7k.fsf@photon.caeruleus.net> (raw)
In-Reply-To: <877igsewqi.fsf@photon.caeruleus.net> (Ralf Angeli's message of "Mon, 25 Feb 2008 19:07:01 +0100")

* Ralf Angeli (2008-02-25) writes:

> * Richard Stallman (2008-02-10) writes:
>
>> Would someone please fix this and ack?
>>
>> From: Ralf Angeli <angeli@caeruleus.net>
>> To: emacs-pretest-bug@gnu.org
>> Date: Wed, 06 Feb 2008 22:30:17 +0100
>> Subject: 23.0.60; Image in before-string of overlay interferes with keymap
>>
>> As soon as an image is used in the before-string property of an overlay,
>> mouse clicks as defined in a keymap for the propertized string are not
>> recognized anymore.
>
> As additional info, AFAICS the following change introduced the bug:
>
> 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
>
> 	* xdisp.c (handle_display_prop): Ignore display specs after
> 	replacing one when string text is being replaced.
> 	(handle_single_display_spec): Pretend as if characters with display
> 	property haven't been consumed only when buffer text is being replaced.

Some more information ...

The original report and discussion which lead to the change can be found
here: <URL:http://thread.gmane.org/gmane.emacs.devel/80216>

The ironic part here is that while the reports Joe sent were concerned
with helping to fix Emacs to better support preview-latex and folding of
TeX macros, the resulting change actually broke preview-latex.

I could narrow down the problematic part of the change.  If the
following part of the patch (diff between revision 1.1170 and 1.1171 of
xdisp.c) is reverted, the test case I sent in my original report will
work again.

@@ -4245,7 +4260,8 @@
 	  /* Say that we haven't consumed the characters with
 	     `display' property yet.  The call to pop_it in
 	     set_iterator_to_next will clean this up.  */
-	  *position = start_pos;
+	  if (BUFFERP (object))
+	    it->current.pos = start_pos;
 	}
 #endif /* HAVE_WINDOW_SYSTEM */
 

The test case Joe sent in his report will work as well, but this is
likely only due to the fact that the part shown above is not related to
strings (where an analogous change was made.)

Could somebody please help me fix this before Emacs 22.2 is released?
I'd hate to see preview-latex broken until the successor of 22.2 will
be released.

-- 
Ralf




  reply	other threads:[~2008-02-28 19:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 21:30 23.0.60; Image in before-string of overlay interferes with keymap Ralf Angeli
2008-02-10 18:42 ` Richard Stallman
2008-02-25 18:07   ` Ralf Angeli
2008-02-28 19:03     ` Ralf Angeli [this message]
2008-02-29 10:06       ` YAMAMOTO Mitsuharu
2008-03-01 10:49         ` Ralf Angeli
2008-03-02  4:10           ` 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=87zltklx7k.fsf@photon.caeruleus.net \
    --to=angeli@caeruleus.net \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rms@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.