From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: About desktop file Date: Tue, 13 Sep 2016 23:35:31 +0200 Message-ID: <6a4c73a9-0581-137f-6b1b-20136006e7f4@alice.it> References: <3fe8a676-ba8c-cb76-2b65-de931073d5ca@alice.it> <834m5mbdkd.fsf@gnu.org> <808928eb-2050-da74-d217-30ad027081ba@alice.it> <83mvjd9ihp.fsf@gnu.org> <0bef0642-cba3-eae7-1fc3-64a0656a3c79@alice.it> <83r38n9902.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1473802619 19346 195.159.176.226 (13 Sep 2016 21:36:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2016 21:36:59 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 13 23:36:55 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjvNt-0004Sx-Pu for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2016 23:36:53 +0200 Original-Received: from localhost ([::1]:51724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjvNs-0006xb-27 for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2016 17:36:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjvNB-0006un-T6 for emacs-devel@gnu.org; Tue, 13 Sep 2016 17:36:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjvN6-0007hI-Qs for emacs-devel@gnu.org; Tue, 13 Sep 2016 17:36:08 -0400 Original-Received: from smtp203.alice.it ([82.57.200.99]:14982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjvN6-0007fk-G3; Tue, 13 Sep 2016 17:36:04 -0400 Original-Received: from [192.168.1.100] (82.59.177.20) by smtp203.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 57AB225A0589368E; Tue, 13 Sep 2016 23:36:01 +0200 In-Reply-To: <83r38n9902.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.99 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207422 Archived-At: Il 13/09/2016 16:20, Eli Zaretskii ha scritto: >> Cc: emacs-devel@gnu.org >> From: Angelo Graziosi >> Date: Mon, 12 Sep 2016 22:14:21 +0200 >> >> Il 12/09/2016 18:43, Eli Zaretskii ha scritto: >>> >>> Does Martin's advice give you what you want? I think different users >>> will have different expectations regarding what frame parameters of >>> existing frames should be restored, so customization is the right way >>> of fitting this to your needs. >>> >> >> I don't understand why an user, that tries to customize the font, has >> the expectation to find this in the second frame and not in the first. > > Because frames loaded from the desktop file override the init file > settings. ..but the font configuration is not matter that desktop file should handle.. desktop file could override what isn't yet in the init file but not what it has.. otherwise which is the role of init file? In any case, it seems we are wasting our time. If you think this behavior is OK, leave as it is. As I wrote, I will continue to regenerate the desktop file when I will find these kind of "issues" because for me this is the best and clean solution. Thanks, Angelo. PS. Just for the record, this init file is sufficient to have the new font in the first frame restored by desktop file: $ cat init.el (add-to-list 'initial-frame-alist '(font . "Source Code Pro 13")) (add-to-list 'default-frame-alist '(font . "Source Code Pro 13")) (setq desktop-base-file-name "~/.emacs.d/desktop") (setq desktop-base-lock-name "~/.emacs.d/desktop.lock") (desktop-save-mode 1)