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: Sun, 23 Feb 2020 02:40:18 +0200 Organization: LINKOV.NET Message-ID: <87v9nykufh.fsf@mail.linkov.net> References: <87h7zkes1o.fsf@mail.linkov.net> <83sgj4js7w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="6310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 39706@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 23 01:45:49 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 1j5fP3-0001Vu-77 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Feb 2020 01:45:49 +0100 Original-Received: from localhost ([::1]:48425 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5fP2-0002rj-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Feb 2020 19:45:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33236) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5fOM-0001vp-Ms for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 19:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5fOL-0003iZ-HL for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 19:45:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5fOL-0003iS-E2 for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 19:45:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5fOL-0000Ai-Bt for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2020 19:45:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Feb 2020 00:45:05 +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.1582418703632 (code B ref 39706); Sun, 23 Feb 2020 00:45:05 +0000 Original-Received: (at 39706) by debbugs.gnu.org; 23 Feb 2020 00:45:03 +0000 Original-Received: from localhost ([127.0.0.1]:50271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5fOJ-0000A2-8B for submit@debbugs.gnu.org; Sat, 22 Feb 2020 19:45:03 -0500 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:2285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5fOC-00008p-2M for 39706@debbugs.gnu.org; Sat, 22 Feb 2020 19:44:56 -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 EBAB73C0FC6; Sun, 23 Feb 2020 00:44:54 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a92.g.dreamhost.com (100-96-206-172.trex.outbound.svc.cluster.local [100.96.206.172]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6BF363C0A9E; Sun, 23 Feb 2020 00:44:54 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a92.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); Sun, 23 Feb 2020 00:44:54 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Shelf-Gusty: 2eaded4f50267645_1582418694655_3922229490 X-MC-Loop-Signature: 1582418694655:3294163146 X-MC-Ingress-Time: 1582418694654 Original-Received: from pdx1-sub0-mail-a92.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a92.g.dreamhost.com (Postfix) with ESMTP id 538D97F1CA; Sat, 22 Feb 2020 16:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=M2971Yspv6E9j3YPLuEhkE5L1cY=; b= 11xTeGZKHZVXIDOl9sQ2keHmYKC/ziL8xfjhdHtm5bEjmnfUsZ7ctVGT/R53rvW0 ncTwjXw9bqBOxXjzBCm1Z57Df2U8JXDJydMSNrDbBouyqa5+Hii9EQWthWtYRBUT JnBt4zsap3zmytufPwTjdCMci5NNvfier6+Vm1MsKWs= 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-a92.g.dreamhost.com (Postfix) with ESMTPSA id 017C87F1C5; Sat, 22 Feb 2020 16:44:49 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a92 In-Reply-To: <83sgj4js7w.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Feb 2020 09:48:51 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrkeejgddvudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgepfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhotggrlhhhohhsthdrlhhinhhkohhvrdhnvghtpdhinhgvthepledurdduvdelrddutdefrddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh 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:176414 Archived-At: >> 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? These files were some random files for my particular case. I can customize auto-mode-alist to handle my use cases. The point of my bug report is that I accidentally discovered a problem in nroff-mode that otherwise I don't use. > IOW, what you propose sounds like a very convoluted and indirect way > of fixing the problem you described, doesn't it? The proposed patch fixes nroff-mode to make the search prefix available for users of nroff-mode.