* setting frame size with C-5 2 - emacs 30.5
@ 2023-11-03 14:28 H.-J. Heitländer
2023-11-03 16:16 ` Emanuel Berg
0 siblings, 1 reply; 4+ messages in thread
From: H.-J. Heitländer @ 2023-11-03 14:28 UTC (permalink / raw)
To: gnu emacs
Hi there,
since several months the behavior of C-5 2 has changed (for me).
Somehow the new frame only is 16 char wide and 6 lines high. (text window).
Additionally the variables "frame-char-width" resp. "frame-char-height"
don't seem to be defined.
I'm on "debian testing" with wayland (xwayland) as the display
protocol(?) Is there a way to set the size of a new frame generated by
C-5 2?
Searching the docs/internet did not give any result so any help is welcome.
TX in advance
Heiner
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: setting frame size with C-5 2 - emacs 30.5
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
0 siblings, 1 reply; 4+ messages in thread
From: Emanuel Berg @ 2023-11-03 16:16 UTC (permalink / raw)
To: help-gnu-emacs
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.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: setting frame size with C-5 2 - emacs 30.5
2023-11-03 16:16 ` Emanuel Berg
@ 2023-11-14 15:33 ` H.-J. Heitländer
2023-11-14 17:37 ` tomas
0 siblings, 1 reply; 4+ messages in thread
From: H.-J. Heitländer @ 2023-11-14 15:33 UTC (permalink / raw)
To: help-gnu-emacs
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.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-14 17:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-11-14 17:37 ` tomas
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.