From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#39706: 28.0.50; Search prefix nroff-mode Date: Fri, 21 Feb 2020 01:51:31 +0200 Organization: LINKOV.NET Message-ID: <87h7zkes1o.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94661"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 39706@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 21 01:11:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4vuX-000OV2-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 01:11:17 +0100 Original-Received: from localhost ([::1]:50688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4vuV-0008BP-VQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Feb 2020 19:11:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32788) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4vuK-00089X-S4 for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:11:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4vuJ-0007XS-Tv for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:11:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4vuJ-0007XI-Qw for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4vuJ-0005Cy-Lw for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:11:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2020 00:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158224384819953 (code B ref -1); Fri, 21 Feb 2020 00:11:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2020 00:10:48 +0000 Original-Received: from localhost ([127.0.0.1]:46125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4vu3-0005Bl-Q8 for submit@debbugs.gnu.org; Thu, 20 Feb 2020 19:10:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4vu1-0005Bd-Np for submit@debbugs.gnu.org; Thu, 20 Feb 2020 19:10:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60982) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4vu0-00088e-Np for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:10:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4vtz-0007M2-Oo for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:10:44 -0500 Original-Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:40314) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4vtz-0007L3-G9 for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 19:10:43 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5539F540A89 for ; Fri, 21 Feb 2020 00:10:42 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a86.g.dreamhost.com (100-96-0-6.trex.outbound.svc.cluster.local [100.96.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E231D540704 for ; Fri, 21 Feb 2020 00:10:41 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Fri, 21 Feb 2020 00:10:42 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Abaft-Cold: 58db32b45508c0ee_1582243842133_651107675 X-MC-Loop-Signature: 1582243842133:3663383264 X-MC-Ingress-Time: 1582243842133 Original-Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 37E027EF6F for ; Thu, 20 Feb 2020 16:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=DBUY1TmBVc4w9RMIOxVP1BuujIA=; b=I+jrI7F+s2qvXG7Ul SQWViSXktWnZKg4boWYFueY0NtGfK5+uQxU4sflpsAGCSifLKjaThBzt+Xiaj1Mp tBgY6dSWAll6/wF59wumh3NWhppM1gS+tlUu5Ohippf2wSTD16MNW01IEbZi590p hfY9ekcsctL9Z65WYuhz53Kdpg= Original-Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee [91.129.103.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id F2E277F000 for ; Thu, 20 Feb 2020 16:10:36 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a86 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrkeefgddvtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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.io gmane.emacs.bugs:176328 Archived-At: Tags: patch Often logs files have numeric file extensions such as log.1, log.2, ... thus visited in nroff-mode. I don't care about the wrong mode since they are visited in read-only anyway just for a quick peek. But the problem is that nroff-mode steals the global prefix M-s used to run search commands. nroff-mode inherits from text-mode that puts 'center-line' on the key 'M-o M-s', so this is what nroff-mode should use as well: diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el index 62e8b1f093..99e144d215 100644 --- a/lisp/textmodes/nroff-mode.el +++ b/lisp/textmodes/nroff-mode.el @@ -50,7 +50,8 @@ nroff-mode-map (let ((map (make-sparse-keymap)) (menu-map (make-sparse-keymap))) (define-key map "\t" 'tab-to-tab-stop) - (define-key map "\es" 'center-line) + ;; Should use 'M-o M-s' from text-mode + ;; (define-key map "\es" 'center-line) (define-key map "\e?" 'nroff-count-text-lines) (define-key map "\n" 'nroff-electric-newline) (define-key map "\en" 'nroff-forward-text-line)