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: About desktop file Date: Sun, 11 Sep 2016 10:31:41 +0200 Message-ID: <3fe8a676-ba8c-cb76-2b65-de931073d5ca@alice.it> 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 1473582763 28514 195.159.176.226 (11 Sep 2016 08:32:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2016 08:32:43 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 11 10:32:40 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 1bj0Bn-0006GD-6A for ged-emacs-devel@m.gmane.org; Sun, 11 Sep 2016 10:32:35 +0200 Original-Received: from localhost ([::1]:36916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj0Bl-0003MG-5I for ged-emacs-devel@m.gmane.org; Sun, 11 Sep 2016 04:32:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj0BD-0003M9-QI for emacs-devel@gnu.org; Sun, 11 Sep 2016 04:32:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj0BA-0007wU-Lp for emacs-devel@gnu.org; Sun, 11 Sep 2016 04:31:59 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:33184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj0BA-0007vj-Ac for emacs-devel@gnu.org; Sun, 11 Sep 2016 04:31:56 -0400 Original-Received: from [192.168.1.100] (82.59.177.20) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 57C3F8F402A5FABB for emacs-devel@gnu.org; Sun, 11 Sep 2016 10:31:54 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 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:207361 Archived-At: The 'desktop' file is very useful but sometimes it remembers too many things.. Suppose I am using "foo" font in my init.el file: (set-face-attribute 'default nil :font "foo 13" ) (set-frame-font "foo 13" nil t) and that I am working with many buffers. Now suppose I change the font to use 'bar' font: (set-face-attribute 'default nil :font "bar13" ) (set-frame-font "bar 13" nil t) When I restart Emacs, it loads the buffers with the old 'foo' font. Usually, to have the buffers with the new font, I remove the desktop file and reload manually the working buffers. Is there a way to do this differently? My opinion is that desktop file should remember cursor position, working buffers, their visiting modes, searched word, frame geometry-position etc. not the font how buffers are displayed and similar. Ciao, Angelo.