all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stephen Berman <Stephen.Berman@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: isearch, auto-composition-mode and display properties
Date: Sun, 24 Feb 2008 21:09:07 +0200	[thread overview]
Message-ID: <87wsouuq7g.fsf@jurta.org> (raw)
In-Reply-To: <87fxvj9ur5.fsf_-_@escher.local.home> (Stephen Berman's message of "Sat, 23 Feb 2008 23:24:14 +0100")

> I hope others can reproduce this problem and someone can figure out
> what's going on.

Thank you for the detailed test case.  I was able to reproduce it.

To debug isearch, you can instrument one of the top isearch functions
(e.g. `isearch-repeat-forward'), open the isearch.el file in another
frame/buffer (another frame is more preferable when debugging display
problems like in your case), and start typing C-s in the original
buffer.  When it stops on an uninteresting place, just type `g' to
continue execution.  Use `i' to go to a deeper function.

The hardest part in debugging isearch is not forget not to use isearch
to navigate in the source buffer while edebug is active (e.g. to find
the next function to instrument, etc :)

Using this technique, it is possible to find that your trouble is cased
by the following part of `isearch-update':

	  ;; Keep same hscrolling as at the start of the search when possible
	  (let ((current-scroll (window-hscroll)))
	    (set-window-hscroll (selected-window) isearch-start-hscroll)
	    (unless (pos-visible-in-window-p)
	      (set-window-hscroll (selected-window) current-scroll)))

Removing this part eliminates the bug you reported.  Unfortunately,
I have no idea how to fix this since this depends on the details
how the display engine works.

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2008-02-24 19:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 16:12 auto-composition-mode and display properties Stephen Berman
2008-02-21 16:23 ` Stefan Monnier
2008-02-23 22:24   ` isearch, " Stephen Berman
2008-02-24 19:09     ` Juri Linkov [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wsouuq7g.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=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 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.