* Calc window handling
@ 2008-11-04 21:56 Chong Yidong
2008-11-04 23:01 ` martin rudalics
2008-11-04 23:16 ` Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Chong Yidong @ 2008-11-04 21:56 UTC (permalink / raw)
To: Jay Belanger; +Cc: emacs-devel
Hi Jay,
Something broke in the calc window handling recently, at least in my CVS
build. I don't know whether calc, or Emacs's window management is at
fault.
emacs -Q
M-x calc
q
=> The selected buffer is the Calc buffer, as the only window on the
frame. The Calc buffer is supposed to be buried!
Did you change anything in Calc that might have caused this?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calc window handling
2008-11-04 21:56 Calc window handling Chong Yidong
@ 2008-11-04 23:01 ` martin rudalics
2008-11-04 23:14 ` Chong Yidong
2008-11-04 23:16 ` Stefan Monnier
1 sibling, 1 reply; 5+ messages in thread
From: martin rudalics @ 2008-11-04 23:01 UTC (permalink / raw)
To: Chong Yidong; +Cc: Jay Belanger, emacs-devel
> Something broke in the calc window handling recently, at least in my CVS
> build. I don't know whether calc, or Emacs's window management is at
> fault.
>
> emacs -Q
> M-x calc
> q
>
> => The selected buffer is the Calc buffer, as the only window on the
> frame. The Calc buffer is supposed to be buried!
>
> Did you change anything in Calc that might have caused this?
Jay didn't do anything. I recently changed `delete-windows-on' to make
a nil argument default to the current buffer and it seems `calc-quit' is
calling `delete-windows-on' a couple of times with argument nil _not_
meaning the current buffer. I felt quite sure about my change because
according to the documentation nil was not considered a valid argument
till now for `delete-windows-on' and most other functions in this area
have nil stand for the current buffer.
martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calc window handling
2008-11-04 23:01 ` martin rudalics
@ 2008-11-04 23:14 ` Chong Yidong
2008-11-04 23:47 ` Jay Belanger
0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2008-11-04 23:14 UTC (permalink / raw)
To: martin rudalics; +Cc: Jay Belanger, emacs-devel
martin rudalics <rudalics@gmx.at> writes:
>> emacs -Q
>> M-x calc
>> q
>>
>> => The selected buffer is the Calc buffer, as the only window on the
>> frame. The Calc buffer is supposed to be buried!
>
> I recently changed `delete-windows-on' to make a nil argument default
> to the current buffer and it seems `calc-quit' is calling
> `delete-windows-on' a couple of times with argument nil _not_ meaning
> the current buffer. I felt quite sure about my change because
> according to the documentation nil was not considered a valid argument
> till now for `delete-windows-on' and most other functions in this area
> have nil stand for the current buffer.
I'm not sure what you're referring to. As far as I can tell, calc-quit
doesn't call delete-windows-on with nil arguments: it uses the Calc
buffers as the argument.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calc window handling
2008-11-04 23:14 ` Chong Yidong
@ 2008-11-04 23:47 ` Jay Belanger
0 siblings, 0 replies; 5+ messages in thread
From: Jay Belanger @ 2008-11-04 23:47 UTC (permalink / raw)
To: Chong Yidong; +Cc: martin rudalics, jay.p.belanger, emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
...
> I'm not sure what you're referring to. As far as I can tell, calc-quit
> doesn't call delete-windows-on with nil arguments: it uses the Calc
> buffers as the argument.
But one of those arguments is kbuf, which is equal to
(get-buffer "*Calc Keypad*"). If no such buffer exists, then
(delete-windows-on kbuf) will bury the current buffer and bring the Calc
buffer back to the top. I will change calc-quit so that it checks to
see if a buffer exists before calling delete-window-on on it.
Jay
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Calc window handling
2008-11-04 21:56 Calc window handling Chong Yidong
2008-11-04 23:01 ` martin rudalics
@ 2008-11-04 23:16 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2008-11-04 23:16 UTC (permalink / raw)
To: Chong Yidong; +Cc: Jay Belanger, emacs-devel
> Something broke in the calc window handling recently, at least in my CVS
> build. I don't know whether calc, or Emacs's window management is at
> fault.
> emacs -Q
> M-x calc
> q
> => The selected buffer is the Calc buffer, as the only window on the
> frame. The Calc buffer is supposed to be buried!
> Did you change anything in Calc that might have caused this?
Sounds like the recent change to quit-window.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-04 23:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 21:56 Calc window handling Chong Yidong
2008-11-04 23:01 ` martin rudalics
2008-11-04 23:14 ` Chong Yidong
2008-11-04 23:47 ` Jay Belanger
2008-11-04 23:16 ` 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).