GNU bug report logs -
#6400
I want to stay with a sibling window
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6400 in the body.
You can then email your comments to 6400 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6400
; Package
emacs
.
(Fri, 11 Jun 2010 08:28:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 11 Jun 2010 08:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
A small patch to make the selected window one of the siblings when the
selected window is deleted.
I do not understand the code so I am not sure this is correct. Martin?
[window-del-sel-sibling-1.diff (text/x-patch, attachment)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6400
; Package
emacs
.
(Fri, 11 Jun 2010 13:23:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
> A small patch to make the selected window one of the siblings when the
> selected window is deleted.
>
> I do not understand the code so I am not sure this is correct. Martin?
if (EQ (FRAME_SELECTED_WINDOW (f), selected_window))
This conditional checks only whether f is the selected frame. You
probably want to make sib the frame's selected window whenever you
delete the frame's selected window.
if (!EQ (XWINDOW (window)->frame, selected_frame))
- Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));
+ Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)), Qnil);
And you almost certainly want to tell us what this is meant for ;-)
martin
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6400
; Package
emacs
.
(Fri, 11 Jun 2010 17:06:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
On Fri, Jun 11, 2010 at 3:22 PM, martin rudalics <rudalics <at> gmx.at> wrote:
>> A small patch to make the selected window one of the siblings when the
>> selected window is deleted.
>>
>> I do not understand the code so I am not sure this is correct. Martin?
>
> if (EQ (FRAME_SELECTED_WINDOW (f), selected_window))
>
> This conditional checks only whether f is the selected frame. You
> probably want to make sib the frame's selected window whenever you
> delete the frame's selected window.
Yes, that is what I want.
There is a bug in the patch. I assumed that if "sib" was non-nil then
it would be a buffer window. That is not the case so a check of that
must be made. The most simple is to add another check with
WINDOW_LIVE_P.
> if (!EQ (XWINDOW (window)->frame, selected_frame))
> - Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));
> + Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)), Qnil);
>
> And you almost certainly want to tell us what this is meant for ;-)
Eh, forgot I had this little patch there... ;-)
I have added a second optional arg to make-frame-visible:
dont-activate. This is for use with top-most windows etc. I will come
back to that when I have time.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6400
; Package
emacs
.
(Fri, 11 Jun 2010 17:14:01 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
> There is a bug in the patch. I assumed that if "sib" was non-nil then
> it would be a buffer window. That is not the case so a check of that
> must be made. The most simple is to add another check with
> WINDOW_LIVE_P.
Indeed. BTW note that the entire job of finding swindow was already
geared towards making the deletion of internal windows possible.
martin
Reply sent
to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
(Tue, 11 Oct 2011 09:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 11 Oct 2011 09:32:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 6400-done <at> debbugs.gnu.org (full text, mbox):
> A small patch to make the selected window one of the siblings when the
> selected window is deleted.
When the selected window is deleted emacs now selects the most recently
selected live window on that frame instead.
martin
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 08 Nov 2011 12:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.