unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39706: 28.0.50; Search prefix nroff-mode
@ 2020-02-20 23:51 Juri Linkov
  2020-02-21  7:48 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Juri Linkov @ 2020-02-20 23:51 UTC (permalink / raw)
  To: 39706

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)





^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-15 12:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).