unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.0.60; Setting font during startup makes emacs window enormous
@ 2008-03-09 22:58 Alec Berryman
  2008-03-10  8:14 ` Christoph Conrad
  0 siblings, 1 reply; 2+ messages in thread
From: Alec Berryman @ 2008-03-09 22:58 UTC (permalink / raw)
  To: emacs-pretest-bug

When I start up emacs with the following configuration item:

(when window-system
  (set-default-font "DejaVu Sans Mono-14"))

the emacs window created is larger than my screen.  When I comment it out, it
comes up at a reasonable size.

It appears that when the new font is selected, emacs keeps the same relative
window dimensions even though the font choice means fewer lines/columns.  I'm
using a tiling window manager, xmonad, which lays out windows automatically
according to a predefined specification; in this case, I've asked it to make
all windows full-screen by default.  When I resize the windows on the screen by
changing the layout specification, emacs is drawn correctly.

This behavior isn't more than a few weeks old; I haven't rebuilt emacs in a
while, but it worked previously.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/alec/local/emacs/share/emacs/23.0.60/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.8 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.5)
 of 2008-03-09 on barry
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--with-x-toolkit=gtk' '--enable-font-backend' '--prefix=/home/alec/local/emacs''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  iswitchb-mode: t
  partial-completion-mode: t
  recentf-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r <tab> <return>

Recent messages:
Loading /home/alec/.emacs.d/lisp-settings.el (source)...done
Loading /home/alec/.emacs.d/python-settings.el (source)...done
Loading /home/alec/.emacs.d/c-settings.el (source)...done
Loading /home/alec/.emacs.d/haskell-settings.el (source)...
Loading /home/alec/other-code/non-vc/libraries/emacs/haskell-mode/haskell-mode-2.3/haskell-site-file.el (source)...done
Loading /home/alec/.emacs.d/haskell-settings.el (source)...done
Loading /home/alec/.emacs.d/java-settings.el (source)...done
Loading /home/alec/.emacs.d/smalltalk-settings.el (source)...done
Loading /home/alec/.emacs.d/perl-settings.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.





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

* Re: 23.0.60; Setting font during startup makes emacs window enormous
  2008-03-09 22:58 23.0.60; Setting font during startup makes emacs window enormous Alec Berryman
@ 2008-03-10  8:14 ` Christoph Conrad
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Conrad @ 2008-03-10  8:14 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug

Hi Alec,

* Alec Berryman <alec@thened.net> wrote:

> (set-default-font "DejaVu Sans Mono-14")

Try using keep-size:

,----
| (set-default-font font-name &optional keep-size)
| 
| [...]
| 
| The default behavior is to keep the numbers of lines and columns in
| the frame, thus may change its pixel size. If optional keep-size is
| non-nil (interactively, prefix argument) the current frame size (in
| pixels) is kept by adjusting the numbers of the lines and columns.
`----

so simply call (set-default-font "DejaVu Sans Mono-14" t).

With kind regards,
Christoph





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

end of thread, other threads:[~2008-03-10  8:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-09 22:58 23.0.60; Setting font during startup makes emacs window enormous Alec Berryman
2008-03-10  8:14 ` Christoph Conrad

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