changeset 105044:2e1ecbf638ee

(byte-compile-not-obsolete-vars): Set if bound.
author Glenn Morris <rgm@gnu.org>
date Wed, 16 Sep 2009 03:13:55 +0000
parents 8226adaf7c75
children 92f324954126
files lisp/ChangeLog lisp/net/tramp-compat.el
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Sep 16 03:13:03 2009 +0000
+++ b/lisp/ChangeLog	Wed Sep 16 03:13:55 2009 +0000
@@ -1,3 +1,16 @@
+2009-09-16  Glenn Morris  <rgm@gnu.org>
+
+	* emacs-lisp/bytecomp.el (byte-compile-not-obsolete-vars): Rename from
+	byte-compile-not-obsolete-var.  It's a list now.
+	(byte-compile-not-obsolete-funcs): New variable.
+	(byte-compile-warn-obsolete): Don't warn about functions if they are in
+	byte-compile-not-obsolete-funcs.
+	(byte-compile-variable-ref, byte-compile-defvar): Update for
+	byte-compile-not-obsolete-vars name-change and list nature.
+	(byte-compile-maybe-guarded): Suppress warnings about obsolete functions
+	and variables behind (f)boundp tests.
+	* net/tramp-compat.el (byte-compile-not-obsolete-vars): Set if bound.
+
 2009-09-15  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* vc-git.el (vc-git-log-view-mode): Undo inadvertent change.
--- a/lisp/net/tramp-compat.el	Wed Sep 16 03:13:03 2009 +0000
+++ b/lisp/net/tramp-compat.el	Wed Sep 16 03:13:55 2009 +0000
@@ -88,6 +88,8 @@
   (unless (boundp 'byte-compile-not-obsolete-var)
     (defvar byte-compile-not-obsolete-var nil))
   (setq byte-compile-not-obsolete-var 'directory-sep-char)
+  (if (boundp 'byte-compile-not-obsolete-vars) ; Emacs 23.2
+      (setq byte-compile-not-obsolete-vars '(directory-sep-char)))
 
   ;; `with-temp-message' does not exists in XEmacs.
   (condition-case nil