However, make-frame opens a tiny window of about 41x6 even though it is supposed to use default-frame-alist.
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
However, make-frame opens a tiny window of about 41x6 even though it is
supposed to use default-frame-alist.
It's hard to understand what you mean, since in emacs-speak 'window' means
a frme subdivision.
With this everything will open in a new frame. No more window splitting.
(setq pop-up-frames t)
Otherwise use the extra optional arguments of make-frame:
(describe-function make-frame)
(make-frame &optional PARAMETERS)
Return a newly created frame displaying the current buffer.
Optional argument PARAMETERS is an alist of frame parameters for
the new frame. Each element of PARAMETERS should have the
form (NAME . VALUE), for example:
(name . STRING) The frame should be named STRING.
(width . NUMBER) The frame should be NUMBER characters in width.
(height . NUMBER) The frame should be NUMBER text lines high.
As it happens, make-frame appears to ignore explicit parameters as well. Executing (make-frame '((width . 80) (height . 45))) opens a small frame
of the same size as plain (make-frame). Something very odd going on...
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
As it happens, make-frame appears to ignore explicit parameters as well.
Executing (make-frame '((width . 80) (height . 45))) opens a small frame
of the same size as plain (make-frame). Something very odd going on...
I also find that extremely bizarre. In my computer it works fine.
I would check the x-toolkit used for compiling emacs.
emacs --batch --exec '(print system-configuration-options)'
'gtk' changes a lot and tends to be buggy. With 'lucid' features are
more stable.
You can always compile emacs from source with the lucid toolkit
./configure --with-x-toolkit=lucid --prefix=${HOME}/local ; make ;
make install
Since I've "fixed" the problem with a key binding to set the width and
height from default-frame-alist, I may just live it.
I find the old-fashioned toolkit a bit clunky, but I'll run it for a
bit and see how I can get over the flashbacks it gives me!
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
Since I've "fixed" the problem with a key binding to set the width and
height from default-frame-alist, I may just live it.
You should be able to also change that with a hook, without keybindings.
-- Variable: after-make-frame-functions
An abnormal hook run by rCymake-framerCO after it created the frame.
Each function in rCyafter-make-frame-functionsrCO receives one
argument, the frame just created.
I find the old-fashioned toolkit a bit clunky, but I'll run it for a
bit and see how I can get over the flashbacks it gives me!
The most shocking thing is the scrollbar that appears on the left side,
but you can change that with xresources or frame-parameters
M-: (info "(emacs) Table of Resources")
M-: (info "(elisp) Window Frame Parameters")
rCyverticalScrollBarsrCO (class rCyScrollBarsrCO)
Give frames scroll bars on the left if rCyleftrCO, on the right if
rCyrightrCO; donrCOt have scroll bars if rCyoffrCO (*note Scroll Bars::).
Another annoyance is that the scrollbar behaves like a xterm
scrollbar (should be used with the central button of the mouse).
Anyway nowadays most scrolling is done with the mouse-wheel.
* Javier <invalid@invalid.invalid>
| Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
| > As it happens, make-frame appears to ignore explicit parameters as well. | > Executing (make-frame '((width . 80) (height . 45))) opens a small frame | > of the same size as plain (make-frame). Something very odd going on...
| I also find that extremely bizarre. In my computer it works fine.
| I would check the x-toolkit used for compiling emacs.
| emacs --batch --exec '(print system-configuration-options)'
| 'gtk' changes a lot and tends to be buggy.
Mine is
"GNU Emacs 27.2 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0)"
(opensuse 15.4)
and 'make-frame' works as intended with parameters.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:39:24 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,188 |