all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 16815@debbugs.gnu.org
Subject: bug#16815: 24.3.50; Provide completion for `describe-font' (enhancement request)
Date: Sat, 02 Nov 2019 17:23:01 +0100	[thread overview]
Message-ID: <87d0eadz8a.fsf@gnus.org> (raw)
In-Reply-To: <831t5ow76o.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 29 Apr 2016 22:23:11 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> This is what I use, FWIW:
>> 
>> (let ((fonts        (make-hash-table :test #'equal))
>>       (fontset-lst  (fontset-list)))
>>   (setq fontset-lst  (delete "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default"
>>                              fontset-lst))
>>   (dolist (ft  (append fontset-lst (x-list-fonts "*"))  fonts)
>>     (puthash ft t fonts)))
>
> IMO, this is madness: you are bloating the Emacs session with hundreds
> of fonts, most of which Emacs will never need to use, or even know
> about.  We certainly shouldn't do anything like that in Emacs.
>
> The doc string of describe-font clearly says that the font must be one
> which Emacs already loaded, so completing on all the _installed_ fonts
> is definitely not TRT.

I'm not sure I understand the objection here.  The form suggested by
Drew just gets a list of font names -- it doesn't load anything, so it
should be harmless?

And the doc string of describe-font seems to be wrong.  You can ask it
to describe a font that's not loaded.  Or at least it seems that way
when I test it.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-11-02 16:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19 21:03 bug#16815: 24.3.50; Provide completion for `describe-font' (enhancement request) Drew Adams
2016-04-29 17:35 ` Lars Ingebrigtsen
2016-04-29 18:39   ` Drew Adams
2016-04-29 19:23     ` Eli Zaretskii
2019-11-02 16:23       ` Lars Ingebrigtsen [this message]
2019-11-02 17:25         ` Eli Zaretskii
2019-11-03 15:33           ` Lars Ingebrigtsen
     [not found]   ` <<640c1da6-43a2-4c50-b50f-675f0b316b8b@default>
     [not found]     ` <<831t5ow76o.fsf@gnu.org>
2016-04-29 19:33       ` Drew Adams

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=87d0eadz8a.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=16815@debbugs.gnu.org \
    --cc=eliz@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.
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.