From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23366: 25.0.93; Custom font still not saved Date: Mon, 25 Apr 2016 10:38:51 +0300 Message-ID: <834maq3zp0.fsf@gnu.org> References: <1177F104-BBC7-4CB2-B98F-63C3F4366955@telefonica.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1461570022 32130 80.91.229.3 (25 Apr 2016 07:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2016 07:40:22 +0000 (UTC) Cc: 23366@debbugs.gnu.org To: PEDRO ANDRES ARANDA GUTIERREZ Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 25 09:40:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aub7q-0005UI-54 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Apr 2016 09:40:10 +0200 Original-Received: from localhost ([::1]:58354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aub7p-0004uO-BX for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Apr 2016 03:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aub7l-0004iz-Gr for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 03:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aub7i-00077J-B2 for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 03:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aub7i-00077F-7w for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 03:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aub7i-0007SY-11 for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 03:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Apr 2016 07:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23366 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23366-submit@debbugs.gnu.org id=B23366.146156996328595 (code B ref 23366); Mon, 25 Apr 2016 07:40:01 +0000 Original-Received: (at 23366) by debbugs.gnu.org; 25 Apr 2016 07:39:23 +0000 Original-Received: from localhost ([127.0.0.1]:45545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aub75-0007R7-3X for submit@debbugs.gnu.org; Mon, 25 Apr 2016 03:39:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aub73-0007Qr-Hj for 23366@debbugs.gnu.org; Mon, 25 Apr 2016 03:39:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aub6v-00073s-7f for 23366@debbugs.gnu.org; Mon, 25 Apr 2016 03:39:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aub6v-00073o-46; Mon, 25 Apr 2016 03:39:13 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4691 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aub6u-0006wd-93; Mon, 25 Apr 2016 03:39:12 -0400 In-reply-to: <1177F104-BBC7-4CB2-B98F-63C3F4366955@telefonica.com> (message from PEDRO ANDRES ARANDA GUTIERREZ on Mon, 25 Apr 2016 06:00:18 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116787 Archived-At: > From: PEDRO ANDRES ARANDA GUTIERREZ > Date: Mon, 25 Apr 2016 06:00:18 +0000 > > Already reported in 25.0.92. Could you please point out where this was reported? I couldn't find it. > I set the custom file according to the OS I'm running emacs on, using the following code: > > (defun window-system-name() > (if (display-graphic-p) > (cond > ((eq system-type 'gnu/linux) "x") > ((eq system-type 'darwin) "mac") > ((eq system-type 'berkeley-unix) "bsd") > (t (progn (error "Unsupported window-system") nil))) > "nox")) > (setq window-environment (window-system-name)) > (setq custom-file (format "~/.emacs.d/%s-custom.el" window-environment)) > (load custom-file 'noerror) > > When I set the font through > Options->Set Default Font > The font will be changed for the session. However, when I try to save it with > Options->Save Options > > It will not be saved in .emacs.d/$SYSTEM-custom.el > > Actually, the custom-set-faces command will be empty. Happens on all systems. I cannot reproduce this on my system (MS-Windows) with the latest emacs-25 branch and with stock Emacs 25.0.93. When I set custom-file to some file name, then select "Set Default Font" from the menu bar, and finally click "Options->Save Options", I see a message in the echo area saying that the custom-file was written (it shows the exact name I set custom-file to), and in the custom-file I see this part: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "Arial Unicode MS" :foundry "outline" :slant normal :weight normal :height 98 :width normal))))) (Arial Unicode MS is the font I selected.) So there's something else in your customizations or your init files that prevents this from working. Please look closer at those customizations and try to find the culprit. Thanks.