GNU bug report logs - #16815
24.3.50; Provide completion for `describe-font' (enhancement request)

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 19 Feb 2014 21:05:02 UTC

Severity: wishlist

Tags: fixed

Found in version 24.3.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 16815 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: bug#16815: 24.3.50; Provide completion for `describe-font' (enhancement request)
Date: Sat, 02 Nov 2019 17:23:01 +0100
Eli Zaretskii <eliz <at> 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




This bug report was last modified 5 years and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.