From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs-desktop insists on having 13-pixel scrollbars at startup Date: Mon, 29 Apr 2024 09:55:19 +0300 Message-ID: <86wmogslns.fsf@gnu.org> References: <87ttjls1gc.fsf@zohomail.eu> <12e17f83-5ac9-52c7-f7e8-a6199ba4f652@magnaspesmeretrix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18051"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 29 08:57:47 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s1KxO-0004RQ-1o for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Apr 2024 08:57:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1KvU-0005ix-Qo; Mon, 29 Apr 2024 02:55:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1Kv5-0005Kl-4I for help-gnu-emacs@gnu.org; Mon, 29 Apr 2024 02:55:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1Kv4-0007zS-NN for help-gnu-emacs@gnu.org; Mon, 29 Apr 2024 02:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5Q0P5IzEoBnCKIutdp9Yri2P8Ps29WK2A4NI/x28uYo=; b=rCK3NuofcJhmdqQgE6ty LziVonc2P8zAvod7kMgBjQZk75wyT0FmHo0qhnOmSlA/V7c0afVldOieM5QgB9k9MBjA+vPaJ0n4x G2fr0SgxlqTEPCwdSgEGUSMYU1JjPwBSIto/QoBg4kbVeRE2HAu6AtjH782jTZK6HMAuiPVLQh/hL Ddzf7UBVInrXktFRl9kr0EFlYs8M0DOW4cx/DRhONSfuF7Bw8zP5LUg7yAKbqPO1HQncS/lBjY42N haPhNNvdchbdyad15xwmTzmCq/g2axFivsaurIlstVGBwEpTCNcRNaKL+ZJHDZV54sffn3wn8S3m5 uHAZ/KN685vJig==; In-Reply-To: <12e17f83-5ac9-52c7-f7e8-a6199ba4f652@magnaspesmeretrix.org> (message from PierGianLuca on Sun, 28 Apr 2024 22:13:07 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146495 Archived-At: > Date: Sun, 28 Apr 2024 22:13:07 +0200 > From: PierGianLuca > Cc: Rahguzar > > 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. I cannot reproduce this in Emacs 30: with the above recipe I get the same scroll-bar-width as the value I set before quitting the session. So please verify that Emacs restores the desktop from the correct file (it could be modified via desktop-path), and if it does, then perhaps this is specific to your Emacs configuration and/or the toolkit you are using, or perhaps to some of your customizations. I've reviewed the code in frameset.el, and I don't see there anything that would explain why scroll-bar-width frame-parameter would not be applied when restoring the desktop.