From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tobias Bading Newsgroups: gmane.emacs.bugs Subject: First two elements of search-ring shown twice in minibuffer when using M-p multiple times? Date: Sat, 8 Mar 2008 15:38:49 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204987145 19884 80.91.229.12 (8 Mar 2008 14:39:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 14:39:05 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 08 15:39:33 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JY0Cu-0008BX-0N for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 15:39:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JY0CL-0007rG-8n for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 09:38:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JY0CF-0007pV-VI for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:38:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JY0CE-0007nm-AF for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:38:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JY0CD-0007nc-Vq for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:38:46 -0500 Original-Received: from mailout06.sul.t-online.de ([194.25.134.19] helo=mailout06.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JY0CD-0000GY-KH for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:38:45 -0500 Original-Received: from fwd24.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1JY0CC-0001oa-01; Sat, 08 Mar 2008 15:38:44 +0100 Original-Received: from [192.168.2.11] (TibSeyZSQhCVpuHg2oYX+AXzUPwo3iPydD03J4hcAWLHyRzNSFvsnLXLutUvDy1Ztm@[84.191.192.251]) by fwd24.t-online.de with esmtp id 1JY0C8-1mAYrI0; Sat, 8 Mar 2008 15:38:40 +0100 X-Mailer: Apple Mail (2.753) X-ID: TibSeyZSQhCVpuHg2oYX+AXzUPwo3iPydD03J4hcAWLHyRzNSFvsnLXLutUvDy1Ztm X-TOI-MSGID: 62756c1c-abc0-4693-ac39-8cacdaf243d2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17685 Archived-At: Hello everyone, I'm using Emacs 22.1 compiled under MacOS X and Windoze XP from the EMACS_22_1 tag in the cvs repository for quite some time now and both of 'em work great, wouldn't want to live without them :-). However, there's a minor bug that really bugs me. It is reproducible on both platforms without any customizations, i.e. my .emacs file moved out of the way. It goes like this: Start a fresh emacs, then C-s 1 RET, C-s 2 RET, C-s 3 RET to search for "1", "2" and "3". The value of variable search-ring is ("3" "2" "1") now. So far, so good. Now, let's try to search for "1" again using M-p (isearch-ring-retreat) in isearch-mode. A C-s C-s searches for "3", now a M-p and you're searching for "2", but the next M-p does not search for "1", but for "3" again! And another M-p brings you to "2". This is what I noticed on both platforms: After the initial C-s C-s sequence, the minibuffer shows "I-search: 3", the cursor is still in your buffer and the tool bar as well as the menu bar remain unchanged. After the first M-p the minibuffer displays "I- search: 2" and the cursor is at the end of the minibuffer. However, the tool bar and the menu bar still remain unchanged. I guess this is part of the problem, because the second M-p finally adapts the tool bar and the menu bar to the fact that the cursor is in the minibuffer now, i.e. the Minibuf menu item appears and a few icons are grayed out. Unfortunately, the second M-p also jumps back to the first element of search-ring instead of showing the third element. So to reach the third element of search-ring, you have to press M-p four times instead of twice :-(. I hope I'm not the only one having this problem and that there's a fix available :-). Have a nice weekend, Tobias PS: The frame's title is incorrect after the first M-p as well, noticeable if you have a (setq frame-title-format "Emacs: %b") in your .emacs file. PPS: isearch-forward-regexp has the same problem :-(.