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 07:37:01 +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 1204987411 20597 80.91.229.12 (8 Mar 2008 14:43:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 14:43:31 +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:43:58 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 1JY0H3-00015U-QE for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 15:43:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JY0GV-0004cE-WC for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 09:43:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXskl-0000r6-VB for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 01:41:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXskk-0000q7-Hc for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 01:41:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXskk-0000q4-At for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 01:41:54 -0500 Original-Received: from mailout03.sul.t-online.de ([194.25.134.81] helo=mailout03.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXskj-00015F-RH for bug-gnu-emacs@gnu.org; Sat, 08 Mar 2008 01:41:54 -0500 Original-Received: from fwd33.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1JXskh-0003bo-00; Sat, 08 Mar 2008 07:41:51 +0100 Original-Received: from [192.168.2.11] (ZSXFxiZYZhRIL+CpHbN8LiS7WZdGg2hJWW-IXiJ+fbshk-sFYYujC1Wwhkvc9bmgTl@[84.191.208.225]) by fwd33.t-online.de with esmtp id 1JXskh-1KmXr60; Sat, 8 Mar 2008 07:41:51 +0100 X-Mailer: Apple Mail (2.753) X-ID: ZSXFxiZYZhRIL+CpHbN8LiS7WZdGg2hJWW-IXiJ+fbshk-sFYYujC1Wwhkvc9bmgTl X-TOI-MSGID: 3452a043-9826-4563-9d97-e525945c7d64 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 08 Mar 2008 09:41:53 -0500 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:17686 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 :-). Kind regards, 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 :-( .