]> git.eshelyaron.com Git - emacs.git/commitdiff
(electric-quote-mode): Activate everywhere in message-mode
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 8 Sep 2015 02:05:04 +0000 (22:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 8 Sep 2015 02:05:04 +0000 (22:05 -0400)
* lisp/electric.el (electric-quote-post-self-insert-function):
Don't use syntax-ppss if comment-use-syntax is nil (e.g. message-mode).

lisp/electric.el
lisp/net/tramp.el

index 4f2400825d77f934ec98cfbbfdbaf50b8c7994bd..47cb020108c4836acd85ffad12e7d7b9bd0cbaaa 100644 (file)
@@ -439,7 +439,7 @@ This requotes when a quoting key is typed."
   (when (and electric-quote-mode
              (memq last-command-event '(?\' ?\`)))
     (let ((start
-           (if comment-start
+           (if (and comment-start comment-use-syntax)
                (when (or electric-quote-comment electric-quote-string)
                  (let ((syntax (syntax-ppss)))
                    (and (or (and electric-quote-comment (nth 4 syntax))
index c16384a6c6cb25ed5c6f7996d360813bc2e8fb9f..0969048c433fffa2e4a5657ea452bea5c64fc85d 100644 (file)
@@ -3615,7 +3615,7 @@ This is needed in order to hide `last-coding-system-used', which is set
 for process communication also."
   (with-current-buffer (process-buffer proc)
     ;; FIXME: If there is a gateway process, we need communication
-    ;; between several processes.  Too complicate to implement, so we
+    ;; between several processes.  Too complicated to implement, so we
     ;; read output from all processes.
     (let ((p (if (tramp-get-connection-property proc "gateway" nil) nil proc))
          buffer-read-only last-coding-system-used)