help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window size specification ignored


From: August Karlstrom
Subject: Re: Window size specification ignored
Date: Sun, 11 Sep 2005 22:48:13 GMT
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050727)

Peter Dyballa wrote:

Am 11.09.2005 um 19:52 schrieb August Karlstrom:

When I run emacs with

   emacs -g <w>x<h>

I get a non-maximized window of size w x (h - 3) if h <= 32. If h > 32 the window is maximized. The setting in ~/.emacs is still ignored, even if I set height to e.g. 24. Strange indeed.


There might be some bug in Ubuntu -- or in your .emacs file! To try to find where this error comes from you can launch GNU Emacs with the -Q or the -q options, together with -g WxH. With -q Emacs does not load .emacs nor default.el, with -Q even the site-{start|init}.el files aren't loaded and no splash screen is shown. So there is a difference and you can get a glue where the error happens.

There is no default.el or site-start.el and the site-init.elc file doesn't give any clues:

<shell-command>

$ cat /usr/share/emacs/21.3/lisp/site-init.elc
;ELC
;;; Compiled by root@terranova.warthogs.hbd.com on Sat Mar  5 01:41:49 2005
;;; from file /build/buildd/emacs21-21.3+1/lisp/site-init.el
;;; in Emacs version 21.3
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
         (< (aref emacs-version (1- (length emacs-version))) ?A)
         (or (and (boundp 'epoch::version) epoch::version)
             (string-lessp emacs-version "19.29")))
    (error "`site-init.el' was compiled for Emacs 19.29 or later"))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\30\302\"\301\207" [Info-default-directory-list append ("/usr/share/info/emacs-21/")] 3)

</shell-command>

If I invoke

   $ /usr/bin/emacs

when ~/.emacs contains only

   (setq default-frame-alist
      '((width . 80)
        (height . 24)
        (foreground-color . "wheat")
        (background-color . "darkslategrey")))

The display colors are changed, so obviously the file is read, but the window is (still) maximized. I will send a bug report to the Ubuntu team.


Thanks for your help,

August


reply via email to

[Prev in Thread] Current Thread [Next in Thread]