help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

electric-quote-mode with ERC


From: Christian Barthel
Subject: electric-quote-mode with ERC
Date: Thu, 18 Nov 2021 20:17:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hello,

I tried to use the electric-quote-mode with an ERC buffer but
that did not work on GNU Emacs 28.0.50.  It seems that ERC is not
derived from text-mode.  To use electric-quote-mode, I have
added:

diff -u --label electric.el.gz scratch
--- #<buffer electric.el.gz>
+++ #<buffer *scratch*>
@@ -557,7 +557,10 @@
                       (eq last-command-event ?\")))
              (not (run-hook-with-args-until-success
                    'electric-quote-inhibit-functions))
-             (if (derived-mode-p 'text-mode)
+             (if
+                 (or (derived-mode-p 'text-mode)
+                     (derived-mode-p 'erc-mode)
+                     )
                  electric-quote-paragraph
                (and comment-start comment-use-syntax
                     (or electric-quote-comment electric-quote-string)

Is this something of general interest?

-- 
Christian Barthel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]