From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39706@debbugs.gnu.org
Subject: bug#39706: 28.0.50; Search prefix nroff-mode
Date: Sun, 23 Feb 2020 02:40:18 +0200 [thread overview]
Message-ID: <87v9nykufh.fsf@mail.linkov.net> (raw)
In-Reply-To: <83sgj4js7w.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Feb 2020 09:48:51 +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?
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.
next prev parent reply other threads:[~2020-02-23 0:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 23:51 bug#39706: 28.0.50; Search prefix nroff-mode Juri Linkov
2020-02-21 7:48 ` Eli Zaretskii
2020-02-23 0:40 ` Juri Linkov [this message]
2020-02-23 15:18 ` Eli Zaretskii
2020-02-23 23:02 ` Juri Linkov
2020-02-24 16:25 ` Eli Zaretskii
2020-02-25 0:39 ` Juri Linkov
2020-02-25 5:42 ` Eli Zaretskii
2020-03-14 12:30 ` Lars Ingebrigtsen
2020-08-15 12:20 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9nykufh.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=39706@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.