unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* frame maximization and fonts
@ 2003-02-24  2:53 David Abrahams
  2003-02-24  8:08 ` Juanma Barranquero
  0 siblings, 1 reply; 9+ messages in thread
From: David Abrahams @ 2003-02-24  2:53 UTC (permalink / raw)



I have a .emacs file which causes my NTEmacs sesions to start with a
maximized frame.  It begins:


    (setq w32-enable-italics t)
    (setq w32-enable-synthesized-fonts t)
    (set-default-font "-*-Lucida Console-normal-r-*-*-12-96-96-96-c-*-iso8859-1")
    (set-face-font 'italic "-*-Lucida Console-normal-i-*-*-12-96-96-96-c-*-*-1")
    (set-face-font 'bold-italic "-*-Lucida Console-bold-i-*-*-12-96-96-96-c-*-*-1")

    ;; on Windoze systems, filenames are not case-sensitive. If we don't arrange for
    ;; them to come out lower-case when listed, useful toys like ediff-directories
    ;; won't work properly.
    (if (eq system-type 'windows-nt)
        ;; Hook the directory-files function.
        (progn
          ;; Irrelevant stuff snipped

          (defun w32-maximize-frame ()
            "Maximize the current frame"
            (interactive)
            (w32-send-sys-command 61488))

          (w32-maximize-frame)
          ))


This works fine with emacs 21.2.1, but with a recent build from the
CVS HEAD (like 3 days ago), my experience is different:

The frame appears to grow to fill the entire screen, but then, almost
instantaneously, it gets about 30 pixels shorter (the bottom edge of
the frame moves up).  This happens even if I put the call to
w32-maximize-frame at the very end of my .emacs file.  Any clues?


Thanks in advance,
Dave

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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

* Re: frame maximization and fonts
  2003-02-24  2:53 frame maximization and fonts David Abrahams
@ 2003-02-24  8:08 ` Juanma Barranquero
  2003-02-24 12:31   ` David Abrahams
  0 siblings, 1 reply; 9+ messages in thread
From: Juanma Barranquero @ 2003-02-24  8:08 UTC (permalink / raw)
  Cc: emacs-devel

On Sun, 23 Feb 2003 21:53:52 -0500, David Abrahams <dave@boost-consulting.com> wrote:

> The frame appears to grow to fill the entire screen, but then, almost
> instantaneously, it gets about 30 pixels shorter (the bottom edge of
> the frame moves up).  This happens even if I put the call to
> w32-maximize-frame at the very end of my .emacs file.  Any clues?

Could be related to tool-bar-mode.

Are you disabling tool-bar-mode on your .emacs? On the registry (with
Emacs.Toolbar = 0)? None of the above?


                                                           /L/e/k/t/u

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

* Re: frame maximization and fonts
  2003-02-24  8:08 ` Juanma Barranquero
@ 2003-02-24 12:31   ` David Abrahams
  2003-02-24 14:21     ` Juanma Barranquero
  0 siblings, 1 reply; 9+ messages in thread
From: David Abrahams @ 2003-02-24 12:31 UTC (permalink / raw)
  Cc: emacs-devel

Juanma Barranquero <lektu@terra.es> writes:

> On Sun, 23 Feb 2003 21:53:52 -0500, David Abrahams <dave@boost-consulting.com> wrote:
>
>> The frame appears to grow to fill the entire screen, but then, almost
>> instantaneously, it gets about 30 pixels shorter (the bottom edge of
>> the frame moves up).  This happens even if I put the call to
>> w32-maximize-frame at the very end of my .emacs file.  Any clues?
>
> Could be related to tool-bar-mode.
>
> Are you disabling tool-bar-mode on your .emacs? On the registry (with
> Emacs.Toolbar = 0)? None of the above?


Yep:

    (custom-set-variables
      ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
      ;; Your init file should contain only one such instance.

      ...

     '(tool-bar-mode nil nil (tool-bar))

      ...

     '(use-dialog-box nil))


Got a fix for me?

Thanks for your attention to this,
Dave

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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

* Re: frame maximization and fonts
  2003-02-24 12:31   ` David Abrahams
@ 2003-02-24 14:21     ` Juanma Barranquero
  2003-02-25 20:50       ` David Abrahams
  0 siblings, 1 reply; 9+ messages in thread
From: Juanma Barranquero @ 2003-02-24 14:21 UTC (permalink / raw)
  Cc: emacs-devel

On Mon, 24 Feb 2003 07:31:36 -0500, David Abrahams <dave@boost-consulting.com> wrote:

> Yep:

> Got a fix for me?

At the risk of shooting fishes on a barrel, try:

* setting Emacs.Toolbar = 0 on the registry (that's
HKLM\Software\Gnu\Emacs\Emacs.Toolbar)

* deleting the customization for tool-bar-mode, and

* adding the following to your .emacs:

  (let ((lines (car-safe (assq 'tool-bar-lines default-frame-alist))))
    (when (and lines
               (integerp lines)
               (> lines 0))
      (add-hook 'window-setup-hook #'(lambda () (tool-bar-mode -1)))))


Hope this helps,

                                                           /L/e/k/t/u

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

* Re: frame maximization and fonts
  2003-02-24 14:21     ` Juanma Barranquero
@ 2003-02-25 20:50       ` David Abrahams
  2003-02-25 21:01         ` Juanma Barranquero
  0 siblings, 1 reply; 9+ messages in thread
From: David Abrahams @ 2003-02-25 20:50 UTC (permalink / raw)
  Cc: emacs-devel

Juanma Barranquero <lektu@terra.es> writes:

> On Mon, 24 Feb 2003 07:31:36 -0500, David Abrahams <dave@boost-consulting.com> wrote:
>
>> Yep:
>
>> Got a fix for me?
>
> At the risk of shooting fishes on a barrel, try:
>
> * setting Emacs.Toolbar = 0 on the registry (that's
> HKLM\Software\Gnu\Emacs\Emacs.Toolbar)

I don't have any such setting in my registry, so I added
HKeyLocalMachine\Software\Gnu\Emacs\Emacs.Toolbar as a binary value
of 0000.

> * deleting the customization for tool-bar-mode, and
>
> * adding the following to your .emacs:
>
>   (let ((lines (car-safe (assq 'tool-bar-lines default-frame-alist))))
>     (when (and lines
>                (integerp lines)
>                (> lines 0))
>       (add-hook 'window-setup-hook #'(lambda () (tool-bar-mode -1)))))

Fills the screen, but the toolbar is still visible.

Thanks for trying,
Dave

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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

* Re: frame maximization and fonts
  2003-02-25 20:50       ` David Abrahams
@ 2003-02-25 21:01         ` Juanma Barranquero
  2003-02-25 21:25           ` David Abrahams
  0 siblings, 1 reply; 9+ messages in thread
From: Juanma Barranquero @ 2003-02-25 21:01 UTC (permalink / raw)
  Cc: emacs-devel


On Tue, 25 Feb 2003 15:50:53 -0500
David Abrahams <dave@boost-consulting.com> wrote:

> I don't have any such setting in my registry

Try executing bin/addpm.exe; it should create HKLM\Software\Gnu\Emacs
and some values in it.

> so I added
> HKeyLocalMachine\Software\Gnu\Emacs\Emacs.Toolbar as a binary value
> of 0000.

Use a string, of value "0".


-- 
Juanma Barranquero <lektu@terra.es>

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

* Re: frame maximization and fonts
  2003-02-25 21:01         ` Juanma Barranquero
@ 2003-02-25 21:25           ` David Abrahams
  2003-02-26  7:14             ` Juanma Barranquero
  0 siblings, 1 reply; 9+ messages in thread
From: David Abrahams @ 2003-02-25 21:25 UTC (permalink / raw)
  Cc: emacs-devel

Juanma Barranquero <lektu@terra.es> writes:

> On Tue, 25 Feb 2003 15:50:53 -0500
> David Abrahams <dave@boost-consulting.com> wrote:
>
>> I don't have any such setting in my registry
>
> Try executing bin/addpm.exe; it should create HKLM\Software\Gnu\Emacs
> and some values in it.

I already have that, just no Emacs.Toolbar.

>> so I added
>> HKeyLocalMachine\Software\Gnu\Emacs\Emacs.Toolbar as a binary value
>> of 0000.
>
> Use a string, of value "0".

I'll try.  Works!

So should I report this as a bug somehow/somewhere, or is this
posting sufficient?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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

* Re: frame maximization and fonts
  2003-02-25 21:25           ` David Abrahams
@ 2003-02-26  7:14             ` Juanma Barranquero
  2003-02-26 13:03               ` David Abrahams
  0 siblings, 1 reply; 9+ messages in thread
From: Juanma Barranquero @ 2003-02-26  7:14 UTC (permalink / raw)
  Cc: emacs-devel

On Tue, 25 Feb 2003 16:25:51 -0500, David Abrahams <dave@boost-consulting.com> wrote:

> So should I report this as a bug somehow/somewhere, or is this
> posting sufficient?

It's been reported several times:

http://mail.gnu.org/archive/html/bug-gnu-emacs/2002-11/msg00130.html
http://mail.gnu.org/archive/html/bug-gnu-emacs/2002-12/msg00002.html
http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-01/msg00197.html

                                                           /L/e/k/t/u

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

* Re: frame maximization and fonts
  2003-02-26  7:14             ` Juanma Barranquero
@ 2003-02-26 13:03               ` David Abrahams
  0 siblings, 0 replies; 9+ messages in thread
From: David Abrahams @ 2003-02-26 13:03 UTC (permalink / raw)
  Cc: emacs-devel

Juanma Barranquero <lektu@terra.es> writes:

> On Tue, 25 Feb 2003 16:25:51 -0500, David Abrahams <dave@boost-consulting.com> wrote:
>
>> So should I report this as a bug somehow/somewhere, or is this
>> posting sufficient?
>
> It's been reported several times:
>
> http://mail.gnu.org/archive/html/bug-gnu-emacs/2002-11/msg00130.html
> http://mail.gnu.org/archive/html/bug-gnu-emacs/2002-12/msg00002.html
> http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-01/msg00197.html

That's a relief.  Many thanks for your help, Juanma!

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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

end of thread, other threads:[~2003-02-26 13:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24  2:53 frame maximization and fonts David Abrahams
2003-02-24  8:08 ` Juanma Barranquero
2003-02-24 12:31   ` David Abrahams
2003-02-24 14:21     ` Juanma Barranquero
2003-02-25 20:50       ` David Abrahams
2003-02-25 21:01         ` Juanma Barranquero
2003-02-25 21:25           ` David Abrahams
2003-02-26  7:14             ` Juanma Barranquero
2003-02-26 13:03               ` David Abrahams

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