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 13:51:17 -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> <87ppj9d2d7.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 1400533289 27970 80.91.229.3 (19 May 2014 21:01:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2014 21:01:29 +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 23:01:22 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 1WmUgR-0002s5-VG for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2014 23:01:20 +0200 Original-Received: from localhost ([::1]:50185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUXE-00027L-LT for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2014 16:51:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUWv-000274-PA for help-gnu-emacs@gnu.org; Mon, 19 May 2014 16:51:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmUWm-00011T-Ql for help-gnu-emacs@gnu.org; Mon, 19 May 2014 16:51:29 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmUWm-00011K-Jp for help-gnu-emacs@gnu.org; Mon, 19 May 2014 16:51:20 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4JKpIR3013260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 May 2014 20:51:19 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4JKpI7K018048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 19 May 2014 20:51:18 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 s4JKpHTI018033; Mon, 19 May 2014 20:51:17 GMT In-Reply-To: <87ppj9d2d7.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: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:97762 Archived-At: > >> 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? >=20 > Yes, but only temporarily. If I repeat, next time the scratch is back to > default mono. You mean next time you start Emacs? Yes, of course it is, since that menu item affects only the current session. But the question was whether the font you see is in fact bitstream Courier 10 pitch. IOW, did it work? > >> If I then click "Save Options", I get the > >> warning: "Saving options from 'emacs -q' would overwrite existing > >> configutations". I don't understand. > > > > 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. >=20 > ? I thought to specify an init file you had to use the syntax: > emacs -q -l . emacs -q does not load any init file. The warning is telling you that you cannot save changes to your init file. That's all. > But as I demonstrated above, I get this warning when I am using an init > file (emacs -q -l .emacs-test).=20 That's not using an init file. That's just starting without an init file and then loading a file - any file you specify. That file is not considered your init file by Emacs. As far as Emacs is concerned, it knows init file to write customizations to. > > M-: (face-font 'default) >=20 > This shows the courier bitstream font. "-bitstream-Courier 10 > Pitch-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1" (line break only > here). I can't Save Options until after I've resaved the test file > itself. Which seems to be the same as the font you tried before, except it is 15 instead of 16. (I assume that you left a space between10 and pitch.) > > 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. Did you try it, i.e., 15 instead of 16? If not, try it. Maybe that is the only problem. > > IOW, this is a font name that works - perhaps > > the name you were trying before is not correct. >=20 > In .emacs-test I write the two lines: >=20 > (set-face-attribute > '(default ((t (:family "Courier 10 Pitch" :foundry "bitstream" :slant > normal :weight normal :height 113 :width normal))))) [line break only in > this message] Just try it the same way you tried before, but using 15 instead of 16. You don't seem to be paying much attention to the functions you are using. See the doc of `set-face-attribute'. Just do what you did previously. > The produces an error. A lot of hex/? garbage (204V^@...), but including > "[args frame foundary family spec where purecopy 0 nil (0t) ..)" See above - you did not use `set-face-attribute' correctly.