summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-tex.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/init-tex.el b/lisp/init-tex.el
index 3f244cf..db8cde0 100644
--- a/lisp/init-tex.el
+++ b/lisp/init-tex.el
@@ -21,6 +21,7 @@ This is meant for single elements, like \"\\section\". If TAG is
not given, it is taken from the active region."
(interactive)
(save-excursion
+ (widen)
(let* ((tag (or tag
(buffer-substring-no-properties (mark) (point))))
(tag (if (s-starts-with? "\\" tag)
@@ -41,6 +42,7 @@ This is meant for paired elements, like \"\\begin{document}\". If
TAG is not given, it is taken from the active region."
(interactive)
(save-excursion
+ (widen)
(let* ((tag (or tag
(buffer-substring-no-properties (mark) (point))))
(beg (progn (end-of-line)