diff options
| author | Glenn Morris | 2008-03-05 03:57:43 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-05 03:57:43 +0000 |
| commit | 3405b0dfde50d1f5e5983b84cbd5ead7490c7fd1 (patch) | |
| tree | 772f5367bcd4ef43f8fc576b0c89246e54847d24 | |
| parent | c1717fbdfca5f6fe01d2ab095ba306afcaef10a5 (diff) | |
| download | emacs-3405b0dfde50d1f5e5983b84cbd5ead7490c7fd1.tar.gz emacs-3405b0dfde50d1f5e5983b84cbd5ead7490c7fd1.zip | |
(tex-mode): Suppress warning about multiple definitions when compiling.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cba58f8fb2e..6b2583077fb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * textmodes/tex-mode.el (tex-mode): Suppress warning about | ||
| 4 | multiple definitions when compiling. | ||
| 5 | |||
| 1 | 2008-03-04 Alan Mackenzie <acm@muc.de> | 6 | 2008-03-04 Alan Mackenzie <acm@muc.de> |
| 2 | 7 | ||
| 3 | * progmodes/cc-mode.el (c-neutralize-syntax-in-CPP): Fix coding | 8 | * progmodes/cc-mode.el (c-neutralize-syntax-in-CPP): Fix coding |
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.") | |||
| 906 | ;; and we need to define it a second time for `autoload' to get the | 906 | ;; and we need to define it a second time for `autoload' to get the |
| 907 | ;; proper docstring. | 907 | ;; proper docstring. |
| 908 | (defalias 'tex-mode-internal (symbol-function 'tex-mode)) | 908 | (defalias 'tex-mode-internal (symbol-function 'tex-mode)) |
| 909 | |||
| 910 | ;; Suppress the byte-compiler warning about multiple definitions. | ||
| 911 | ;; This is a) ugly, and b) cheating, but this was the last | ||
| 912 | ;; remaining warning from byte-compiling all of Emacs... | ||
| 913 | (eval-when-compile | ||
| 914 | (setq byte-compile-function-environment | ||
| 915 | (delq (assq 'tex-mode byte-compile-function-environment) | ||
| 916 | byte-compile-function-environment))) | ||
| 917 | |||
| 909 | ;;;###autoload | 918 | ;;;###autoload |
| 910 | (defun tex-mode () | 919 | (defun tex-mode () |
| 911 | "Major mode for editing files of input for TeX, LaTeX, or SliTeX. | 920 | "Major mode for editing files of input for TeX, LaTeX, or SliTeX. |