branch: main commit 8de09a85b9f77aaffa3c6a89d55e15e0c102bb59 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
; Simplify last change * tex.el (TeX-insert-quote): Use `bound-and-true-p'. --- tex.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tex.el b/tex.el index 498464e0..59a33142 100644 --- a/tex.el +++ b/tex.el @@ -6483,11 +6483,9 @@ With prefix argument FORCE, always inserts \" characters." (t close-quote)))) ;; Fold quotes if TeX-fold-quotes-on-insert is t - (when (and (boundp 'TeX-fold-mode) - (boundp 'TeX-fold-quotes-on-insert) + (when (and (bound-and-true-p TeX-fold-mode) + (bound-and-true-p TeX-fold-quotes-on-insert) (fboundp 'TeX-fold-quotes) - TeX-fold-mode - TeX-fold-quotes-on-insert (not (eq (char-before) ?\"))) ; Don't fold single quotes (save-excursion (let* ((end (point))