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#39121: 27.0.60; occur: Add bindings for next-error-no-select Date: Mon, 13 Jan 2020 21:51:03 +0100 Message-ID: <87blr7t70o.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="212678"; mail-complaints-to="usenet@blaine.gmane.org" Cc: juri linkov To: 39121@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 13 21:58:14 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 1ir6lV-000m8J-PP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jan 2020 21:56:49 +0100 Original-Received: from localhost ([::1]:55778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir6lU-0004zR-DY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jan 2020 15:56:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53769) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir6gu-0006ci-BA 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-00053T-6s for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:52:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54212) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir6gt-00053C-3C 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 1ir6gs-0001FR-Mv; Mon, 13 Jan 2020 15:52:02 -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:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39121 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.15789486724709 (code B ref -1); Mon, 13 Jan 2020 20:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2020 20:51:12 +0000 Original-Received: from localhost ([127.0.0.1]:60180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir6g4-0001Ds-Af for submit@debbugs.gnu.org; Mon, 13 Jan 2020 15:51:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:41241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir6g2-0001Dk-0V for submit@debbugs.gnu.org; Mon, 13 Jan 2020 15:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53633) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir6g0-00051Z-GL for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:51:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir6fz-0004LT-61 for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:51:08 -0500 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:42129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir6fy-0004KJ-Uf for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2020 15:51:07 -0500 Original-Received: by mail-wr1-x433.google.com with SMTP id q6so10025440wro.9 for ; Mon, 13 Jan 2020 12:51:06 -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=ur26rx2RV/t3WS4xiSvuYuxHu+IPF8a1zsR1CYDrS2+88NwBd/bh58Pqgyc1p3Lhjy hZ0Ul0JbDkf49ly4oqv37le+EbzqohUIGVD3ztVsnRZkq0/6DNetPHSxBSfAcB+ev5PW yFuUA9BQdn850dXBV+LxRTBAFcQ8+T/nRl3hkpQqW7nAHWfK1iOu3AqmD8ql+Tat3gyO VCYegPtp4RXXC9LYE5jghbnYv3wFzVUhcTMr/oYkkUE6m6dHgMA/db7dOs2QQEl3osJB EZh/3xp2CRs96qLZxOvNmmCke83juvZubrWfmQfMuJKW8PrV8yJF9K3nZhmw8Cf0M5// DyAA== 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=L/ZVi5JcBuJthhwuhezWjtBVaYejsJuidYYpyfcVKFgdoRDlPnS6puGO8yK10pShdN JTbynEJ/Jo2hrdKf7Mv+RX4zdrAzV9+G25K7MkpwfF3FsqJh9WKal7xglwuYhmQZ3r0o H3Eh6xQkvv36OSrUTkXZTaLzORhgCEZVvmyAWRLoDQFzpoiFiB4zhKY6Dsqlp4wvWDZw G6fQ3URQbd6DZgiB4/KbChknE3JTXQsk8su4ZNVhqrVemFLIlr6MyDAaSmk7pfy0p5Ym 1nDqidc4pe5lIV0YANfUQL+gBB5fML50j8LZi2/qjt7uwMjb82I7soHEeMzxZONBnkTY miag== X-Gm-Message-State: APjAAAVopjn5+BtGnXdwL5akcyXLWUOK5FOzWiEZ1AQT+lI67BRYzyWR sA1zgGh6NLx7gq/p2SqeLAC7rRxe X-Google-Smtp-Source: APXvYqy42UYXtjGgsc0ZNAlsFzUKO/KxPjuDnwwzKNHq/30TES1EtgCkrv/w5xkS/i2YPWFpK8JDDQ== X-Received: by 2002:adf:f1c6:: with SMTP id z6mr21687011wro.279.1578948665485; Mon, 13 Jan 2020 12:51:05 -0800 (PST) Original-Received: from calancha-pc.dy.bbexcite.jp ([31.7.242.222]) by smtp.gmail.com with ESMTPSA id d8sm16836368wre.13.2020.01.13.12.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 12:51:04 -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:174549 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)