Mercurial > emacs
changeset 92491:55f5bb0c4d4e
(tex-mode): Suppress warning about multiple definitions when compiling.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 05 Mar 2008 03:57:31 +0000 |
parents | 4efb9fe40d63 |
children | dbef59debced |
files | lisp/textmodes/tex-mode.el |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el Wed Mar 05 03:56:36 2008 +0000 +++ b/lisp/textmodes/tex-mode.el Wed Mar 05 03:57:31 2008 +0000 @@ -906,6 +906,15 @@ ;; 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.