From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: isearch-repeat-forward: wrong overlay after failure Date: Sun, 11 May 2008 16:52:54 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210521206 23976 80.91.229.12 (11 May 2008 15:53:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2008 15:53:26 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 11 17:54:02 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 1JvDsA-0000V6-67 for ged-emacs-devel@m.gmane.org; Sun, 11 May 2008 17:54:02 +0200 Original-Received: from localhost ([127.0.0.1]:50645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvDrR-00065j-G3 for ged-emacs-devel@m.gmane.org; Sun, 11 May 2008 11:53:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvDrO-00065A-57 for emacs-devel@gnu.org; Sun, 11 May 2008 11:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvDrN-00063x-9F for emacs-devel@gnu.org; Sun, 11 May 2008 11:53:13 -0400 Original-Received: from [199.232.76.173] (port=59395 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvDrN-00063l-5j for emacs-devel@gnu.org; Sun, 11 May 2008 11:53:13 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42974) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvDrM-000849-Kr for emacs-devel@gnu.org; Sun, 11 May 2008 11:53:12 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:49394 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JvDqX-00082f-19 for emacs-pretest-bug@gnu.org; Sun, 11 May 2008 11:52:21 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JvDrF-000827-Ry for emacs-pretest-bug@gnu.org; Sun, 11 May 2008 11:53:11 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]:4041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvDrF-00081C-8w for emacs-pretest-bug@gnu.org; Sun, 11 May 2008 11:53:05 -0400 Original-Received: by nf-out-0910.google.com with SMTP id c7so1145298nfi.26 for ; Sun, 11 May 2008 08:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=ktKoiE3MlZLkC05sgaW6AFgbt6I54TFevTpz0SX/0/g=; b=nTYUAm4cyyZThDvm2OtzMOtAF6+ZVye9j82BPdaY9Im2VwQRJfCCD5lj1O+yyXAn0noQDOcJ2QAzzVyPArDhfufG00RyNEqMSr0sRyerSNnm+Xiwk0n6nxC/jPBMyKvien884LCQhvEsR1tapDdcD7xsZJst1TPUPosY2FygKPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=DbPxRpFRwKCuCRcuZCSXvkyAlz1wJf7qfsnJoaITg0trCEz4WV9qEwk4DGA9tZSyGRs6dLpXITudJPbQ5iLHVB79NDY/97w7RblFm1scyx97YgRYnl7MuDGsUi0YGWFHiJnROdL2X+ZMwqKU4b3Uti20J4J5iF1TVeq98kdka2E= Original-Received: by 10.210.142.6 with SMTP id p6mr6358759ebd.102.1210521180207; Sun, 11 May 2008 08:53:00 -0700 (PDT) Original-Received: from scarlett.lan ( [172.159.50.146]) by mx.google.com with ESMTPS id b33sm51030ika.2.2008.05.11.08.52.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 May 2008 08:52:59 -0700 (PDT) X-Mailer: Apple Mail (2.919.2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:96972 gmane.emacs.pretest.bugs:22266 Archived-At: isearch wrongly highlights a part of a buffer when `isearch-forward' fails. To reproduce, create buffer A, containing just the following: 123456 Also, create buffer B, containing 12346 Now switch to buffer A, move point to the beginning, and do C-s 5. The `5' will be highlighted. Then switch to buffer B and move point to the beginning. (You can show the buffers in two windows, or just switch between them: it doesn't matter.) Then do M-x isearch-repeat-forward. (Do NOT do C-s C-s.) You will find that `6' is highlighted, and a (correct) message is displayed that the search failed. (It appears that the text at a position equivalent to where the last match was in the previous buffer is highlighted.) The overlay in buffer B shouldn't be there. This issue has been around for a long time, and I suspect it was never noticed because many people just do C-s C-s rather than binding a key to `isearch-repeat-forward'. In GNU Emacs 22.2.50.2 (i386-apple-darwin9.2.2, Carbon Version 1.6.0) of 2008-04-26 on plume.sr.unh.edu Windowing system distributor `Apple Inc.', version 10.5.2 configured using `configure '--without-x' '--prefix=/usr/local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x b C-k C-k C-k C-k C-k C-k 1 2 3 4 5 6 5 x v i s i t - n e c r e a t e - b u v i s i C-x C-f T e m p SPC t 1 / t 2 1 2 3 4 6 C-x b C-s 5 C-x b x i s e a r c h - r e p e f o r Recent messages: Making completion list... Loading help-mode...done Quit (New file) Mark saved where search started Making completion list... Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done byte-code: Text is read-only [2 times]