emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 858e6dc 35/62: ; Fix more byte-compiler warnings


From: Tassilo Horn
Subject: [elpa] externals/auctex 858e6dc 35/62: ; Fix more byte-compiler warnings
Date: Sun, 20 Dec 2020 10:39:59 -0500 (EST)

branch: externals/auctex
commit 858e6dc0c9f50537adb741d0622ac6da732b020e
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    ; Fix more byte-compiler warnings
---
 latex.el    |  2 ++
 tex-info.el |  6 ++++--
 tex.el      | 44 ++++++++++++++++++++------------------------
 3 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/latex.el b/latex.el
index b42e158..0b6117f 100644
--- a/latex.el
+++ b/latex.el
@@ -6038,6 +6038,8 @@ This happens when \\left is inserted."
 
 (declare-function LaTeX-preview-setup "preview")
 
+(defvar TeX-sentinel-default-function) ;; Defined in tex-buf.el.
+
 ;;;###autoload
 (defun TeX-latex-mode ()
   "Major mode in AUCTeX for editing LaTeX files.
diff --git a/tex-info.el b/tex-info.el
index 7c4b8a9..7a6729a 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -624,6 +624,8 @@ is assumed by default."
 ;;;###autoload
 (defalias 'Texinfo-mode 'texinfo-mode)
 
+(defvar TeX-sentinel-default-function) ;; Defined in tex-buf.el.
+
 ;;;###autoload
 (defun TeX-texinfo-mode ()
   "Major mode in AUCTeX for editing Texinfo files.
@@ -691,8 +693,8 @@ value of `Texinfo-mode-hook'."
   (setq TeX-trailer-start (regexp-quote (concat TeX-esc "bye")))
 
   (set (make-local-variable 'TeX-complete-list)
-       (list (list "@\\([a-zA-Z]*\\)" 1 'TeX-symbol-list-filtered nil)
-             (list "" TeX-complete-word)))
+       (list (list "@\\([a-zA-Z]*\\)" 1 'TeX-symbol-list-filtered nil)
+            (list "" TeX-complete-word)))
 
   (set (make-local-variable 'TeX-font-list) Texinfo-font-list)
   (set (make-local-variable 'TeX-font-replace-function) 
'TeX-font-replace-macro)
diff --git a/tex.el b/tex.el
index aa4b113..1a22ef8 100644
--- a/tex.el
+++ b/tex.el
@@ -50,14 +50,6 @@
                  (bus service path interface method &rest args))
 (declare-function dbus-register-signal "ext:dbus"
                  (bus service path interface signal handler &rest args))
-(declare-function TeX-output-extension "tex-buf"
-                 nil)
-(declare-function TeX-command-expand "tex-buf"
-                 (command &optional list))
-(declare-function TeX-active-master "tex-buf"
-                 (&optional extension nondirectory ignore))
-(declare-function TeX-pop-to-buffer "tex-buf"
-                 (buffer &optional other-window norecord))
 (declare-function LaTeX-environment-list "latex"
                  nil)
 (declare-function tex--prettify-symbols-compose-p "ext:tex-mode"
@@ -701,25 +693,29 @@ sure \"%p\" is the first entry."
 ;; should remain unloaded as long as one is only editing files, so
 ;; requiring it here would be wrong.
 
-(autoload 'TeX-region-create "tex-buf" nil nil)
-(autoload 'TeX-save-document "tex-buf" nil t)
-(autoload 'TeX-home-buffer "tex-buf" nil t)
-(autoload 'TeX-pin-region "tex-buf" nil t)
-(autoload 'TeX-command-region "tex-buf" nil t)
+(autoload 'LaTeX-command-run-all-section "tex-buf" nil t)
+(autoload 'LaTeX-command-section "tex-buf" nil t)
+(autoload 'TeX-active-master "tex-buf")
+(autoload 'TeX-command "tex-buf")
 (autoload 'TeX-command-buffer "tex-buf" nil t)
+(autoload 'TeX-command-expand "tex-buf")
 (autoload 'TeX-command-master "tex-buf" nil t)
-(autoload 'LaTeX-command-section "tex-buf" nil t)
+(autoload 'TeX-command-region "tex-buf" nil t)
 (autoload 'TeX-command-run-all "tex-buf" nil t)
 (autoload 'TeX-command-run-all-region "tex-buf" nil t)
-(autoload 'LaTeX-command-run-all-section "tex-buf" nil t)
-(autoload 'TeX-command "tex-buf" nil nil)
+(autoload 'TeX-current-offset "tex-buf")
+(autoload 'TeX-error-overview "tex-buf" nil t)
+(autoload 'TeX-home-buffer "tex-buf" nil t)
 (autoload 'TeX-kill-job "tex-buf" nil t)
-(autoload 'TeX-recenter-output-buffer "tex-buf" nil t)
 (autoload 'TeX-next-error "tex-buf" nil t)
-(autoload 'TeX-error-overview "tex-buf" nil t)
-(autoload 'TeX-region-file "tex-buf" nil nil)
-(autoload 'TeX-current-offset "tex-buf" nil nil)
-(autoload 'TeX-process-set-variable "tex-buf" nil nil)
+(autoload 'TeX-output-extension "tex-buf")
+(autoload 'TeX-pin-region "tex-buf" nil t)
+(autoload 'TeX-pop-to-buffer "tex-buf")
+(autoload 'TeX-process-set-variable "tex-buf")
+(autoload 'TeX-recenter-output-buffer "tex-buf" nil t)
+(autoload 'TeX-region-create "tex-buf")
+(autoload 'TeX-region-file "tex-buf")
+(autoload 'TeX-save-document "tex-buf" nil t)
 (autoload 'TeX-view "tex-buf" nil t)
 
 ;;; Portability.
@@ -738,10 +734,10 @@ but takes care of byte-compilation issues where the 
byte-code for
 the latter could signal an error if it has been compiled with
 emacs 24.1 and is then later run by emacs 24.5."
   (declare (indent 2) (debug (symbolp form &rest form)))
-  (if (fboundp name)            ;If macro exists at compile-time, just use it.
+  (if (fboundp name)             ;If macro exists at compile-time, just use it.
       then
-    `(if (fboundp ',name)       ;Else, check if it exists at run-time.
-        (eval ',then)          ;If it does, then run the then code.
+    `(if (fboundp ',name)               ;Else, check if it exists at run-time.
+        (eval ',then)                  ;If it does, then run the then code.
        ,@else)))                ;Otherwise, run the else code.
 
 (require 'easymenu)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]