From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#39122: 27.0.60; occur: Add bindings for next-error-no-select Date: Mon, 13 Jan 2020 21:51:16 +0100 Message-ID: <87a76rt70b.fsf@calancha-pc.dy.bbexcite.jp> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="628"; mail-complaints-to="usenet@blaine.gmane.org" Cc: juri linkov To: 39122@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 13 22:00:28 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ir6oA-000lA1-8z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jan 2020 21:59:34 +0100 Original-Received: from localhost ([::1]:55776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir6lG-0004mV-Il for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jan 2020 15:56:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53773) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir6gu-0006dM-Mt for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir6gt-00053v-L2 for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:52:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54213) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir6gt-00053i-Ig for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:52:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ir6gt-0001Fi-GT; Mon, 13 Jan 2020 15:52:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: juri@linkov.net, bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jan 2020 20:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39122 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: juri linkov Original-Received: via spool by submit@debbugs.gnu.org id=B.15789486834735 (code B ref -1); Mon, 13 Jan 2020 20:52:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2020 20:51:23 +0000 Original-Received: from localhost ([127.0.0.1]:60183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir6gE-0001EJ-MF for submit@debbugs.gnu.org; Mon, 13 Jan 2020 15:51:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir6gD-0001EC-SH for submit@debbugs.gnu.org; Mon, 13 Jan 2020 15:51:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53694) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir6gC-0005L1-BP for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:51:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir6gB-0004Y6-8R for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:51:20 -0500 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:36369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir6gB-0004XG-2u for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:51:19 -0500 Original-Received: by mail-wr1-x42b.google.com with SMTP id z3so10078788wru.3 for ; Mon, 13 Jan 2020 12:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=AsY+KLl4u7j+3eamPVAx6Tpfig1M0ByEr0vlSuFfzWA=; b=gGebMUUEh9Plzjh2N0lVp7g44FvmVw3oIU++i5OQpZII4Yr/uTxuSlwWhPp7OKz5Bt fvZEygIdvOTTM3F5+AKfV+OXJI+TXjXFS5uKMjMRSkugTUHgRQN/wi4evDHgITIPp6qi SEKAlPjkTwmZA8qAzHq0vyqKkJUWHzVwqED3QndLIgeeMS3/8TRaKS7Z29LDqay+umS1 m84Hxpu1O6txB9/Uct7774sxCTDufpnK4b6KjXQyO1YIxflXlC9OIjbxd6DcBDu9lwrK 7i1J9kC3+IsEzbJAu7/jF1u6oOBzXrpIdKznSLVoOFansjXSpQJwcsmzAqmjm6jScYUR 6R5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=AsY+KLl4u7j+3eamPVAx6Tpfig1M0ByEr0vlSuFfzWA=; b=mUswRcfWS9ejraFZ00qAzaQME9uA0TLK7IrxuPtMRJJaIf1Xnalxn5Bg2Np4wUvUiW a4/XoDPiU1pBuO4O8pHZQ4cASGBtgNoMyCabNdZkC00gDHDPGc+FGTozgtb0GfcxlJS7 ai3v1MBDUiDk60TIEHVDoBYTVSAWN9QrBRFDCR7ixd5PFCv7TnPRNuvQL7NyYRV6zmS9 XshB2Z541STT14WagQzG9sT9wR0Vr4Rfb1bz+vJ3H5PVl/u9FhiO9Q7zE668n0K1VOpB S7G0uuWHyYa1rpy5VqBWy+Se/LVPr8sNtiojTS4CPr+BH8hg6IeKWCxLlUnNMFveS03f xFlw== X-Gm-Message-State: APjAAAV0wU20y5NAzBbxD3FwknzHi64tUiSMiJBad396D5z13kjzt0c2 Hw78y0A3do3idEW8ff43lNmrkXh5 X-Google-Smtp-Source: APXvYqwlzDmZfx7wwk9U1KFDN/DBdkCBfGHMWkdizINMm52T3AeCW6jmLNvbfhzDDoZJMRG7tViCuA== X-Received: by 2002:adf:ef0b:: with SMTP id e11mr20618251wro.128.1578948677812; Mon, 13 Jan 2020 12:51:17 -0800 (PST) Original-Received: from calancha-pc.dy.bbexcite.jp ([31.7.242.222]) by smtp.gmail.com with ESMTPSA id u1sm15869514wmc.5.2020.01.13.12.51.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 12:51:17 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174550 Archived-At: Severity: wishlist X-Debbugs-Cc: Juri Linkov I wish having `next-error-no-select', `previous-error-no-select' bound to `n' and `p' in the occur mode, as we have in *grep* buffer. AFAICS, we have all the infrastructure and it's just a matter of define the bindings at `occur-mode-map'. --8<-----------------------------cut here---------------start------------->8--- commit 72617bd49b151772d3c709bfa489d0a8f14bf408 Author: Tino Calancha Date: Mon Jan 13 21:37:39 2020 +0100 occur: Add bindings for next-error-no-select Add bindings to navigate the matches without select their buffers. * lisp/replace.el (occur-mode-map): Bind n to next-error-no-select and p to previous-error-no-select. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 27.1): Annonce this change. diff --git a/etc/NEWS b/etc/NEWS index 031ddf5800..572dfbbcf0 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -688,6 +688,8 @@ same as the 'C-x C-+' and 'C-x C--' commands. * Changes in Specialized Modes and Packages in Emacs 27.1 +** New bindings in occur-mode, 'next-error-no-select' bound to 'n' and +'previous-error-no-select' bound to 'p'. --- ** New HTML mode skeleton 'html-id-anchor'. This new command (which inserts an _ skeleton) is diff --git a/lisp/replace.el b/lisp/replace.el index a0b050637e..3c1918a257 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -1106,6 +1106,8 @@ occur-mode-map (define-key map "\C-m" 'occur-mode-goto-occurrence) (define-key map "o" 'occur-mode-goto-occurrence-other-window) (define-key map "\C-o" 'occur-mode-display-occurrence) + (define-key map "n" 'next-error-no-select) + (define-key map "p" 'previous-error-no-select) (define-key map "\M-n" 'occur-next) (define-key map "\M-p" 'occur-prev) (define-key map "r" 'occur-rename-buffer) --8<-----------------------------cut here---------------end--------------->8--- In GNU Emacs 27.0.60 (build 48, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2020-01-13 built on calancha-pc.dy.bbexcite.jp Repository revision: d645628e3cf6ebe5eaea3b40100bd77b9c823f8b Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster)