aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-09-20 02:53:58 +0000
committerGlenn Morris2007-09-20 02:53:58 +0000
commit3cfff67b9e5e50ead17743cbc7deac64ce549b67 (patch)
tree58e50f2caa583ac1227921923b52920d227303c1
parenteba25e7c2caa86dbc47de305f0e20a06dde1ecb3 (diff)
downloademacs-3cfff67b9e5e50ead17743cbc7deac64ce549b67.tar.gz
emacs-3cfff67b9e5e50ead17743cbc7deac64ce549b67.zip
Revert previous change.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/textmodes/tex-mode.el23
2 files changed, 13 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c989f666aa5..f91b0156cfe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -68,7 +68,7 @@
68 error if the port associated with a service string can't be found. 68 error if the port associated with a service string can't be found.
69 69
70 * textmodes/tex-mode.el (tex-terminate-paragraph): 70 * textmodes/tex-mode.el (tex-terminate-paragraph):
71 Use backward-paragraph. Leave point at the site of any mismatch. 71 Use backward-paragraph.
72 72
732007-09-19 Stefan Monnier <monnier@iro.umontreal.ca> 732007-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
74 74
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index e2e0f702547..3a7a9880d38 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1272,18 +1272,19 @@ area if a mismatch is found."
1272Check for mismatched braces or $s in paragraph being terminated. 1272Check for mismatched braces or $s in paragraph being terminated.
1273A prefix arg inhibits the checking." 1273A prefix arg inhibits the checking."
1274 (interactive "*P") 1274 (interactive "*P")
1275 (insert "\n\n")
1276 (or inhibit-validation 1275 (or inhibit-validation
1277 ;; For the purposes of this, a "paragraph" is a block of text 1276 (save-excursion
1278 ;; wherein all the brackets etc are expected to be balanced. It 1277 ;; For the purposes of this, a "paragraph" is a block of text
1279 ;; may start after a blank line (ie a "proper" paragraph), or 1278 ;; wherein all the brackets etc are expected to be balanced. It
1280 ;; a begin{} or end{} block, etc. 1279 ;; may start after a blank line (ie a "proper" paragraph), or
1281 (tex-validate-region 1280 ;; a begin{} or end{} block, etc.
1282 (save-excursion 1281 (tex-validate-region
1283 (backward-paragraph) 1282 (save-excursion
1284 (point)) 1283 (backward-paragraph)
1285 (point)) 1284 (point))
1286 (message "Paragraph being closed appears to contain a mismatch"))) 1285 (point)))
1286 (message "Paragraph being closed appears to contain a mismatch"))
1287 (insert "\n\n"))
1287 1288
1288(define-skeleton tex-insert-braces 1289(define-skeleton tex-insert-braces
1289 "Make a pair of braces and be poised to type inside of them." 1290 "Make a pair of braces and be poised to type inside of them."