* bug#2730: Patch to fix "Wrong number of arguments" error in with-selected-frame in CVS Emacs
@ 2009-03-20 17:09 Fran Litterio
2009-03-20 21:08 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Fran Litterio @ 2009-03-20 17:09 UTC (permalink / raw)
To: bug-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
The following bug exists in CVS Emacs as of 2009-03-20. In lisp/subr.el, the
definition of with-selected-frame has a bug where select-frame is called
with two arguments instead of one. This patch fixes that.
--
Fran Litterio
flitterio@gmail.com
--- subr.el~ 2009-03-20 10:28:52.000492000 -0400
+++ subr.el 2009-03-20 13:04:24.000046000 -0400
@@ -2584,10 +2584,10 @@
`(let ((,old-frame (selected-frame))
(,old-buffer (current-buffer)))
(unwind-protect
- (progn (select-frame ,frame 'norecord)
+ (progn (select-frame ,frame)
,@body)
(when (frame-live-p ,old-frame)
- (select-frame ,old-frame 'norecord))
+ (select-frame ,old-frame))
(when (buffer-live-p ,old-buffer)
(set-buffer ,old-buffer))))))
[-- Attachment #2: Type: text/html, Size: 2462 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-20 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 17:09 bug#2730: Patch to fix "Wrong number of arguments" error in with-selected-frame in CVS Emacs Fran Litterio
2009-03-20 21:08 ` Stefan Monnier
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).