Index: auctex/latex.el
diff -u auctex/latex.el:5.404 auctex/latex.el:5.405
--- auctex/latex.el:5.404       Mon Mar 27 21:32:23 2006
+++ auctex/latex.el     Wed Apr 12 20:00:46 2006
@@ -4614,7 +4614,8 @@
           (hyphen-length (length hyphen)))
       (cond
        ;; "= --> -- / -
-       ((string= (buffer-substring (- (point) hyphen-length) (point))
+       ((string= (buffer-substring (max (- (point) hyphen-length) (point-min))
+                                  (point))
                 hyphen)
        (if h-after-h
            (progn (delete-backward-char hyphen-length)
@@ -4622,7 +4623,9 @@
          (delete-backward-char hyphen-length)
          (call-interactively 'self-insert-command)))
        ;; -- --> [+]-
-       ((string= (buffer-substring (- (point) 2) (point)) "--")
+       ((string= (buffer-substring (max (- (point) 2) (point-min))
+                                  (point))
+                "--")
        (call-interactively 'self-insert-command))
        ;; - --> "= / [+]-
        ((eq (char-before) ?-)


_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to