unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `compile-defun' typo
@ 2002-07-19  0:32 John Paul Wallington
  2002-07-19 23:15 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: John Paul Wallington @ 2002-07-19  0:32 UTC (permalink / raw)


`compile-defun' has an obvious typo, which causes the error:

Symbol's value as variable is void: inbuffer

Is this a good fix?

2002-07-19  John Paul Wallington  <jpw@shootybangbang.com>

	* emacs-lisp/bytecomp.el (compile-defun): Bind
	`read-with-symbol-positions' to current buffer.

Index: bytecomp.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/bytecomp.el,v
retrieving revision 2.102
diff -u -r2.102 bytecomp.el
--- bytecomp.el	2 Jul 2002 18:48:34 -0000	2.102
+++ bytecomp.el	19 Jul 2002 00:26:22 -0000
@@ -1588,7 +1588,7 @@
 	   (byte-compile-last-position byte-compile-read-position)
 	   (byte-compile-last-warned-form 'nothing)
 	   (value (eval
-		   (let ((read-with-symbol-positions inbuffer)
+		   (let ((read-with-symbol-positions (current-buffer))
 			 (read-symbol-positions-list nil))
 		     (displaying-byte-compile-warnings
 		      (byte-compile-sexp (read (current-buffer))))))))

-- 
John Paul Wallington

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: `compile-defun' typo
  2002-07-19  0:32 `compile-defun' typo John Paul Wallington
@ 2002-07-19 23:15 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-07-19 23:15 UTC (permalink / raw)
  Cc: emacs-devel

It looks good as far as I can tell, so I installed it.
Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-19 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-19  0:32 `compile-defun' typo John Paul Wallington
2002-07-19 23:15 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).