unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: 1804@emacsbugs.donarmstrong.com,
	Benjamin Smith-Mannschott <bsmith.occs@gmail.com>
Subject: bug#1804: 23.0.60; (with-ns) application preferences should be global
Date: Tue, 28 Apr 2009 09:25:36 -0400	[thread overview]
Message-ID: <E79F3A56-3F46-4834-9072-2444B0977988@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

Ben,
> 7. Select a font 8. (nothing happens) 9. Click on a currently open  
> emacs frame (not the Preferences window). 10. (the Preferences  
> window loses keyboard focus) 11. Select a font (from the font panel)  
> 12. (The font of the currently focused frame will change.) 13. (The  
> font of the second frame will not change.)

I don't think that the font panel should apply globally (at least not  
in GNU Emacs); also because it gives the user less control.
However, it should set the font for future frames, because there is no  
other way to set that through the GUI (w/o customization buffer).   
Perhaps that would serve as a working compromise.  For that, try the  
code below.

(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 --]

             reply	other threads:[~2009-04-28 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28 13:25 David Reitter [this message]
     [not found] ` <28c656e20905040911x1727f966o2fc48788995e0034@mail.gmail.com>
2009-05-04 16:20   ` bug#1804: 23.0.60; (with-ns) application preferences should be global David Reitter
  -- strict thread matches above, loose matches on Subject: below --
2009-01-06 13:13 B. Smith-Mannschott

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=E79F3A56-3F46-4834-9072-2444B0977988@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=1804@emacsbugs.donarmstrong.com \
    --cc=bsmith.occs@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).