aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-03-09 10:16:02 +0000
committerMiles Bader2005-03-09 10:16:02 +0000
commitf195388009ff7218ff09cedaf5f303a46790dae7 (patch)
treeb1195a9ee4d2928ea22a704c66ccca9972ec0899
parentec4e909a0f4b15e64e39cd4c27a2a68a3453ec02 (diff)
downloademacs-f195388009ff7218ff09cedaf5f303a46790dae7.tar.gz
emacs-f195388009ff7218ff09cedaf5f303a46790dae7.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-167
Tweak obsolete function/variable warning message 2005-03-09 Miles Bader <miles@gnu.org> * lisp/emacs-lisp/bytecomp.el (byte-compile-variable-ref) (byte-compile-obsolete): Change " since VER" to " (as of Emacs VER)".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b245d602e14..12d9a777e56 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-03-09 Miles Bader <miles@gnu.org>
2
3 * emacs-lisp/bytecomp.el (byte-compile-variable-ref)
4 (byte-compile-obsolete): Change " since VER" to " (as of Emacs VER)".
5
12005-03-09 Kenichi Handa <handa@m17n.org> 62005-03-09 Kenichi Handa <handa@m17n.org>
2 7
3 * international/latin-1.el: Set case and syntax for 255 only if 8 * international/latin-1.el: Set case and syntax for 255 only if
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 25a1ba080d1..08d5515524d 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1,7 +1,7 @@
1;;; bytecomp.el --- compilation of Lisp code into byte code 1;;; bytecomp.el --- compilation of Lisp code into byte code
2 2
3;; Copyright (C) 1985, 1986, 1987, 1992, 1994, 1998, 2000, 2001, 2002, 3;; Copyright (C) 1985, 1986, 1987, 1992, 1994, 1998, 2000, 2001, 2002,
4;; 2003, 2004 Free Software Foundation, Inc. 4;; 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6;; Author: Jamie Zawinski <jwz@lucid.com> 6;; Author: Jamie Zawinski <jwz@lucid.com>
7;; Hallvard Furuseth <hbf@ulrik.uio.no> 7;; Hallvard Furuseth <hbf@ulrik.uio.no>
@@ -1039,7 +1039,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
1039 (byte-compile-set-symbol-position (car form)) 1039 (byte-compile-set-symbol-position (car form))
1040 (if (memq 'obsolete byte-compile-warnings) 1040 (if (memq 'obsolete byte-compile-warnings)
1041 (byte-compile-warn "`%s' is an obsolete function%s; %s" (car form) 1041 (byte-compile-warn "`%s' is an obsolete function%s; %s" (car form)
1042 (if when (concat " since " when) "") 1042 (if when (concat " (as of Emacs " when ")") "")
1043 (if (stringp (car new)) 1043 (if (stringp (car new))
1044 (car new) 1044 (car new)
1045 (format "use `%s' instead." (car new))))) 1045 (format "use `%s' instead." (car new)))))
@@ -2779,7 +2779,7 @@ That command is designed for interactive use only" fn))
2779 (let* ((ob (get var 'byte-obsolete-variable)) 2779 (let* ((ob (get var 'byte-obsolete-variable))
2780 (when (cdr ob))) 2780 (when (cdr ob)))
2781 (byte-compile-warn "`%s' is an obsolete variable%s; %s" var 2781 (byte-compile-warn "`%s' is an obsolete variable%s; %s" var
2782 (if when (concat " since " when) "") 2782 (if when (concat " (as of Emacs " when ")") "")
2783 (if (stringp (car ob)) 2783 (if (stringp (car ob))
2784 (car ob) 2784 (car ob)
2785 (format "use `%s' instead." (car ob)))))) 2785 (format "use `%s' instead." (car ob))))))