unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Herbert Euler <herberteuler@hotmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: A suggestion on `x-select-font'
Date: Fri, 27 Jun 2008 10:16:02 +0100	[thread overview]
Message-ID: <4864AFD2.9020301@gnu.org> (raw)
In-Reply-To: <BAY143-W8CAFEC0DAB327B1F15F75DAA20@phx.gbl>

Herbert Euler wrote:

> The attached patch does what I suggested: It makes the font chooser in
> Emacs more like other X appications by setting the user selected font
> in the font chooser dialog.  There are several problems in it, though:

These problems might be avoided by making x-select-font take the default
selection as an argument. Actually I suggest the following signature:

(defun x-select-font (&optional frame default-font must-match)

Where default font is a font-spec/entity/object to use as the initial
selection, and must-match is a font-spec for filtering the list of
available fonts (eg by specifiying charset, fixed width fonts only,
bold, italic etc).





  reply	other threads:[~2008-06-27  9:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24  2:48 A suggestion on `x-select-font' Herbert Euler
2008-06-24  7:27 ` Herbert Euler
2008-06-27  8:50   ` Herbert Euler
2008-06-27  9:16     ` Jason Rumney [this message]
2008-06-27 10:52       ` Herbert Euler

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=4864AFD2.9020301@gnu.org \
    --to=jasonr@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=herberteuler@hotmail.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).