unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Haines Brown <haines@histomat.net>
To: help-gnu-emacs@gnu.org
Subject: Re: setting default font name
Date: Mon, 19 May 2014 11:05:11 -0400	[thread overview]
Message-ID: <87tx8ldd20.fsf@bach.histomat.net> (raw)
In-Reply-To: mailman.1604.1400507269.1147.help-gnu-emacs@gnu.org

Drew Adams <drew.adams@oracle.com> 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


  parent reply	other threads:[~2014-05-19 15:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-18 11:36 setting default font name Haines Brown
2014-05-18 13:35 ` Drew Adams
     [not found] ` <mailman.1565.1400420140.1147.help-gnu-emacs@gnu.org>
2014-05-18 21:11   ` Haines Brown
2014-05-18 21:57     ` Michael Heerdegen
2014-05-18 22:03     ` Drew Adams
     [not found]     ` <mailman.1582.1400450623.1147.help-gnu-emacs@gnu.org>
2014-05-19 11:09       ` Haines Brown
2014-05-19 13:47         ` Drew Adams
     [not found]         ` <mailman.1604.1400507269.1147.help-gnu-emacs@gnu.org>
2014-05-19 15:05           ` Haines Brown [this message]
2014-05-19 15:45             ` Drew Adams
     [not found]             ` <mailman.1615.1400514331.1147.help-gnu-emacs@gnu.org>
2014-05-19 18:56               ` Haines Brown
2014-05-19 20:51                 ` Drew Adams
     [not found]                 ` <mailman.1639.1400532700.1147.help-gnu-emacs@gnu.org>
2014-05-20 10:14                   ` Jacob Gerlach
2014-05-20 10:58                     ` Haines Brown
2014-05-19 19:30 ` Hans BKK
2014-05-20 13:32 ` Hans BKK

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tx8ldd20.fsf@bach.histomat.net \
    --to=haines@histomat.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).