[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/latex.el
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/latex.el |
Date: |
Wed, 12 Apr 2006 20:00:46 +0000 |
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] Changes to auctex/latex.el,
Ralf Angeli <=