]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove pointless code in 'electric-quote-mode'
authorPhilipp Stephani <phst@google.com>
Sun, 2 Jul 2017 16:04:38 +0000 (18:04 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 9 Jul 2017 19:55:30 +0000 (21:55 +0200)
* lisp/electric.el (electric-quote-post-self-insert-function): Remove
pointless form.

lisp/electric.el

index 6e1b685ed66a9412037b779d7894869a8b2590e4..96c805bb5fbba5365fb0171112a885705bda9fb4 100644 (file)
@@ -482,11 +482,7 @@ This requotes when a quoting key is typed."
                           (eq beg (nth 8 (save-excursion
                                            (syntax-ppss (1- (point)))))))))
                (and electric-quote-paragraph
-                    (derived-mode-p 'text-mode)
-                    ;; FIXME: Why is the next form there?  It’s never
-                    ;; nil.
-                    (or (eq last-command-event ?\`)
-                        (save-excursion (backward-paragraph) (point))))))
+                    (derived-mode-p 'text-mode))))
     (pcase electric-quote-chars
       (`(,q< ,q> ,q<< ,q>>)
        (save-excursion