aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-11-06 12:47:42 -0700
committerGlenn Morris2010-11-06 12:47:42 -0700
commit4e44448fcd43f825c373f6620203db213196a194 (patch)
tree06cec7d4b11cf7ac09c288d7bc702a9f007b5ef4
parent8f6c3eace0813df73c68c77ef63bdb2a4ba55341 (diff)
downloademacs-4e44448fcd43f825c373f6620203db213196a194.tar.gz
emacs-4e44448fcd43f825c373f6620203db213196a194.zip
Minor eieio-comp changes.
* lisp/emacs-lisp/eieio-comp.el (byte-compile-file-form-defmethod): Use boundp tests to silence compiler. Update for changed name of bytecomp-filename variable.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/emacs-lisp/eieio-comp.el19
2 files changed, 13 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5bf9f565ca0..da40654f0de 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12010-11-06 Glenn Morris <rgm@gnu.org> 12010-11-06 Glenn Morris <rgm@gnu.org>
2 2
3 * emacs-lisp/eieio-comp.el (byte-compile-file-form-defmethod):
4 Use boundp tests to silence compiler. Update for changed name of
5 bytecomp-filename variable.
6
3 * emulation/viper-cmd.el (viper-read-string-with-history): 7 * emulation/viper-cmd.el (viper-read-string-with-history):
4 Prefix dynamic local `initial'. 8 Prefix dynamic local `initial'.
5 (viper-minibuffer-standard-hook): Update for above name change. 9 (viper-minibuffer-standard-hook): Update for above name change.
diff --git a/lisp/emacs-lisp/eieio-comp.el b/lisp/emacs-lisp/eieio-comp.el
index 0e76f4bb331..e07a7b20d14 100644
--- a/lisp/emacs-lisp/eieio-comp.el
+++ b/lisp/emacs-lisp/eieio-comp.el
@@ -47,10 +47,6 @@
47;; This teaches the byte compiler how to do this sort of thing. 47;; This teaches the byte compiler how to do this sort of thing.
48(put 'defmethod 'byte-hunk-handler 'byte-compile-file-form-defmethod) 48(put 'defmethod 'byte-hunk-handler 'byte-compile-file-form-defmethod)
49 49
50;; Variables used free:
51(defvar outbuffer)
52(defvar filename)
53
54(defun byte-compile-file-form-defmethod (form) 50(defun byte-compile-file-form-defmethod (form)
55 "Mumble about the method we are compiling. 51 "Mumble about the method we are compiling.
56This function is mostly ripped from `byte-compile-file-form-defun', 52This function is mostly ripped from `byte-compile-file-form-defun',
@@ -83,14 +79,18 @@ that is called but rarely. Argument FORM is the body of the method."
83 (class (if (listp arg1) (nth 1 arg1) nil)) 79 (class (if (listp arg1) (nth 1 arg1) nil))
84 (my-outbuffer (if (eval-when-compile (featurep 'xemacs)) 80 (my-outbuffer (if (eval-when-compile (featurep 'xemacs))
85 byte-compile-outbuffer 81 byte-compile-outbuffer
86 (condition-case nil 82 (cond ((boundp 'bytecomp-outbuffer)
87 bytecomp-outbuffer 83 bytecomp-outbuffer) ; Emacs >= 23.2
88 (error outbuffer)))) 84 ((boundp 'outbuffer) outbuffer)
89 ) 85 (t (error "Unable to set outbuffer"))))))
90 (let ((name (format "%s::%s" (or class "#<generic>") meth))) 86 (let ((name (format "%s::%s" (or class "#<generic>") meth)))
91 (if byte-compile-verbose 87 (if byte-compile-verbose
92 ;; #### filename used free 88 ;; #### filename used free
93 (message "Compiling %s... (%s)" (or filename "") name)) 89 (message "Compiling %s... (%s)"
90 (cond ((boundp 'bytecomp-filename) bytecomp-filename)
91 ((boundp 'filename) filename)
92 (t ""))
93 name))
94 (setq byte-compile-current-form name) ; for warnings 94 (setq byte-compile-current-form name) ; for warnings
95 ) 95 )
96 ;; Flush any pending output 96 ;; Flush any pending output
@@ -139,5 +139,4 @@ Argument PARAMLIST is the parameter list to convert."
139 139
140(provide 'eieio-comp) 140(provide 'eieio-comp)
141 141
142;; arch-tag: f2aacdd3-1da2-4ee9-b3e5-e8eac0832ee3
143;;; eieio-comp.el ends here 142;;; eieio-comp.el ends here