branch: externals/auctex
commit 0a05b39d4bc5a91ce5335c5b2b4d7e7a2fd7ba9f
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Use `declare-function' without `fboundp' test
* latex.el:
* tex-info.el:
Use `declare-function' without `fboundp' test.
---
latex.el | 3 +--
tex-info.el | 12 +++++-------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/latex.el b/latex.el
index ec36e0b..2b4749b 100644
--- a/latex.el
+++ b/latex.el
@@ -5900,8 +5900,7 @@ This happens when \\left is inserted."
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.hva\\'" . latex-mode))
-(when (fboundp 'declare-function)
- (declare-function LaTeX-preview-setup "preview"))
+(declare-function LaTeX-preview-setup "preview")
;;;###autoload
(defun TeX-latex-mode ()
diff --git a/tex-info.el b/tex-info.el
index f990f0f..f986b3f 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -1,7 +1,7 @@
;;; tex-info.el --- Support for editing Texinfo source.
;; Copyright (C) 1993, 1994, 1997, 2000, 2001, 2004, 2005, 2006,
-;; 2011-2015, 2017 Free Software Foundation, Inc.
+;; 2011-2015, 2017, 2018 Free Software Foundation, Inc.
;; Maintainer: [email protected]
;; Keywords: tex
@@ -443,12 +443,10 @@ is assumed by default."
(defvar reftex-label-menu-flags)
(defvar reftex-tables-dirty)
-(eval-when-compile
- (when (fboundp 'declare-function)
- (declare-function reftex-match-string "reftex" (n))
- (declare-function reftex-section-number "reftex-parse" (&optional level
star))
- (declare-function reftex-nicify-text "reftex" (text))
- (declare-function reftex-ensure-compiled-variables "reftex" ())))
+(declare-function reftex-match-string "reftex" (n))
+(declare-function reftex-section-number "reftex-parse" (&optional level star))
+(declare-function reftex-nicify-text "reftex" (text))
+(declare-function reftex-ensure-compiled-variables "reftex" ())
(defun Texinfo-reftex-section-info (file)
;; Return a section entry for the current match.