unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change  default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
       [not found] <E1OSgUt-0007A9-6N@internal.in.savannah.gnu.org>
@ 2010-06-27 10:39 ` Juanma Barranquero
  2010-06-27 11:59   ` martin rudalics
  2010-06-27 14:06   ` Drew Adams
  0 siblings, 2 replies; 8+ messages in thread
From: Juanma Barranquero @ 2010-06-27 10:39 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Emacs developers

On Sun, Jun 27, 2010 at 02:30, Chong Yidong <cyd@stupidchicken.com> wrote:
> ------------------------------------------------------------
> revno: 100650
> committer: Chong Yidong <cyd@stupidchicken.com>
> branch nick: trunk
> timestamp: Sat 2010-06-26 20:30:52 -0400
> message:
>  Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
>  Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
>  `default-frame-alist' and `initial-frame-alist' at startup.
>  Instead, use X resources to update the `menu-bar-mode' and
>  `tool-bar-mode' variables at startup, and use them as defaults during
>  frame creation.

This changes initial frame size, at least on Windows.

 emacs-23\bin\emacs -q   => frame-height = 35
 trunk\bin\emacs -q   => frame-height = 38

which is a PITA because I have "Emacs.Geometry = 100x65" in the
registry (65 being the height for a maximized Emacs frame on my
system). With that setting, Emacs 23.X works right, but trunk Emacs
extends under the taskbar.

    Juanma



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

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 10:39 ` [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249) Juanma Barranquero
@ 2010-06-27 11:59   ` martin rudalics
  2010-06-27 14:22     ` Juanma Barranquero
  2010-06-27 14:06   ` Drew Adams
  1 sibling, 1 reply; 8+ messages in thread
From: martin rudalics @ 2010-06-27 11:59 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Chong Yidong, Emacs developers

 >  emacs-23\bin\emacs -q   => frame-height = 35
 >  trunk\bin\emacs -q   => frame-height = 38

I'm confused.  Before and after Chong's change these are 38 here.
But I have an older build where (frame-height) evaluates to 43.

martin



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

* RE: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 10:39 ` [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249) Juanma Barranquero
  2010-06-27 11:59   ` martin rudalics
@ 2010-06-27 14:06   ` Drew Adams
  2010-07-03 19:30     ` [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Changedefault-frame-alist " Drew Adams
  1 sibling, 1 reply; 8+ messages in thread
From: Drew Adams @ 2010-06-27 14:06 UTC (permalink / raw)
  To: 'Juanma Barranquero', 'Chong Yidong'
  Cc: 'Emacs developers'

>  Change default-frame-alist and menu/tool-bar-mode 
> interaction (Bug#2249).  Don't add entries for `menu-bar-lines'
> and `tool-bar-lines' to `default-frame-alist' and
> `initial-frame-alist' at startup.  Instead, use X resources
> to update the `menu-bar-mode' and `tool-bar-mode' variables
> at startup, and use them as defaults during frame creation.

I haven't followed this and cannot check the new effect.  But I hope this does
not mean that a user's customizations of, say, `default-frame-alist' will no
longer be respected wrt `menu-bar-lines' and `tool-bar-lines'.

When you say "use X resources", do you mean that Emacs now sets X resources or
only that users can use X resources to set these parameters? (You say "use X
resources" the same way you say "don't add entries", so it's unclear what the
subject of the sentence is: Emacs code or the user.)

---

FWIW: Over the past few major releases there has been considerable fiddling with
initial menu-bar and tool-bar settings and how they're established. I hope this
will settle down and reach a fixed point. ;-)  As an example, I have code that
fits the frame to a buffer, and it has to calculate the frame height differently
for different Emacs versions, because of the different treatment of these
parameters.




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

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change  default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 11:59   ` martin rudalics
@ 2010-06-27 14:22     ` Juanma Barranquero
  2010-06-27 14:43       ` martin rudalics
  0 siblings, 1 reply; 8+ messages in thread
From: Juanma Barranquero @ 2010-06-27 14:22 UTC (permalink / raw)
  To: martin rudalics; +Cc: Chong Yidong, Emacs developers

On Sun, Jun 27, 2010 at 13:59, martin rudalics <rudalics@gmx.at> wrote:

> I'm confused.  Before and after Chong's change these are 38 here.

On Windows?

In any case, the patch has changed the behavior for me; i.e., it's not
emacs-23 vs. trunk, but trunk-from-yesterday vs. trunk-from-today.

    Juanma



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

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 14:22     ` Juanma Barranquero
@ 2010-06-27 14:43       ` martin rudalics
  2010-06-27 15:11         ` Juanma Barranquero
  0 siblings, 1 reply; 8+ messages in thread
From: martin rudalics @ 2010-06-27 14:43 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Chong Yidong, Emacs developers

>> I'm confused.  Before and after Chong's change these are 38 here.
> 
> On Windows?

Windows XP.

> In any case, the patch has changed the behavior for me; i.e., it's not
> emacs-23 vs. trunk, but trunk-from-yesterday vs. trunk-from-today.

Not so here.

martin




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

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change  default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 14:43       ` martin rudalics
@ 2010-06-27 15:11         ` Juanma Barranquero
  2010-06-27 18:11           ` Chong Yidong
  0 siblings, 1 reply; 8+ messages in thread
From: Juanma Barranquero @ 2010-06-27 15:11 UTC (permalink / raw)
  To: martin rudalics; +Cc: Chong Yidong, Emacs developers

On Sun, Jun 27, 2010 at 16:43, martin rudalics <rudalics@gmx.at> wrote:

> Windows XP.

Oh, I see.

emacs -q does not ignore the registry settings, and I have

Emacs.ScrollBars = off
Emacs.Toolbar = 0

What has really changed is that now "Emacs.Toolbar = 0" does not work,
it is necessary to use "Emacs.Toolbar = off".

    Juanma



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

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 15:11         ` Juanma Barranquero
@ 2010-06-27 18:11           ` Chong Yidong
  0 siblings, 0 replies; 8+ messages in thread
From: Chong Yidong @ 2010-06-27 18:11 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: martin rudalics, Emacs developers

Juanma Barranquero <lekktu@gmail.com> writes:

> emacs -q does not ignore the registry settings, and I have
>
> Emacs.ScrollBars = off
> Emacs.Toolbar = 0
>
> What has really changed is that now "Emacs.Toolbar = 0" does not work,
> it is necessary to use "Emacs.Toolbar = off".

Should be fixed now, thanks.



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

* RE: [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Changedefault-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
  2010-06-27 14:06   ` Drew Adams
@ 2010-07-03 19:30     ` Drew Adams
  0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2010-07-03 19:30 UTC (permalink / raw)
  To: 'Juanma Barranquero', 'Chong Yidong'
  Cc: 'Emacs developers'

> From: Drew Adams Sent: Sunday, June 27, 2010 7:07 AM
> >
> > Change default-frame-alist and menu/tool-bar-mode 
> > interaction (Bug#2249).  Don't add entries for `menu-bar-lines'
> > and `tool-bar-lines' to `default-frame-alist' and
> > `initial-frame-alist' at startup.  Instead, use X resources
> > to update the `menu-bar-mode' and `tool-bar-mode' variables
> > at startup, and use them as defaults during frame creation.
> 
> I haven't followed this and cannot check the new effect.  But 
> I hope this does not mean that a user's customizations of, say, 
> `default-frame-alist' will no longer be respected wrt
> `menu-bar-lines' and `tool-bar-lines'.
> 
> When you say "use X resources", do you mean that Emacs now 
> sets X resources or only that users can use X resources to set
> these parameters? (You say "use X resources" the same way you
> say "don't add entries", so it's unclear what the
> subject of the sentence is: Emacs code or the user.)
> 
> ---
> 
> FWIW: Over the past few major releases there has been 
> considerable fiddling with initial menu-bar and tool-bar
> settings and how they're established.  I hope this
> will settle down and reach a fixed point. ;-)  As an example, 
> I have code that fits the frame to a buffer, and it has to
> calculate the frame height differently for different Emacs
> versions, because of the different treatment of these
> parameters.

See my mail from today, subject "tool bars - broken again".

I suspect that the change Yidong describes is in fact what broke things.

[The breakage is not what I feared it might be (size of tool-bar lines or
non-respect of `default-frames-alist').  Instead, it seems that turning off
`tool-bar-mode' does not set `tool-bar-lines' to 0 for `default-frame-alist'.]





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

end of thread, other threads:[~2010-07-03 19:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1OSgUt-0007A9-6N@internal.in.savannah.gnu.org>
2010-06-27 10:39 ` [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249) Juanma Barranquero
2010-06-27 11:59   ` martin rudalics
2010-06-27 14:22     ` Juanma Barranquero
2010-06-27 14:43       ` martin rudalics
2010-06-27 15:11         ` Juanma Barranquero
2010-06-27 18:11           ` Chong Yidong
2010-06-27 14:06   ` Drew Adams
2010-07-03 19:30     ` [Emacs-diffs] /srv/bzr/emacs/trunk r100650: Changedefault-frame-alist " Drew Adams

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