From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39706: 28.0.50; Search prefix nroff-mode Date: Fri, 21 Feb 2020 09:48:51 +0200 Message-ID: <83sgj4js7w.fsf@gnu.org> References: <87h7zkes1o.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="98811"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39706@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 21 08:50:12 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 1j534d-000PYL-MV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 08:50:11 +0100 Original-Received: from localhost ([::1]:53322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j534c-00042l-MF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 02:50:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38142) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j534V-00042d-60 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 02:50:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j534U-0003af-5b for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 02:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j534U-0003aL-25 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 02:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j534T-0002Cu-Vg for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 02:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2020 07:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 39706-submit@debbugs.gnu.org id=B39706.15822713538408 (code B ref 39706); Fri, 21 Feb 2020 07:50:01 +0000 Original-Received: (at 39706) by debbugs.gnu.org; 21 Feb 2020 07:49:13 +0000 Original-Received: from localhost ([127.0.0.1]:46292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j533h-0002BY-7B for submit@debbugs.gnu.org; Fri, 21 Feb 2020 02:49:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j533f-0002BM-1i for 39706@debbugs.gnu.org; Fri, 21 Feb 2020 02:49:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j533Y-0007fu-Hr; Fri, 21 Feb 2020 02:49:04 -0500 Original-Received: from [176.228.60.248] (port=4420 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j533X-0000WL-TO; Fri, 21 Feb 2020 02:49:04 -0500 In-reply-to: <87h7zkes1o.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 21 Feb 2020 01:51:31 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:176345 Archived-At: > From: Juri Linkov > Date: Fri, 21 Feb 2020 01:51:31 +0200 > > 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: Wouldn't it be more straight-forward and simple to add .log and .log.N to auto-mode-alist, thus preventing nroff-mode from usurping these files? IOW, what you propose sounds like a very convoluted and indirect way of fixing the problem you described, doesn't it?