From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Haines Brown Newsgroups: gmane.emacs.help Subject: Re: setting default font name Date: Mon, 19 May 2014 11:05:11 -0400 Message-ID: <87tx8ldd20.fsf@bach.histomat.net> References: <87egzrz5c2.fsf@bach.histomat.net> <87a9aezt9m.fsf@bach.histomat.net> <87y4xyc9ee.fsf@bach.histomat.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1400512232 23580 80.91.229.3 (19 May 2014 15:10:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2014 15:10:32 +0000 (UTC) To: 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:10:25 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 1WmPCr-0002hi-0d for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2014 17:10:25 +0200 Original-Received: from localhost ([::1]:48647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmPCq-0004LC-Go for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2014 11:10:24 -0400 X-Received: by 10.182.104.200 with SMTP id gg8mr3485648obb.45.1400511912306; Mon, 19 May 2014 08:05:12 -0700 (PDT) Original-Path: usenet.stanford.edu!c1no10558784igq.0!news-out.google.com!qf4ni5478igc.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 19 May 2014 10:05:11 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:aB38w7e8R0QTwUjDXsgQR5ocW8I= Original-Lines: 56 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-36VSkhH6oKku+SEK1UOGmT0VJPb01onK3aSnpq781Qh72Mts2+xmn3zKLCiDdVbO6rDIlEmFv2htqTS!2SOtPG9eIu/ND1rYyjPTGr/oX+PcacyH/47t+uQxVdXutAusSb+14l8gc20= Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3270 Original-Xref: usenet.stanford.edu gnu.emacs.help:205489 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:97758 Archived-At: Drew Adams writes: >> To avoid any "default-font" in the remainder of the init file I created >> a little test situation. I run: >> >> $ emacs -q -l .emacs-test >> >> and in .emacs-test is nothing but: >> >> (set-face-attribute >> 'default t :font >> "-bitstream-Courier 10 >> Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1") >> >> When emacs opens, I do M-x describe font and am told the current font is >> Deju Sans. > > (I assume there was no newline char in the middle of that > font name, in your test.) That break was an artifact of a line wrap in the message I sent you. The font name not broken in the init file. I should have said something. > So you didn't get the error you reported earlier. No, that is correct. In the init file I was using, there was burried a "default-font" variable. That's why I moved to a clean elementary init. > Do you have that bitstream font installed? 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. > What do you see in buffer *Messages* about this - anything? No. > What happens if you use `emacs -Q' and you evaluate the sexp > in *scratch*, instead of putting it in an otherwise empty init > file? It returns "nil" on next line. I'm not familiar with lisp evaluation and so don't know what the nil means. No errors? 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. If I then click "Save Options", I get the warning: "Saving options from 'emacs -q' would overwrite existing configutations". I don't understand. What existing configurations? Is it simply saying that henceforth the scratch buffer will use the bitstream font? But in fact it does not, for next time it is opened it uses the Sans. Haines