help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs-desktop insists on having 13-pixel scrollbars at startup


From: PierGianLuca
Subject: Re: Emacs-desktop insists on having 13-pixel scrollbars at startup
Date: Sun, 28 Apr 2024 22:13:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

Thank you. The problem is that the desktop is *not* using the recorded value of 
'scroll-bar-width' (which is one frame parameter) from the session exited 
previously. Instead, it replaces it with 13 pixels, no matter what it was in 
the previous session.

In other words:

1. Suppose I have one frame that has width 90 (characters), height 14, and 
scroll-bar-width 30 pixels.

2. Now I close the Emacs session and the desktop is saved automatically.

3. I restart Emacs; desktop should restore the previous configuration:

– I expect: width 90, height 14, scroll-bar-width 30

– Instead I get: width 90, height 14, scroll-bar-width 13

This is why I see this as a bug.

Let me know if I'm misunderstanding something.

Cheers,
Luca


On 240428 21:57, Rahguzar wrote:
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]