unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24526: iconifying / framesize
@ 2016-09-24  9:08 Dr.-Ing. Dieter Jurzitza
  2016-09-26 17:58 ` bug#24526: iconify / geometry Dr.-Ing. Dieter Jurzitza
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Dr.-Ing. Dieter Jurzitza @ 2016-09-24  9:08 UTC (permalink / raw)
  To: 24526

Dear listmembers,
I installed the released version of emacs-25.1 today. Thereby I can observe 
differences in framesize between

emacs -iconic

and 

emacs

both called from within an xterm. I configured the size of the frame in my 
".emacs" - file. Starting xwininfo and deiconifying emacs that had had been 
started with "emacs -iconic" results in:

fred@djunix:~/rpmbuild/RPMS/x86_64> xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x340011f "emacs@djunix"

  Absolute upper-left X:  41
  Absolute upper-left Y:  57
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 744
  Height: 865
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x340011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +41+57  -815+57  -815-278  +41-278
  -geometry 64x26+35+20

In contrast, when simply triggering "emacs" not being iconic, I get
fred@djunix:~/rpmbuild/RPMS/x86_64> xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x340011f "emacs@djunix"

  Absolute upper-left X:  41
  Absolute upper-left Y:  57
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1514
  Height: 1068
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x340011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +41+57  -45+57  -45-75  +41-75
  -geometry 134x33+35+20

The last lines from "-geometry" are very close to my settings from within 
.emacs:

(add-to-list 'default-frame-alist '(width . 135))
(add-to-list 'default-frame-alist '(height . 34))
(add-to-list 'default-frame-alist '(top . 20))
(add-to-list 'default-frame-alist '(left . 35))

though the x- and y- size parameters are off by "1" this is no problem. 
However, the fact that the iconified emacs comes up with 
-geometry 64x26+35+20 points me to the fact that the x- and y- size parameters 
are not processed apropriately.

Many thanks for looking into this,
take care




Dieter Jurzitza


-- 
-----------------------------------------------------------
Dr.-Ing. Dieter Jurzitza                          Karlsruhe





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

* bug#24526: iconify / geometry
  2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
@ 2016-09-26 17:58 ` Dr.-Ing. Dieter Jurzitza
  2016-09-27  7:10   ` martin rudalics
  2016-09-27  7:07 ` bug#24526: iconifying / framesize martin rudalics
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Dr.-Ing. Dieter Jurzitza @ 2016-09-26 17:58 UTC (permalink / raw)
  To: 24526

Dear Listmebers,
I elaborated a little further on this topic. Say, I was to start emacs (25.1) 
with

emacs -geometry 135x34+35+20 -iconic

xwininfo tells me:

fred@djunix:~> xwininfo 

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x420011f "emacs@djunix"

  Absolute upper-left X:  41
  Absolute upper-left Y:  57
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1239
  Height: 807
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x420011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +41+57  -320+57  -320-336  +41-336
  -geometry 109x24+35+20

after "uniconifying" the frame. Leaving "-iconic" away, things come out as 
expected. I have no idea how 109x24 would correlate with 135x34.

I know this is a minor issue, however, if someone finds the time to look into 
it, I wanted to share my findings.
Thank you very much,
take care




Dieter Jurzitza

-- 
-----------------------------------------------------------
Dr.-Ing. Dieter Jurzitza                    76131 Karlsruhe





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

* bug#24526: iconifying / framesize
  2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
  2016-09-26 17:58 ` bug#24526: iconify / geometry Dr.-Ing. Dieter Jurzitza
@ 2016-09-27  7:07 ` martin rudalics
  2017-04-19  9:31   ` martin rudalics
  2016-09-27 19:22 ` bug#24526: @ Bug 24526, please find textfile results attached Dr.-Ing. Dieter Jurzitza
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2016-09-27  7:07 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

 > I installed the released version of emacs-25.1 today. Thereby I can observe
 > differences in framesize between
 >
 > emacs -iconic
 >
 > and
 >
 > emacs
 >
 > both called from within an xterm. I configured the size of the frame in my
 > ".emacs" - file. Starting xwininfo and deiconifying emacs that had had been
 > started with "emacs -iconic" results in:
[...]
 >    -geometry 64x26+35+20
 >
 > In contrast, when simply triggering "emacs" not being iconic, I get
 > fred@djunix:~/rpmbuild/RPMS/x86_64> xwininfo
[...]
 >    -geometry 134x33+35+20
 >
 > The last lines from "-geometry" are very close to my settings from within
 > .emacs:
 >
 > (add-to-list 'default-frame-alist '(width . 135))
 > (add-to-list 'default-frame-alist '(height . 34))
 > (add-to-list 'default-frame-alist '(top . 20))
 > (add-to-list 'default-frame-alist '(left . 35))
 >
 > though the x- and y- size parameters are off by "1" this is no problem.

We should investigate this off-by-one issue separately.

In any case, what does evaluating (frame-geometry) return for the five
cases:

(1) emacs -Q

(2) emacs -Q -iconic

(3) emacs with your .emacs

(4) emacs -iconic with your .emacs

(5) emacs -iconic with your .emacs for the new frame after C-x 5 2

Maybe you could also try replacing ‘default-frame-alist’ with
‘initial-frame-alist’ but I doubt that would change anything.

 > However, the fact that the iconified emacs comes up with
 > -geometry 64x26+35+20 points me to the fact that the x- and y- size parameters
 > are not processed apropriately.

I suppose so.  I tried with your ‘default-frame-alist’ settings in
.emacs on Windows and can reproduce it with versions up from Emacs 21.
So apparently this never worked here.  Do you incidentally have an older
version of Emacs where this works correctly?  Which OS and window
manager do you use?

Thanks, martin






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

* bug#24526: iconify / geometry
  2016-09-26 17:58 ` bug#24526: iconify / geometry Dr.-Ing. Dieter Jurzitza
@ 2016-09-27  7:10   ` martin rudalics
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics @ 2016-09-27  7:10 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

 > I elaborated a little further on this topic. Say, I was to start emacs (25.1)
 > with
 >
 > emacs -geometry 135x34+35+20 -iconic
 >
 > xwininfo tells me:
[...]
 >    Corners:  +41+57  -320+57  -320-336  +41-336

What do these corner values mean?

 >    -geometry 109x24+35+20
 >
 > after "uniconifying" the frame. Leaving "-iconic" away, things come out as
 > expected. I have no idea how 109x24 would correlate with 135x34.

Neither do I.  Please tell me what ‘frame-geometry’ tells about this
frame.  Maybe it's relaed to the frame's default font size.

The surprising thing about this is that here on Windows the -geometry
option is processed as expected.  So this looks like a good place to
start investigating this on Windows.  Can anyone on GNU/Linux try with
Dieter's options, that is

emacs -geometry 135x34+35+20 -iconic

and report here _if they work_ as expected?

Thanks, martin






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

* bug#24526: @ Bug 24526, please find textfile results attached ...
  2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
  2016-09-26 17:58 ` bug#24526: iconify / geometry Dr.-Ing. Dieter Jurzitza
  2016-09-27  7:07 ` bug#24526: iconifying / framesize martin rudalics
@ 2016-09-27 19:22 ` Dr.-Ing. Dieter Jurzitza
  2016-09-28  6:51   ` martin rudalics
  2016-09-29  2:01 ` bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Dr.-Ing. Dieter Jurzitza @ 2016-09-27 19:22 UTC (permalink / raw)
  To: 24526

Dear listmembers,
dear Mr. Rudalics,
I tested as suggested - please find the results below, thank you for looking 
into this:

fred@djunix:~> cat info-emacs
*******************************************************************************
fred@djunix:~/Downloads> emacs -Q &
(emacs:5488): Gtk-WARNING **: Theme directory  of theme oxygen has no size 
field
fred@djunix:~/Downloads> xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x360011f "emacs@djunix"

  Absolute upper-left X:  6
  Absolute upper-left Y:  275
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 749
  Height: 874
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x360011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +6+275  -845+275  -845-51  +6-51
  -geometry 79x35+0-45
*******************************************************************************

fred@djunix:~/Downloads> emacs -Q -iconic &
fred@djunix:~/Downloads> xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x360011f "emacs@djunix"

  Absolute upper-left X:  6
  Absolute upper-left Y:  275
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 749
  Height: 874
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x360011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +6+275  -845+275  -845-51  +6-51
  -geometry 79x35+0-45

*******************************************************************************
fred@djunix:~> emacs -iconic &
fred@djunix:~> xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x360011f "emacs@djunix"

  Absolute upper-left X:  41
  Absolute upper-left Y:  57
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 744
  Height: 865
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x360011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +41+57  -815+57  -815-278  +41-278
  -geometry 64x26+35+20

*******************************************************************************
Ok, I hopefully understood you right:
- start emacs -iconic &
- uniconify emacs
- start a new frame with C-x 5 2
- determine the size of *this* newly generated frame with xwininfo

fred@djunix:~> emacs -iconic &
fred@djunix:~> xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x36003e5 "*GNU Emacs*"

  Absolute upper-left X:  41
  Absolute upper-left Y:  57
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1514
  Height: 1068
  Depth: 24
  Visual: 0x25
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x360011e (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +41+57  -45+57  -45-75  +41-75
  -geometry 134x33+35+20

*******************************************************************************

Thanks again,
take care






Dieter Jurzitza


-- 
-----------------------------------------------------------
Dr.-Ing. Dieter Jurzitza                    76131 Karlsruhe





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

* bug#24526: @ Bug 24526, please find textfile results attached ...
  2016-09-27 19:22 ` bug#24526: @ Bug 24526, please find textfile results attached Dr.-Ing. Dieter Jurzitza
@ 2016-09-28  6:51   ` martin rudalics
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics @ 2016-09-28  6:51 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

 > I tested as suggested - please find the results below, thank you for looking
 > into this:

Sorry, using xwininfo is not what I meant.  Please try to determine the
window size from within Emacs.  For this purpose start Emacs as

emacs -geometry 135x34+35+20 -iconic

and then, within the instance of emacs you started this way, after
deiconifying the frame, do

M-: (frame-geometry)

This should print something like

((outer-position -4 . -4) (outer-size 1688 . 1030) (external-border-size
4 . 4) (title-bar-size 1662 . 19) (menu-bar-external . t) (menu-bar-size
1680 . 19) (tool-bar-external) (tool-bar-position) (tool-bar-size 0 . 0)
(internal-border-width . 0))

in the echo area.  Please copy the string you get there (from the
*Messages* buffer) and post it here.  Then do the same also for

emacs -Q

and

emacs -iconic

that is once for an emacs instance without and once with your .emacs
init file.  For the latter please also do C-x 5 2 and then type

M-: (frame-geometry)

in the new frame you just created and retrieve the results.

And please don't forget to report for which platform your Emacs was
built and which window manager you use.


The reasons for different behaviors we all may see in this context are
too manifold to cite here.  The main reason is that Emacs iconifies the
frame before calculating its desired size and, once it has calculated
that size, doesn't tell the window manager/OS about it.

martin





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

* bug#24526: iconifying / framesize
  2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
                   ` (2 preceding siblings ...)
  2016-09-27 19:22 ` bug#24526: @ Bug 24526, please find textfile results attached Dr.-Ing. Dieter Jurzitza
@ 2016-09-29  2:01 ` Dr.-Ing. Dieter Jurzitza
  2016-09-30  8:33   ` martin rudalics
  2016-10-02 17:16 ` bug#24526: hopefully all information requested Dr.-Ing. Dieter Jurzitza
  2021-05-05  8:52 ` bug#24526: iconifying / framesize martin rudalics
  5 siblings, 1 reply; 14+ messages in thread
From: Dr.-Ing. Dieter Jurzitza @ 2016-09-29  2:01 UTC (permalink / raw)
  To: 24526

Dear listmembers,
herer are the results as requested by Martin:

emacs -geometry 135x34+35+20 -iconic
((outer-position 35 . 20) (outer-size 1251 . 850) (external-border-size 6 . 6) 
(title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 1239 . 29) 
(tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1239 . 53) 
(internal-border-width . 0))

emacs -Q
((outer-po((outer-position 0 . 0) (outer-size 761 . 917) (external-border-size 
6 . 6) (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 749 . 
29) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 749 . 53) 
(internal-border-width . 0))

emacs -iconic
((outer-position 35 . 20) (outer-size 756 . 908) (external-border-size 6 . 6) 
(title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 744 . 29) 
(tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 744 . 53) 
(internal-border-width . 0))

operating system: openSUSE leap 42.1 (linux) / KDE. The very same happens on 
openSUSE 13.1 and, without having tested, I am sure with openSUSE 13.2, too.

Thank you for looking into this - and feel free to ask for more information at 
any time.

By the way; emacs spits out the following message after start:

(emacs:25506): Gtk-WARNING **: Theme directory  of theme oxygen has no size 
field

(emacs:25464): GLib-GObject-WARNING **: The property GtkSettings:gtk-enable-
tooltips is deprecated and shouldn't be used anymore. It will be removed in a 
future version.


Take care





Dieter Jurzitza


-- 
-----------------------------------------------------------
Dr.-Ing. Dieter Jurzitza                    76131 Karlsruhe





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

* bug#24526: iconifying / framesize
  2016-09-29  2:01 ` bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
@ 2016-09-30  8:33   ` martin rudalics
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics @ 2016-09-30  8:33 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

 > emacs -geometry 135x34+35+20 -iconic
 > ((outer-position 35 . 20) (outer-size 1251 . 850) (external-border-size 6 . 6)
 > (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 1239 . 29)
 > (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1239 . 53)
 > (internal-border-width . 0))
 >
 > emacs -Q
 > ((outer-po((outer-position 0 . 0) (outer-size 761 . 917) (external-border-size
 > 6 . 6) (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 749 .
 > 29) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 749 . 53)
 > (internal-border-width . 0))
 >
 > emacs -iconic
 > ((outer-position 35 . 20) (outer-size 756 . 908) (external-border-size 6 . 6)
 > (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 744 . 29)
 > (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 744 . 53)
 > (internal-border-width . 0))

Thanks.  Please do the same also for the case that you specify the
geometry in your initial file via

(add-to-list 'default-frame-alist '(width . 135))
(add-to-list 'default-frame-alist '(height . 34))
(add-to-list 'default-frame-alist '(top . 20))
(add-to-list 'default-frame-alist '(left . 35))

for the initial frame and for a frame made via C-x 5 2.

And in all five cases I also need the result of doing

M-: (window--dump-frame)

which you can find in a buffer called *window-frame-dump* after each
invocation (sorry - it's all a a bit tedious).

 > By the way; emacs spits out the following message after start:
 >
 > (emacs:25506): Gtk-WARNING **: Theme directory  of theme oxygen has no size
 > field
 >
 > (emacs:25464): GLib-GObject-WARNING **: The property GtkSettings:gtk-enable-
 > tooltips is deprecated and shouldn't be used anymore. It will be removed in a
 > future version.

If I only knew about these ...

martin





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

* bug#24526: hopefully all information requested
  2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
                   ` (3 preceding siblings ...)
  2016-09-29  2:01 ` bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
@ 2016-10-02 17:16 ` Dr.-Ing. Dieter Jurzitza
  2016-10-02 18:10   ` martin rudalics
  2021-05-05  8:52 ` bug#24526: iconifying / framesize martin rudalics
  5 siblings, 1 reply; 14+ messages in thread
From: Dr.-Ing. Dieter Jurzitza @ 2016-10-02 17:16 UTC (permalink / raw)
  To: 24526

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

Dear listmembers,
dear Martin,
please find a file attached to this email containing (hopefully :-)) all 
information requested.
Take care





Dieter Jurzitza


-- 
-----------------------------------------------------------
Dr.-Ing. Dieter Jurzitza                    76131 Karlsruhe

[-- Attachment #2: emacs-infos --]
[-- Type: text/plain, Size: 6270 bytes --]

;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with C-x C-f and enter text in its buffer.

emacs -Q
ESC : (frame-geometry)
((outer-position 839 . 238) (outer-size 761 . 917) (external-border-size 6 . 6) (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 749 . 29) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 749 . 53) (internal-border-width . 0))

ESC: (window--dump-frame)
frame pixel: 749 x 792   cols/lines: 84 x 36   units: 9 x 22
frame text pixel: 720 x 792   cols/lines: 80 x 36
tool: 0  scroll: 13/0  fringe: 16  border: 0  right: 0  bottom: 0

#<window 6 on *Backtrace*>   parent: nil
pixel left: 0   top: 0   size: 749 x 770   new: 770
char left: 0   top: 0   size: 83 x 35   new: 35
normal: 1.0 x 1.0   new: 1.0
body pixel: 720 x 748   char: 80 x 34
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 22  divider: 0

#<window 4 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 770   size: 749 x 22   new: 0
char left: 0   top: 35   size: 83 x 1   new: 1
normal: 1.0 x 1.0   new: 0
body pixel: 720 x 22   char: 80 x 1
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 0  divider: 0

emacs -Q -iconic
ESC: (frame-geometry)
((outer-position 839 . 238) (outer-size 761 . 917) (external-border-size 6 . 6) (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 749 . 29) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 749 . 53) (internal-border-width . 0))

ESC: (window--dump-frame)
frame pixel: 749 x 792   cols/lines: 84 x 36   units: 9 x 22
frame text pixel: 720 x 792   cols/lines: 80 x 36
tool: 0  scroll: 13/0  fringe: 16  border: 0  right: 0  bottom: 0

#<window 3 on emacs-infos>   parent: nil
pixel left: 0   top: 0   size: 749 x 770   new: 770
char left: 0   top: 0   size: 83 x 35   new: 32
normal: 1.0 x 1.0   new: nil
body pixel: 720 x 748   char: 80 x 34
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 22  divider: 0

#<window 4 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 770   size: 749 x 22   new: 0
char left: 0   top: 35   size: 83 x 1   new: 0
normal: 1.0 x 1.0   new: 0
body pixel: 720 x 22   char: 80 x 1
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 0  divider: 0


emacs
ESC: (frame-geometry)
((outer-position 35 . 20) (outer-size 1526 . 1111) (external-border-size 6
. 6) (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 1514 . 29)
(tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1514 . 53)
(internal-border-width . 0))

ESC: (window--dump-frame)
frame pixel: 1514 x 986   cols/lines: 139 x 34   units: 11 x 29
frame text pixel: 1485 x 986   cols/lines: 135 x 34
tool: 0  scroll: 13/0  fringe: 16  border: 0  right: 0  bottom: 0

#<window 3 on emacs-infos>   parent: nil
pixel left: 0   top: 0   size: 1514 x 957   new: 957
char left: 0   top: 0   size: 137 x 33   new: 32
normal: 1.0 x 1.0   new: nil
body pixel: 1485 x 928   char: 135 x 32
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 29  divider: 0

#<window 4 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 957   size: 1514 x 29   new: 0
char left: 0   top: 33   size: 137 x 1   new: 0
normal: 1.0 x 1.0   new: ignore
body pixel: 1485 x 29   char: 135 x 1
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 0  divider: 0

emacs -iconic
ESC: (frame-geometry)
((outer-position 35 . 20) (outer-size 756 . 908) (external-border-size 6 . 6)
(title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 744 . 29)
(tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 744 . 53)
(internal-border-width . 0))

ESC: (window--dump-frame)
frame pixel: 744 x 783   cols/lines: 69 x 27   units: 11 x 29
frame text pixel: 715 x 783   cols/lines: 65 x 27
tool: 0  scroll: 13/0  fringe: 16  border: 0  right: 0  bottom: 0

#<window 3 on emacs-infos>   parent: nil
pixel left: 0   top: 0   size: 744 x 754   new: 754
char left: 0   top: 0   size: 67 x 26   new: 23
normal: 1.0 x 1.0   new: nil
body pixel: 715 x 725   char: 65 x 25
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 29  divider: 0

#<window 4 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 754   size: 744 x 29   new: 0
char left: 0   top: 26   size: 67 x 1   new: 0
normal: 1.0 x 1.0   new: ignore
body pixel: 715 x 29   char: 65 x 1
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 0  divider: 0

emacs -iconic C-X 5 2
ESC :(frame-geometry)
((outer-position 35 . 20) (outer-size 1526 . 1111) (external-border-size 6
. 6) (title-bar-size 0 . 31) (menu-bar-external . t) (menu-bar-size 1514 . 29)
(tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1514 . 53)
(internal-border-width . 0))

ESC :(window--dump-frame)
frame pixel: 1514 x 986   cols/lines: 139 x 34   units: 11 x 29
frame text pixel: 1485 x 986   cols/lines: 135 x 34
tool: 0  scroll: 13/0  fringe: 16  border: 0  right: 0  bottom: 0

#<window 5 on emacs-infos>   parent: nil
pixel left: 0   top: 0   size: 1514 x 957   new: 957
char left: 0   top: 0   size: 137 x 33   new: 32
normal: 1.0 x 1.0   new: nil
body pixel: 1485 x 928   char: 135 x 32
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 29  divider: 0

#<window 6 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 957   size: 1514 x 29   new: 0
char left: 0   top: 33   size: 137 x 1   new: 0
normal: 1.0 x 1.0   new: ignore
body pixel: 1485 x 29   char: 135 x 1
width left fringe: 8  left margin: 0  right margin: 0
width right fringe: 8  scroll-bar: 13  divider: 0
height header-line: 0  mode-line: 0  divider: 0



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

* bug#24526: hopefully all information requested
  2016-10-02 17:16 ` bug#24526: hopefully all information requested Dr.-Ing. Dieter Jurzitza
@ 2016-10-02 18:10   ` martin rudalics
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics @ 2016-10-02 18:10 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

 > please find a file attached to this email containing (hopefully :-)) all
 > information requested.

Thanks for the work.

 > emacs -Q
 > [...]
 > frame text pixel: 720 x 792   cols/lines: 80 x 36
 > [...]
 >
 > emacs -Q -iconic
 > [...]
 > frame text pixel: 720 x 792   cols/lines: 80 x 36

So an iconic frame has the same number of text columns/lines as a
normal one.

 > emacs
 > frame text pixel: 1485 x 986   cols/lines: 135 x 34

And the frame with the geometry specified in your .emacs has 135 text
columns and 34 text lines as requeste via (I presume)

(add-to-list 'default-frame-alist '(width . 135))
(add-to-list 'default-frame-alist '(height . 34))

This looks correct as well (no off by one issue here AFAICT).  I have to
admit that this was the major issue that bothered me.

 > emacs -iconic
 > [...]
 > frame text pixel: 715 x 783   cols/lines: 65 x 27

This is the expected mess.  The strange values are obviously due to the
fact that the default character size changed from 9 x 22 to 11 x 29
while the frame's outer size did not change along with that.  Emacs is
talking characters and the window manager is talking pixels.

I will look into this but I can't promise to find a solution soon.

 > emacs -iconic C-X 5 2
 > [...]
 > frame text pixel: 1485 x 986   cols/lines: 135 x 34

For the new frame I presume, everything as expected.

Thanks again for sending me all this information, martin





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

* bug#24526: iconifying / framesize
  2016-09-27  7:07 ` bug#24526: iconifying / framesize martin rudalics
@ 2017-04-19  9:31   ` martin rudalics
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics @ 2017-04-19  9:31 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

Dieter, just in case you are still around

Sorry for the long delay.  I have now looked into this issue again.  The
behavior you describe is partly reproducible here on Windows XP and I
should find a fix for it.  But I cannot reproduce it on any of my
GNU/Linux builds (GTK, Lucid, no-toolkit) starting from the oldest ones
I was able to preserve.  So I stronlgy suspect that the behavior you
observe is either theme or font related.

 From one of the dumps you sent me I see that your character size for
emacs -Q is 9 x 22 but changes to 11 x 29 for emacs/emacs -iconic.  Can
you clarify why?  Does emacs -Q -geometry 135x34+35+20 -iconic come up
with the expected frame size?

martin





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

* bug#24526: iconifying / framesize
  2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
                   ` (4 preceding siblings ...)
  2016-10-02 17:16 ` bug#24526: hopefully all information requested Dr.-Ing. Dieter Jurzitza
@ 2021-05-05  8:52 ` martin rudalics
  2022-05-08 12:26   ` bug#24526: bug#24569: Fwd: " Lars Ingebrigtsen
  5 siblings, 1 reply; 14+ messages in thread
From: martin rudalics @ 2021-05-05  8:52 UTC (permalink / raw)
  To: Dr.-Ing. Dieter Jurzitza, 24526

Dieter, if you are still healthy, well and using Emacs

 > Dear listmembers,
 > I installed the released version of emacs-25.1 today. Thereby I can observe
 > differences in framesize between
 >
 > emacs -iconic
 >
 > and
 >
 > emacs
 >
 > both called from within an xterm.

I installed a couple of fixes supposed to address this issue on what
should eventually become Emacs 28.  Whenever you have a chance to look
into these things again please tell me your findings.

Thanks, martin





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

* bug#24526: bug#24569: Fwd: iconifying / framesize
  2021-05-05  8:52 ` bug#24526: iconifying / framesize martin rudalics
@ 2022-05-08 12:26   ` Lars Ingebrigtsen
  2022-06-05 15:53     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-08 12:26 UTC (permalink / raw)
  To: martin rudalics; +Cc: Dr.-Ing. Dieter Jurzitza, 24526, 24569

martin rudalics <rudalics@gmx.at> writes:

> I installed a couple of fixes supposed to address this issue on what
> should eventually become Emacs 28.  Whenever you have a chance to look
> into these things again please tell me your findings.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Dieter, would it be possible for you to try Emacs 28.1 and see whether
that fixes the issues you were seeing?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#24526: bug#24569: Fwd: iconifying / framesize
  2022-05-08 12:26   ` bug#24526: bug#24569: Fwd: " Lars Ingebrigtsen
@ 2022-06-05 15:53     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-05 15:53 UTC (permalink / raw)
  To: martin rudalics; +Cc: Dr.-Ing. Dieter Jurzitza, 24526, 24569

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> I installed a couple of fixes supposed to address this issue on what
>> should eventually become Emacs 28.  Whenever you have a chance to look
>> into these things again please tell me your findings.
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> Dieter, would it be possible for you to try Emacs 28.1 and see whether
> that fixes the issues you were seeing?

There was no response in a month, so I'm going to go ahead and guess
that Martin's changes fixed this problem, and I'm closing this bug
report.  If that's not the case, please respond to the debbugs address
and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-06-05 15:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-24  9:08 bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
2016-09-26 17:58 ` bug#24526: iconify / geometry Dr.-Ing. Dieter Jurzitza
2016-09-27  7:10   ` martin rudalics
2016-09-27  7:07 ` bug#24526: iconifying / framesize martin rudalics
2017-04-19  9:31   ` martin rudalics
2016-09-27 19:22 ` bug#24526: @ Bug 24526, please find textfile results attached Dr.-Ing. Dieter Jurzitza
2016-09-28  6:51   ` martin rudalics
2016-09-29  2:01 ` bug#24526: iconifying / framesize Dr.-Ing. Dieter Jurzitza
2016-09-30  8:33   ` martin rudalics
2016-10-02 17:16 ` bug#24526: hopefully all information requested Dr.-Ing. Dieter Jurzitza
2016-10-02 18:10   ` martin rudalics
2021-05-05  8:52 ` bug#24526: iconifying / framesize martin rudalics
2022-05-08 12:26   ` bug#24526: bug#24569: Fwd: " Lars Ingebrigtsen
2022-06-05 15:53     ` Lars Ingebrigtsen

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).