all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sam Steingold <sds@podval.org>
Subject: 'fullscreen 'fullheight
Date: Mon, 01 May 2006 17:42:56 -0400	[thread overview]
Message-ID: <albquhl8v3.fsf@quant8.janestcapital.quant> (raw)

GNU Emacs 22.0.50.24 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-05-01 on quant8

I use Emacs on various machines with different X screen parameters,
and I like Emacs frames to have maximum possible height.
I used to use this:

(defun sds-frame-normaize (&optional frame move)
  "the frame --> top right; almost full size"
  (interactive)
  (unless frame (setq frame (selected-frame)))
  (set-frame-parameter frame 'fullscreen nil)
  (set-frame-parameter frame 'fullscreen 'fullheight)
  (set-frame-parameter frame 'fullscreen nil)
  (when move
    (set-frame-position frame 0 0))
  (let ((height (- (frame-height) (eval-when-compile (if sds-winnt 1 4)))))
    (set-frame-height frame height)
    (set-frame-width frame 80)
    (set-frame-parameter frame 'top '(+ -5))
    height))
    
(I welcome suggestion on how to accomplish the same easier!)

recently I noticed the following unpleasant behavior:

$ emacs -q
(frame-height) C-j
==> 43
(set-frame-parameter nil 'fullscreen 'fullheight) C-j
==> nil
(frame-height) C-j
==> 43

now the X window has the correct size, but the emacs frame does not!
((frame-height) returns the old value)
also, set-frame-parameter takes several seconds to execute!



-- 
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
http://memri.org http://palestinefacts.org http://iris.org.il
http://camera.org http://openvotingconsortium.org http://thereligionofpeace.com
You think Oedipus had a problem -- Adam was Eve's mother.

             reply	other threads:[~2006-05-01 21:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 21:42 Sam Steingold [this message]
2006-05-02 16:25 ` 'fullscreen 'fullheight Kevin Rodgers
2006-05-03  8:02 ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=albquhl8v3.fsf@quant8.janestcapital.quant \
    --to=sds@podval.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.