branch: main
commit 02dc0191d46f2111086b1c1783909b14fe0471c9
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>

    ; Simplify recent change
    
    * latex.el (LaTeX--modify-math-1): Simplify 'when' block.
---
 latex.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/latex.el b/latex.el
index 61bdb7bb..d7b2ef23 100644
--- a/latex.el
+++ b/latex.el
@@ -9648,11 +9648,11 @@ marker that keeps track of cursor position."
         (insert new-close)
         ;; Indent, including one line past the modified region.
         (widen)
-        (when sentence-end-double-space
-          (when (looking-at-p "[.?!]")
-            (save-excursion
-              (forward-char)
-              (insert " "))))
+        (and sentence-end-double-space
+             (looking-at-p "[.?!]")
+             (save-excursion
+               (forward-char)
+               (insert " ")))
         (end-of-line 2)
         (indent-region start (point))))))
 

Reply via email to