From: David Reitter <david.reitter@gmail.com>
To: 2845@emacsbugs.donarmstrong.com,
"Alberto Simões" <albie@alfarrabio.di.uminho.pt>
Subject: bug#2845: 23.0.91; NS: 'Set Default Font' not preserved
Date: Tue, 28 Apr 2009 09:21:53 -0400 [thread overview]
Message-ID: <1FC793E4-A94D-48AD-B9B8-5F7D8AB62B51@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
Hello Alberto,
> I have an emacs built from cvs (one week old, probably) for MacOS
> (NS). I am trying to use the Options > Set Default Font Followed by
> Options > Save Options to change the default emacs font (size).
Does the following bit of code solve the problem for you?
(defun ns-respond-to-change-font ()
"Respond to changeFont: event, expecting ns-input-font and\n\
ns-input-fontsize of new font."
(interactive)
(let ((face 'default))
(set-face-attribute face t
:family ns-input-font
:height (* 10 ns-input-fontsize))
(set-face-attribute face (selected-frame)
:family ns-input-font
:height (* 10 ns-input-fontsize))
(let ((spec
(list (list t (face-attr-construct 'default)))))
(put face 'customized-face spec)
(custom-push-theme 'theme-face face 'user 'set spec)
(put face 'face-modified nil))))
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
next reply other threads:[~2009-04-28 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 13:21 David Reitter [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-04-01 20:27 bug#2845: 23.0.91; NS: 'Set Default Font' not preserved Alberto Simões
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1FC793E4-A94D-48AD-B9B8-5F7D8AB62B51@gmail.com \
--to=david.reitter@gmail.com \
--cc=2845@emacsbugs.donarmstrong.com \
--cc=albie@alfarrabio.di.uminho.pt \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.