GNU bug report logs -
#39706
28.0.50; Search prefix nroff-mode
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Fri, 21 Feb 2020 00:11:03 UTC
Severity: normal
Tags: fixed, patch
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> 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.
This bug report was last modified 4 years and 364 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.