summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-03-05 03:57:43 +0000
committerGlenn Morris <rgm@gnu.org>2008-03-05 03:57:43 +0000
commit3405b0dfde50d1f5e5983b84cbd5ead7490c7fd1 (patch)
tree772f5367bcd4ef43f8fc576b0c89246e54847d24 /lisp/textmodes
parentc1717fbdfca5f6fe01d2ab095ba306afcaef10a5 (diff)
downloademacs-3405b0dfde50d1f5e5983b84cbd5ead7490c7fd1.tar.gz
(tex-mode): Suppress warning about multiple definitions when compiling.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index ff19e602426..5712eca753d 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -906,6 +906,15 @@ Inherits `shell-mode-map' with a few additions.")
;; and we need to define it a second time for `autoload' to get the
;; proper docstring.
(defalias 'tex-mode-internal (symbol-function 'tex-mode))
+
+;; Suppress the byte-compiler warning about multiple definitions.
+;; This is a) ugly, and b) cheating, but this was the last
+;; remaining warning from byte-compiling all of Emacs...
+(eval-when-compile
+ (setq byte-compile-function-environment
+ (delq (assq 'tex-mode byte-compile-function-environment)
+ byte-compile-function-environment)))
+
;;;###autoload
(defun tex-mode ()
"Major mode for editing files of input for TeX, LaTeX, or SliTeX.