* Regarding proc x_make_frame_visible in w32term.c
@ 2008-06-03 15:18 brianjiang
2008-06-09 23:49 ` Jason Rumney
0 siblings, 1 reply; 2+ messages in thread
From: brianjiang @ 2008-06-03 15:18 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
I use Emacs mostly in Windows XP. I found one behavior is quite
annoying when I am using emacsclient to open a file. e.g., the emacs
frame is maximized and then I iconify it into the taskbar, if at this
time I open a file using emacsclient, the emacs frame is restored
to its normal size (not maximized any more). I want to keep the frame
maximized. Many people was bothered by this behavior as I know.
Although I have some tricks to change this behavior by hacking elisp,
I would still like to seek the possibility to change it gracefully.
I check the codes and find the following codes related to it:
w32term.c, proc x_make_frame_visible
/* my_show_window (f, FRAME_W32_WINDOW (f), f->async_iconified ?
SW_RESTORE : SW_SHOW); */
my_show_window (f, FRAME_W32_WINDOW (f), SW_SHOWNORMAL);
The line commented is exactly what I want. I wonder why it is
commented out and replaced by "SW_SHOWNORMAL" one. Any consideration for
it? Can we change it back? I cannot find any description about it in
the change log.
[-- Attachment #2: Type: text/html, Size: 2051 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Regarding proc x_make_frame_visible in w32term.c
2008-06-03 15:18 Regarding proc x_make_frame_visible in w32term.c brianjiang
@ 2008-06-09 23:49 ` Jason Rumney
0 siblings, 0 replies; 2+ messages in thread
From: Jason Rumney @ 2008-06-09 23:49 UTC (permalink / raw)
To: brianjiang; +Cc: emacs-devel
brianjiang@gdnt.com.cn wrote:
> w32term.c, proc x_make_frame_visible
> /* my_show_window (f, FRAME_W32_WINDOW (f), f->async_iconified ?
> SW_RESTORE : SW_SHOW); */
> my_show_window (f, FRAME_W32_WINDOW (f), SW_SHOWNORMAL);
> The line commented is exactly what I want. I wonder why it is
> commented out and replaced by "SW_SHOWNORMAL" one. Any consideration for
> it? Can we change it back? I cannot find any description about it in
> the change log.
That line has been commented out since it was added in 1997, the
SW_SHOWNORMAL version has always been there. Perhaps the maintainer at
the time was experimenting with improving the behavior, but some other
bug was interfering, so he left the line in a comment to come back to later.
I've swapped the lines over now, if problems start to surface regarding
iconifying and restoring frames, at least we can add a comment that
explains why that line is commented out.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-09 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 15:18 Regarding proc x_make_frame_visible in w32term.c brianjiang
2008-06-09 23:49 ` Jason Rumney
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).