From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: isearch, auto-composition-mode and display properties Date: Sun, 24 Feb 2008 21:09:07 +0200 Organization: JURTA Message-ID: <87wsouuq7g.fsf@jurta.org> References: <878x1ee1ai.fsf@escher.local.home> <87fxvj9ur5.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 1203880484 28108 80.91.229.12 (24 Feb 2008 19:14:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 19:14:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 20:15:09 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 1JTMJX-0000MJ-J0 for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 20:15:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTMJ1-00023w-OB for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 14:14:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTMIx-00023c-Af for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:14:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTMIv-00023Q-VL for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:14:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTMIv-00023N-Pp for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:14:29 -0500 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JTMIv-0007pl-Hv for emacs-devel@gnu.org; Sun, 24 Feb 2008 14:14:29 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JTMIs-000IED-WD; Sun, 24 Feb 2008 21:14:27 +0200 In-Reply-To: <87fxvj9ur5.fsf_-_@escher.local.home> (Stephen Berman's message of "Sat, 23 Feb 2008 23:24:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-amd64-linux-gnu) X-Scanner-Signature: 6f32a619495bd298c8ed4cb100af0918 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2309 [Feb 24 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 11 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) 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:90260 Archived-At: > 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/