all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
@ 2018-12-30  9:57 Markus Triska
  2018-12-30 14:57 ` martin rudalics
  0 siblings, 1 reply; 9+ messages in thread
From: Markus Triska @ 2018-12-30  9:57 UTC (permalink / raw)
  To: 33921


In the Emacs man page, we find for the "-g" (--geometry) option:

    The width and height are specified in characters; the default is
    80 by 24.

In the Emacs info page ("C.8 Options for Window Size and Position"), we
find a different default height:

   The default frame width is 80 characters and the default height is
   40 lines.

However, when I start Emacs via "$ emacs -Q", I actually get a height
that is neither 24 nor 40, no matter how I count it: On a recent Debian
install with X toolkit, I get an initial window that comprises exactly
28 lines, and if I include the mode line and echo area, then the frame
height is 30, excluding the tool bar, menu bar and title bar.



In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2018-12-30 built on stretch
Repository revision: b0e6ecfc33077fb2dce904d315c8ef24e3649c9b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description: Debian GNU/Linux 9 (stretch)

Recent messages:
Loading /home/mt/prolog.el (source)...done
Loading /home/mt/public_html/ediprolog/ediprolog.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Use +,-,0 for further adjustment [2 times]

Configured using:
 'configure --with-x-toolkit=lucid --with-gif=no --with-tiff=no'

Configured features:
XPM JPEG PNG SOUND NOTIFY INOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM THREADS GMP

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  text-scale-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils face-remap elec-pair ediprolog
ido prolog align shell pcomplete imenu compile comint ansi-color ring
warnings mule-util info tex-site finder-inf package easymenu epg-config
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads inotify dynamic-setting font-render-setting x-toolkit
x multi-tty make-network-process emacs)





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30  9:57 bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented Markus Triska
@ 2018-12-30 14:57 ` martin rudalics
  2018-12-30 15:25   ` Eli Zaretskii
  2018-12-30 18:43   ` Markus Triska
  0 siblings, 2 replies; 9+ messages in thread
From: martin rudalics @ 2018-12-30 14:57 UTC (permalink / raw)
  To: Markus Triska, 33921

 > In the Emacs man page, we find for the "-g" (--geometry) option:
 >
 >      The width and height are specified in characters; the default is
 >      80 by 24.

This must be a very old entry.

 > In the Emacs info page ("C.8 Options for Window Size and Position"), we
 > find a different default height:
 >
 >     The default frame width is 80 characters and the default height is
 >     40 lines.

The default height was changed from 40 to 35 by Chong and from 35 to
36 by Eli.  I now updated the value given by the manual of the release
branch.

 > However, when I start Emacs via "$ emacs -Q", I actually get a height
 > that is neither 24 nor 40, no matter how I count it: On a recent Debian
 > install with X toolkit, I get an initial window that comprises exactly
 > 28 lines,

28 lines is strange indeed.

 > and if I include the mode line and echo area, then the frame
 > height is 30, excluding the tool bar, menu bar and title bar.

Evaluating (frame-height) with emacs -Q should yield 36.  What does it
give for you?  And what is your value of (window-total-height) for the
initial window?  It's 35 here.

martin





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 14:57 ` martin rudalics
@ 2018-12-30 15:25   ` Eli Zaretskii
  2018-12-30 17:47     ` martin rudalics
  2019-10-12 22:49     ` Lars Ingebrigtsen
  2018-12-30 18:43   ` Markus Triska
  1 sibling, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2018-12-30 15:25 UTC (permalink / raw)
  To: martin rudalics; +Cc: 33921, triska

> Date: Sun, 30 Dec 2018 15:57:47 +0100
> From: martin rudalics <rudalics@gmx.at>
> 
>  > In the Emacs man page, we find for the "-g" (--geometry) option:
>  >
>  >      The width and height are specified in characters; the default is
>  >      80 by 24.
> 
> This must be a very old entry.
> 
>  > In the Emacs info page ("C.8 Options for Window Size and Position"), we
>  > find a different default height:
>  >
>  >     The default frame width is 80 characters and the default height is
>  >     40 lines.
> 
> The default height was changed from 40 to 35 by Chong and from 35 to
> 36 by Eli.  I now updated the value given by the manual of the release
> branch.

I actually think we shouldn't promise any concrete value, and instead
say something vague, like "between 35 and 40, depending on the OS and
the window manager".





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 15:25   ` Eli Zaretskii
@ 2018-12-30 17:47     ` martin rudalics
  2018-12-30 18:52       ` Eli Zaretskii
  2019-10-12 22:49     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 9+ messages in thread
From: martin rudalics @ 2018-12-30 17:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 33921, triska

 > I actually think we shouldn't promise any concrete value, and instead
 > say something vague, like "between 35 and 40, depending on the OS and
 > the window manager".

The value of evaluating (frame-height) should be 36 if nothing special
has been specified.  There are still some unclosed bug reports
(Bug#16013) revolving around how to specify the initial size of a
frame.  But the values given by DEFAULT_ROWS and DEFAULT_COLS should
work in a uniform way for every GUI frame regardless of OS and window
manager.

So before becoming vague let's wait until we have a report (maybe the
present one) that demonstrates that a value of 36 cannot be obtained.

martin





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 14:57 ` martin rudalics
  2018-12-30 15:25   ` Eli Zaretskii
@ 2018-12-30 18:43   ` Markus Triska
  2018-12-30 19:00     ` martin rudalics
  1 sibling, 1 reply; 9+ messages in thread
From: Markus Triska @ 2018-12-30 18:43 UTC (permalink / raw)
  To: martin rudalics; +Cc: 33921

martin rudalics <rudalics@gmx.at> writes:

> Evaluating (frame-height) with emacs -Q should yield 36.  What does it
> give for you?  And what is your value of (window-total-height) for the
> initial window?  It's 35 here.

(frame-height) yields 29, and (window-total-height) yields 28.

When I run (set-frame-height nil 36), then (frame-height) yields 36.

So, it's possible to obtain this frame height, and ideally this should
also be obtainable with the "-g" option.

I tried all this with the window manager FVWM as shipped with Debian.





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 17:47     ` martin rudalics
@ 2018-12-30 18:52       ` Eli Zaretskii
  2018-12-30 19:01         ` martin rudalics
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2018-12-30 18:52 UTC (permalink / raw)
  To: martin rudalics; +Cc: 33921, triska

> Date: Sun, 30 Dec 2018 18:47:01 +0100
> From: martin rudalics <rudalics@gmx.at>
> CC: triska@metalevel.at, 33921@debbugs.gnu.org
> 
>  > I actually think we shouldn't promise any concrete value, and instead
>  > say something vague, like "between 35 and 40, depending on the OS and
>  > the window manager".
> 
> The value of evaluating (frame-height) should be 36 if nothing special
> has been specified.

That's definitely not true for TTY frames.

> So before becoming vague let's wait until we have a report (maybe the
> present one) that demonstrates that a value of 36 cannot be obtained.

Fine with me, but I'd be very surprised if we conclude that 36 is an
accurate number in enough situations to cite it in the manual.





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 18:43   ` Markus Triska
@ 2018-12-30 19:00     ` martin rudalics
  0 siblings, 0 replies; 9+ messages in thread
From: martin rudalics @ 2018-12-30 19:00 UTC (permalink / raw)
  To: Markus Triska; +Cc: 33921

 >> Evaluating (frame-height) with emacs -Q should yield 36.  What does it
 >> give for you?  And what is your value of (window-total-height) for the
 >> initial window?  It's 35 here.
 >
 > (frame-height) yields 29, and (window-total-height) yields 28.

Hmm... then it's not even vague according to Eli.  I'm afraid you have
to use the debugger to find out what goes wrong.  For starters I would
set a breakpoint at the beginning of x_figure_window_size (in frame.c)
and check whether any height setting gets applied.

 > When I run (set-frame-height nil 36), then (frame-height) yields 36.
 >
 > So, it's possible to obtain this frame height, and ideally this should
 > also be obtainable with the "-g" option.
 >
 > I tried all this with the window manager FVWM as shipped with Debian.

If FVWM interferes we will find out soon enough.

martin





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 18:52       ` Eli Zaretskii
@ 2018-12-30 19:01         ` martin rudalics
  0 siblings, 0 replies; 9+ messages in thread
From: martin rudalics @ 2018-12-30 19:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 33921, triska

 >> The value of evaluating (frame-height) should be 36 if nothing special
 >> has been specified.
 >
 > That's definitely not true for TTY frames.

I mentioned the GUI restriction a few lines below.

 > Fine with me, but I'd be very surprised if we conclude that 36 is an
 > accurate number in enough situations to cite it in the manual.

It's a default we specify explicitly.  When OS or WM interfere all
bets are off obviously.

martin





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

* bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented
  2018-12-30 15:25   ` Eli Zaretskii
  2018-12-30 17:47     ` martin rudalics
@ 2019-10-12 22:49     ` Lars Ingebrigtsen
  1 sibling, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-12 22:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 33921, triska

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sun, 30 Dec 2018 15:57:47 +0100
>> From: martin rudalics <rudalics@gmx.at>
>> 
>>  > In the Emacs man page, we find for the "-g" (--geometry) option:
>>  >
>>  >      The width and height are specified in characters; the default is
>>  >      80 by 24.
>> 
>> This must be a very old entry.
>> 
>>  > In the Emacs info page ("C.8 Options for Window Size and Position"), we
>>  > find a different default height:
>>  >
>>  >     The default frame width is 80 characters and the default height is
>>  >     40 lines.
>> 
>> The default height was changed from 40 to 35 by Chong and from 35 to
>> 36 by Eli.  I now updated the value given by the manual of the release
>> branch.
>
> I actually think we shouldn't promise any concrete value, and instead
> say something vague, like "between 35 and 40, depending on the OS and
> the window manager".

I've now made this change.

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





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

end of thread, other threads:[~2019-10-12 22:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-30  9:57 bug#33921: 27.0.50; Default height is inconsistently - and apparently also incorrectly - documented Markus Triska
2018-12-30 14:57 ` martin rudalics
2018-12-30 15:25   ` Eli Zaretskii
2018-12-30 17:47     ` martin rudalics
2018-12-30 18:52       ` Eli Zaretskii
2018-12-30 19:01         ` martin rudalics
2019-10-12 22:49     ` Lars Ingebrigtsen
2018-12-30 18:43   ` Markus Triska
2018-12-30 19:00     ` martin rudalics

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.