all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem turning fullheight mode on via default-frame-alist.
@ 2008-12-20 19:59 Tim Visher
  2008-12-21  2:44 ` Allan Gottlieb
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Visher @ 2008-12-20 19:59 UTC (permalink / raw
  To: Emacs Help List

Can anyone explain to me what I'm doing wrong here?  As far as I can
read in the info pages, the following ELISP should set my default
frame size to fullheight, but it's not working.  The height doesn't
change at all, though.  I have no idea what I'm doing wrong.

;; Customize Frame Size and position
(setq default-frame-alist '((top . 1) (left . 170) (right . 1) (width
. 130) (fullscreen . fullheight)))

Thanks in advance!

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




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

* Re: Problem turning fullheight mode on via default-frame-alist.
  2008-12-20 19:59 Problem turning fullheight mode on via default-frame-alist Tim Visher
@ 2008-12-21  2:44 ` Allan Gottlieb
  2008-12-21 19:13   ` Tim Visher
  0 siblings, 1 reply; 5+ messages in thread
From: Allan Gottlieb @ 2008-12-21  2:44 UTC (permalink / raw
  To: help-gnu-emacs

At Sat, 20 Dec 2008 14:59:44 -0500 Tim Visher <tim.visher@gmail.com> wrote:

> Can anyone explain to me what I'm doing wrong here?  As far as I can
> read in the info pages, the following ELISP should set my default
> frame size to fullheight, but it's not working.  The height doesn't
> change at all, though.  I have no idea what I'm doing wrong.
>
> ;; Customize Frame Size and position
> (setq default-frame-alist '((top . 1) (left . 170) (right . 1) (width
> . 130) (fullscreen . fullheight)))

I sent a bug report on a similar finding.  For modify-frame-parameters
you can't set fullscreen and another property in the same command.
So I have

  (modify-frame-parameters nil '( (fullscreen . fullheight) ))
  (modify-frame-parameters nil '( (width . 170) ))

in one of my elisp functions.

hth,
allan




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

* Re: Problem turning fullheight mode on via default-frame-alist.
  2008-12-21  2:44 ` Allan Gottlieb
@ 2008-12-21 19:13   ` Tim Visher
  2008-12-22  0:39     ` Allan Gottlieb
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Visher @ 2008-12-21 19:13 UTC (permalink / raw
  To: Allan Gottlieb; +Cc: help-gnu-emacs

On Sat, Dec 20, 2008 at 9:44 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:

> For modify-frame-parameters you can't set fullscreen and another
> property in the same command.  So I have
>
>  (modify-frame-parameters nil '( (fullscreen . fullheight) ))
>  (modify-frame-parameters nil '( (width . 170) ))
>

Thanks for this Allan.  Unfortunately, it doesn't appear to do
anything for me.  Does this actually work for you?

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




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

* Re: Problem turning fullheight mode on via default-frame-alist.
  2008-12-21 19:13   ` Tim Visher
@ 2008-12-22  0:39     ` Allan Gottlieb
  2008-12-23  2:06       ` Tim Visher
  0 siblings, 1 reply; 5+ messages in thread
From: Allan Gottlieb @ 2008-12-22  0:39 UTC (permalink / raw
  To: help-gnu-emacs

At Sun, 21 Dec 2008 14:13:45 -0500 Tim Visher <tim.visher@gmail.com> wrote:

> On Sat, Dec 20, 2008 at 9:44 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:
>
>> For modify-frame-parameters you can't set fullscreen and another
>> property in the same command.  So I have
>>
>>  (modify-frame-parameters nil '( (fullscreen . fullheight) ))
>>  (modify-frame-parameters nil '( (width . 170) ))
>>
>
> Thanks for this Allan.  Unfortunately, it doesn't appear to do
> anything for me.  Does this actually work for you?

Sure does.  I just tried both v23 and v22.

Do emacs -Q

in *scratch* buffer enter

(modify-frame-parameters nil '( (fullscreen . fullheight) ))

then with the cursor right after the )) type  C-x C-e

that should give you a tall frame (window in X parlence).

They try the same with

(modify-frame-parameters nil '( (width . 170) ))

and you should get a wide frame.

hth,
allan






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

* Re: Problem turning fullheight mode on via default-frame-alist.
  2008-12-22  0:39     ` Allan Gottlieb
@ 2008-12-23  2:06       ` Tim Visher
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Visher @ 2008-12-23  2:06 UTC (permalink / raw
  To: Allan Gottlieb; +Cc: help-gnu-emacs

On Sun, Dec 21, 2008 at 7:39 PM, Allan Gottlieb <gottlieb@nyu.edu> wrote:

> Do emacs -Q
>
> in *scratch* buffer enter
>
> (modify-frame-parameters nil '( (fullscreen . fullheight) ))
>
> then with the cursor right after the )) type  C-x C-e
>
> that should give you a tall frame (window in X parlence).
>
> They try the same with
>
> (modify-frame-parameters nil '( (width . 170) ))
>
> and you should get a wide frame.

Interesting.  On my Windows box using 22 both of those work as
expected.  Unfortunately, on my Mac only the width one works.  When I
execute the fullscreen lisp, I just get a `nil` bounced back at me in
the mini-buffer.

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




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

end of thread, other threads:[~2008-12-23  2:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-20 19:59 Problem turning fullheight mode on via default-frame-alist Tim Visher
2008-12-21  2:44 ` Allan Gottlieb
2008-12-21 19:13   ` Tim Visher
2008-12-22  0:39     ` Allan Gottlieb
2008-12-23  2:06       ` Tim Visher

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.