From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9185: 24.0.50; "C-s M-p" does not bring the tip of the search ring Date: Sat, 30 Jul 2011 11:52:57 +0300 Organization: JURTA Message-ID: <87oc0c176d.fsf@mail.jurta.org> References: <87livig3cr.fsf@mail.jurta.org> <87r55aenuc.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312016163 6188 80.91.229.12 (30 Jul 2011 08:56:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2011 08:56:03 +0000 (UTC) Cc: 9185@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 10:55:58 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 1Qn5Kv-00031K-Vb for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2011 10:55:58 +0200 Original-Received: from localhost ([::1]:58960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn5Kv-00082O-FA for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2011 04:55:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn5Ks-00082E-T7 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2011 04:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qn5Kr-00073N-KY for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2011 04:55:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn5Kr-00073I-Hn for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2011 04:55:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qn5L0-0000i2-Ub; Sat, 30 Jul 2011 04:56:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2011 08:56:02 +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.13120161232667 (code B ref 9185); Sat, 30 Jul 2011 08:56:02 +0000 Original-Received: (at 9185) by debbugs.gnu.org; 30 Jul 2011 08:55:23 +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 1Qn5KN-0000gt-7Z for submit@debbugs.gnu.org; Sat, 30 Jul 2011 04:55:23 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qn5KH-0000gd-Ub for 9185@debbugs.gnu.org; Sat, 30 Jul 2011 04:55:18 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id E41F76E8078; Sat, 30 Jul 2011 01:55:07 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 9B2DA451C34B; Sat, 30 Jul 2011 01:55:05 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Thu, 28 Jul 2011 13:32:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 30 Jul 2011 04:56: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:49708 Archived-At: Severity: wishlist Tags: patch > So what do people think it would be more convenient? > > Isn't it more consistent with the behavior of M-p in other contexts? Most importantly it will be more consistent with `C-s M-e M-p [M-p ...]' The amount of typed M-p will be the same for the same previous search string. So when people will agree, here is the patch: Using parent branch file:///home/work/emacs/bzr/emacs/http-trunk/ === modified file 'lisp/isearch.el' --- lisp/isearch.el 2011-07-15 13:33:07 +0000 +++ lisp/isearch.el 2011-07-30 08:49:36 +0000 @@ -2071,7 +2086,7 @@ (defun isearch-ring-adjust1 (advance) () (set yank-pointer-name (setq yank-pointer - (mod (+ (or yank-pointer 0) + (mod (+ (or yank-pointer (if advance 0 -1)) (if advance -1 1)) length))) (setq isearch-string (nth yank-pointer ring)