From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: setting default font name Date: Mon, 19 May 2014 08:45:07 -0700 (PDT) Message-ID: References: <87egzrz5c2.fsf@bach.histomat.net> <87a9aezt9m.fsf@bach.histomat.net> <87y4xyc9ee.fsf@bach.histomat.net> <87tx8ldd20.fsf@bach.histomat.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1400514370 31225 80.91.229.3 (19 May 2014 15:46:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2014 15:46:10 +0000 (UTC) To: Haines Brown , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 19 17:46:02 2014 Return-path: Envelope-to: geh-help-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 1WmPlF-00038E-2c for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2014 17:45:57 +0200 Original-Received: from localhost ([::1]:48784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmPlE-0000R5-Js for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2014 11:45:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmPke-0000QD-K7 for help-gnu-emacs@gnu.org; Mon, 19 May 2014 11:45:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmPkV-0001wz-Ax for help-gnu-emacs@gnu.org; Mon, 19 May 2014 11:45:20 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:24430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmPkV-0001wt-3T for help-gnu-emacs@gnu.org; Mon, 19 May 2014 11:45:11 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4JFj9NV021657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 May 2014 15:45:09 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4JFj8Vv012695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 19 May 2014 15:45:08 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4JFj7XB026983; Mon, 19 May 2014 15:45:07 GMT In-Reply-To: <87tx8ldd20.fsf@bach.histomat.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97759 Archived-At: > > Do you have that bitstream font installed? >=20 > Good question. I assumed I did because in emacs menu, I can go to > Options, Set Default font, and choose the bitstream font for a > document. That document keeps that font when reopened. So you see Emacs change to use that font, as you wanted. It does not change to some other font. Right? > > What do you see in buffer *Messages* about this - anything? >=20 > No. >=20 > > What happens if you use `emacs -Q' and you evaluate the sexp > > in *scratch*, instead of putting it in an otherwise empty init > > file? >=20 > It returns "nil" on next line. I'm not familiar with lisp evaluation and > so don't know what the nil means. No errors? nil is the value returned by evaluating the expression - unimportant in this case. The question is whether your default font actualy changed. To test that, do `C-x 5 2' to open a new frame showing the same buffer. If the default font was changed to what you want then that frame should show the new font. > If I open emacs -Q the font used for the scratch buffer header is Deju > Sans. I can go to Options, Set Default Font, and change the header to > bitstream Courier 10 pitch. And does that change visibly to the font you want? > If I then click "Save Options", I get the > warning: "Saving options from 'emacs -q' would overwrite existing > configutations". I don't understand.=20 When you use `emacs -q' you are not using your init file, which is where Emacs would normally save any changes. Ignore this warning, and do not try to save such changes if you started without your init file. If the tests you mention above actually show a change to the font you want, then, in a window that shows that font is used, do this: M-: (face-font 'default) That will show you the string that is the font name for face `default', which is the same thing as the default font name. If this string is not the same as the string you were trying earlier, try this one instead. IOW, this is a font name that works - perhaps the name you were trying before is not correct. If this does not help, perhaps someone else can help.