From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25302: 25.1; `isearch-allow-prefix' does not allow `C-u C-u' Date: Sat, 31 Dec 2016 00:37:13 -0500 Message-ID: <871swo8xrq.fsf@users.sourceforge.net> References: <826e0a19-ae68-4b96-9f2f-9caf9b874f40@default> <874m1l8334.fsf@users.sourceforge.net> <3092dec9-4cf4-47e7-b05a-27a953c0a544@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1483162633 4761 195.159.176.226 (31 Dec 2016 05:37:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2016 05:37:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 25302@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 31 06:37:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCLr-0000Nw-4g for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 06:37:07 +0100 Original-Received: from localhost ([::1]:42667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNCLv-0001uu-Na for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 00:37:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNCLp-0001ul-EN for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNCLm-0006vR-AW for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cNCLm-0006vK-5r for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cNCLl-0007QK-WF for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2016 05:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25302 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25302-submit@debbugs.gnu.org id=B25302.148316257928461 (code B ref 25302); Sat, 31 Dec 2016 05:37:01 +0000 Original-Received: (at 25302) by debbugs.gnu.org; 31 Dec 2016 05:36:19 +0000 Original-Received: from localhost ([127.0.0.1]:60765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCL5-0007Oy-F4 for submit@debbugs.gnu.org; Sat, 31 Dec 2016 00:36:19 -0500 Original-Received: from mail-io0-f178.google.com ([209.85.223.178]:34668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCL4-0007Om-9Q for 25302@debbugs.gnu.org; Sat, 31 Dec 2016 00:36:18 -0500 Original-Received: by mail-io0-f178.google.com with SMTP id p42so383859412ioo.1 for <25302@debbugs.gnu.org>; Fri, 30 Dec 2016 21:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dyD8usY0krhqFvqwT5/dbfG24Qf5tD4RFDUi0IZMp5U=; b=CZeMu/wQQl0pZc8S3OOY2UFXZvS4AcR++Hj7EXv5IcGRy4gC9whIZIJfbGTgmByFdb /OgKoSYBwP8ScN2irVPRiziwl3P8gMVszXKBQvmL6two0LaTSjYqAi42HL9SCzjwpWZf cHrstIPxnGxULkQuUDkQET/mfv76QEyrME0v+WUTHc4xIQx2WjsxhnRapZ+XZlbDCaM/ qAhfTYCYGUDVnik4HBFtjVcdeQ8k5Ym8ynNKyohEeXDujOuPNuX4V4ihtC+yUkpqyJdq I5IsOzZzGpLRDgroeGBzZ9juXb0+5rRvXWUkKsXN1oUMA/OYKmiMTkCCDmep5cMc1BRP tYpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=dyD8usY0krhqFvqwT5/dbfG24Qf5tD4RFDUi0IZMp5U=; b=XFa3qoLE7wgkEpoNeb1cCexEv531d8VTkLVnq+Nfb3Kw9fkBb4Py0ZsfZUQvqN4iwg s1xlgTZ9M+rdsILQB5qztCt5i+ozvyxJr9JFroZoyAfntd8DWZVylH8EIw69F3Zi39oY DLoW6pmV6qVtIAslqmthBKJ/j0kNQfktKwCc2MzGw3kpqGaIrZ4fIHWVpQtCaVxacwz/ ybvSA0r2NwWFwgga/OWxschMgMJcqIh1ClnIkXdz3fe88YzRzCAZjwpbvFdbZxNvQieH bIBi0SoL5skYpH5/VXd2vdh2cwpUhwMEjfBWJdtteKPXyM35cbDDvGJtsOEsqj5ygZhN l/kQ== X-Gm-Message-State: AIkVDXJGDm6GEvuB2EHrk3nh/XIfoYWRNLaOc9ysGssXdiGaf++SOKXs7gLXqXM9ZrXoxQ== X-Received: by 10.107.181.213 with SMTP id e204mr29162778iof.156.1483162572843; Fri, 30 Dec 2016 21:36:12 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id v75sm26770009ita.12.2016.12.30.21.36.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Dec 2016 21:36:12 -0800 (PST) In-Reply-To: <3092dec9-4cf4-47e7-b05a-27a953c0a544@default> (Drew Adams's message of "Fri, 30 Dec 2016 14:57:53 -0800 (PST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:127611 Archived-At: --=-=-= Content-Type: text/plain Drew Adams writes: > But a guess about the regression for `isearch-allow-scroll' is that > it also needs to be added here: > > ;; Universal argument commands > (put 'universal-argument 'isearch-scroll t) > (put 'negative-argument 'isearch-scroll t) > (put 'digit-argument 'isearch-scroll t) > > IOW, add (put 'universal-argument-more 'isearch-scroll t) Agreed. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=v2-0001-Fix-isearch-handling-of-C-u-C-u.patch Content-Description: patch v2 >From b92e54be715fd7880a4f3c260dfc360eff3f1e57 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 31 Dec 2016 00:31:49 -0500 Subject: [PATCH v2] Fix isearch handling of C-u C-u... * lisp/isearch.el: Add `isearch-scroll' property to universal-argument-more so that `isearch-allow-scroll' will apply to it as well. (isearch-pre-command-hook): Let `isearch-allow-prefix' apply to `universal-argument-more' as well (Bug#25302). --- lisp/isearch.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index 9846f0b..af82229 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2297,6 +2297,7 @@ isearch-fallback ;; Universal argument commands (put 'universal-argument 'isearch-scroll t) +(put 'universal-argument-more 'isearch-scroll t) (put 'negative-argument 'isearch-scroll t) (put 'digit-argument 'isearch-scroll t) @@ -2389,7 +2390,7 @@ isearch-pre-command-hook (setq this-command 'isearch-edit-string)) ;; Handle a scrolling function or prefix argument. ((or (and isearch-allow-prefix - (memq this-command '(universal-argument + (memq this-command '(universal-argument universal-argument-more digit-argument negative-argument))) (and isearch-allow-scroll (symbolp this-command) -- 2.9.3 --=-=-=--