all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "H.-J. Heitländer" <Heiner.Heitlaender@posteo.de>
To: help-gnu-emacs@gnu.org
Subject: Re: setting frame size with C-5 2 - emacs 30.5
Date: Tue, 14 Nov 2023 15:33:39 +0000	[thread overview]
Message-ID: <56e4ffe3-c0c4-4fdc-935d-875998bc34d8@posteo.de> (raw)
In-Reply-To: <87lebehkwj.fsf@dataswamp.org>

Found it at last (stupid me)

Chatgpt: write emacs elisp function  which sets the new frame size to 65 
w and 33 h

answer: (with small edits)

(defun KM-make-frame ()
   "New frame and set size to w 65, h 33
   "
   (interactive)
   (let ((old-frame (selected-frame))
     (new-frame (make-frame)))
     (select-frame new-frame)
     (set-frame-width new-frame 65)
     (set-frame-height new-frame 33)
     (select-frame old-frame)
     )
   )

Outstanding is the problem with the irritating behaviour of C-5 2. But 
we'll get to that (at some time)

TX to all

Am 03.11.23 um 17:16 schrieb Emanuel Berg:
> H.-J. Heitländer wrote:
>
>> Additionally the variables "frame-char-width" resp.
>> "frame-char-height" don't seem to be defined.
> They are functions, `frame-char-width' and
> `frame-char-height'.
>
> Here (frame-char-width) is 1 and (frame-char-height) is
> also 1.
>



  reply	other threads:[~2023-11-14 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 14:28 setting frame size with C-5 2 - emacs 30.5 H.-J. Heitländer
2023-11-03 16:16 ` Emanuel Berg
2023-11-14 15:33   ` H.-J. Heitländer [this message]
2023-11-14 17:37     ` tomas

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=56e4ffe3-c0c4-4fdc-935d-875998bc34d8@posteo.de \
    --to=heiner.heitlaender@posteo.de \
    --cc=help-gnu-emacs@gnu.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.