unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs-desktop insists on having 13-pixel scrollbars at startup
@ 2024-04-28 19:57 Rahguzar
  2024-04-28 20:13 ` PierGianLuca
  0 siblings, 1 reply; 8+ messages in thread
From: Rahguzar @ 2024-04-28 19:57 UTC (permalink / raw)
  To: luca; +Cc: help-gnu-emacs

From info node `(emacs) Saving Emacs Sessions`

   When the desktop restores the frame and window configuration, it uses
the recorded values of frame parameters, disregarding any settings for
those parameters you have in your init file (*note Init File::).  This
means that frame parameters such as fonts and faces for the restored
frames will come from the desktop file, where they were saved when you
exited your previous Emacs session; any settings for those parameters in
your init file will be ignored.  To disable this, customize the value of
‘frameset-filter-alist’ to filter out the frame parameters you don’t
want to be restored; they will then be set according to your
customizations in the init file.

So you need to customize frameset-filter-alist



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Emacs-desktop insists on having 13-pixel scrollbars at startup
@ 2024-04-20 12:31 PierGianLuca
  0 siblings, 0 replies; 8+ messages in thread
From: PierGianLuca @ 2024-04-20 12:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone.

Setup:

– Emacs 29.3 compiled on Ubuntu 20.04 from tarball, with options

./configure --with-native-compilation --with-json --enable-link-time-optimization --with-x-toolkit=gtk --with-xwidgets --without-toolkit-scroll-bars

– KDE Plasma desktop

– *No* window rules set for Emacs on KDE desktop

– *No* frame-geometry rules given to Emacs at startup in the emacs.desktop and emacsclient.desktop files

– early-init.el is empty

– default-frame-alist set, via customize, to:

  '(default-frame-alist
    '((horizontal-scroll-bars)
      (width . 87)
      (height . 80)
      (left . 1257)
      (top . 0)))


With this setup, Emacs starts with vertical scrollbars that are 13 pixels wide. If I create new frames with C-x 5 2 ('make-frame-command'), they also have 13-pixel-wide scrollbars.


I would like to change the scroll-bar width, adding 6 pixels. So I modify:

– early-init.el:

(setq-default scroll-bar-width 19)
(add-to-list 'initial-frame-alist '(scroll-bar-width . 19))


– default-frame-alist set, via customize, to:

  '(default-frame-alist
    '((horizontal-scroll-bars)
      (scroll-bar-width . 19)
      (width . 87)
      (height . 80)
      (left . 1257)
      (top . 0)))


What happens is that when I start Emacs, the *first* frames that appear have 13-pixels scrollbars. But any new frames that I create with 'make-frame-command' do have the requested 19-pixell scrollbars.


I discovered that this happens when Emacs-desktop is active. Emacs-desktop remembers the final frame geometry of all opened frames from one session to the next. Except that it always uses 13-pixel scrollbars for the restored frames when starting a new session. Frames created afterwards do have the correct scrollbar width – but they also will be reset to 13 pixels if Emacs is closed and started again.


If Emacs-desktop is disabled, Emacs starts with a frame having the required scrollbar width.


Is this a bug in Emacs Desktop, or am I missing or misunderstanding how it should work? I'm happy to share any other information you need.

Cheers!
Luca
  



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

end of thread, other threads:[~2024-04-29  8:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-28 19:57 Emacs-desktop insists on having 13-pixel scrollbars at startup Rahguzar
2024-04-28 20:13 ` PierGianLuca
2024-04-29  6:55   ` Eli Zaretskii
2024-04-29  7:16     ` PierGianLuca
2024-04-29  8:20       ` Eli Zaretskii
2024-04-29  8:11   ` Rahguzar
2024-04-29  8:16     ` PierGianLuca
  -- strict thread matches above, loose matches on Subject: below --
2024-04-20 12:31 PierGianLuca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).