emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 6cd64aa: (electric-quote-mode): Activate everywhere


From: Stefan Monnier
Subject: [Emacs-diffs] master 6cd64aa: (electric-quote-mode): Activate everywhere in message-mode
Date: Tue, 08 Sep 2015 02:05:09 +0000

branch: master
commit 6cd64aaf1317bdd96f29fa2a7c3d49172e79bc37
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    (electric-quote-mode): Activate everywhere in message-mode
    
    * 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  |    2 +-
 lisp/net/tramp.el |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/electric.el b/lisp/electric.el
index 4f24008..47cb020 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -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))
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index c16384a..0969048 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -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)



reply via email to

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