branch: main commit bb1fec9cb4b1fd705096a368ffb40226e50fa66d Author: Paul Nelson <ultr...@gmail.com> Commit: Paul Nelson <ultr...@gmail.com>
; Simplify recent change * latex.el (LaTeX--strip-labels): Simplify line deletion. --- latex.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/latex.el b/latex.el index af7c8ee6..757172d7 100644 --- a/latex.el +++ b/latex.el @@ -9570,8 +9570,7 @@ no caption key is found, an error is issued. See also the docstring of (when (save-excursion (beginning-of-line) (looking-at "[ \t]*$")) ;; Delete current line if it is empty. - (beginning-of-line) - (delete-region (point) (progn (forward-line 1) (point)))))))) + (delete-region (line-beginning-position 1) (line-beginning-position 2))))))) (defun LaTeX--modify-math-1 (open close inline new-open new-close new-inline pos) "Helper function for `LaTeX-modify-math'.