From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#9185: 24.0.50; "C-s M-p" does not bring the tip of the search ring Date: Mon, 22 Aug 2011 14:09:19 +0200 Message-ID: References: <87livig3cr.fsf@mail.jurta.org> <87r55aenuc.fsf@mail.jurta.org> <87oc0c176d.fsf@mail.jurta.org> <87fwkuppz3.fsf@mail.jurta.org> <8739gtg0wp.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1314014996 20252 80.91.229.12 (22 Aug 2011 12:09:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2011 12:09:56 +0000 (UTC) Cc: 9185@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 14:09:50 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QvTK5-0001Wb-VA for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2011 14:09:46 +0200 Original-Received: from localhost ([::1]:33174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvTK5-0003JT-4v for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2011 08:09:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvTK2-0003JD-GC for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2011 08:09:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvTK1-0005IV-CV for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2011 08:09:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvTK1-0005IR-81 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2011 08:09:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QvTMI-0003y4-0J; Mon, 22 Aug 2011 08:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2011 12:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9185-submit@debbugs.gnu.org id=B9185.131401510415230 (code B ref 9185); Mon, 22 Aug 2011 12:12:01 +0000 Original-Received: (at 9185) by debbugs.gnu.org; 22 Aug 2011 12:11:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvTM0-0003xb-4L for submit@debbugs.gnu.org; Mon, 22 Aug 2011 08:11:44 -0400 Original-Received: from mail-yi0-f44.google.com ([209.85.218.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvTLy-0003xU-Pq for 9185@debbugs.gnu.org; Mon, 22 Aug 2011 08:11:43 -0400 Original-Received: by yie12 with SMTP id 12so3233328yie.3 for <9185@debbugs.gnu.org>; Mon, 22 Aug 2011 05:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=JMXmHNGKAUz+1l9eOaL8R48WHFBhcSDjnV1FNcLPE3Y=; b=DBwhbmpSMgFuQl9Rq0T4LtFPT9zlXA21vQjrxzc35aNNl4YNMn3hHL/bnwkpTWUD6M NAjtvMgvylXr/Vsy8jszAhabcC1S72PySRE2Bsmpw1AuyRH4FYA3870vOdWYfE0X3ghb YBencWf+tA0mG4pnrvDZA0HXG7Uuew61zZAak= Original-Received: by 10.42.163.9 with SMTP id a9mr2771287icy.345.1314014959965; Mon, 22 Aug 2011 05:09:19 -0700 (PDT) Original-Received: by 10.42.173.198 with HTTP; Mon, 22 Aug 2011 05:09:19 -0700 (PDT) In-Reply-To: <8739gtg0wp.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 22 Aug 2011 08:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50216 Archived-At: > This complicates the behavior of `M-p'. I don't know if the underlying implementation becomes a bit more complex, but the resulting behavior is clearly better for the user (IMO). > Do you propose the following logic? > > 1. When the user starts Isearch with `C-s', then > =A0 `M-p' should retrieve the _first_ entry from the search ring. Yes. This is obviously what the average user should expect. > 2. But when the user starts Isearch with `C-s C-s', then > =A0 `M-p' should retrieve the _second_ entry from the search ring. Yes too. In this case, when the user types `M-p', s?he should want to get the second entry, because the first one is already in effect. IOW, `M-p' should always retrieve the _previous_ entry from the ring, which in this case is the second one. > But what to do when the user starts Isearch with `C-s C-s', but > changes his mind and deletes it from the current search string, > i.e. types `C-s C-s DEL'. =A0What should `M-p' bring in this case? > The first or the second entry? In this case, the user has discarded the first entry and then has typed `M-p'. Thus, TRT for `M-p' in this case is IMO to retrieve the second entry. The same question is applicable to the sequence `C-s M-p M-p'. I've just tested this and see that the current behavior is that, i.e., the last `M-p' retrieves the second entry (which IMO is TRT). --=20 Dani Moncayo