GNU bug report logs - #35816
26.2; set-frame-font cannot set some fonts which autocomplete suggests due to dashes in names. I.e. gnu-unifont

Previous Next

Package: emacs;

Reported by: Vladimir Nikishkin <lockywolf <at> gmail.com>

Date: Tue, 21 May 2019 02:07:01 UTC

Severity: normal

Found in version 26.2

Fixed in version 28.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: Vladimir Nikishkin <lockywolf <at> gmail.com>
Cc: 35816 <at> debbugs.gnu.org
Subject: bug#35816: 26.2; set-frame-font cannot set some fonts which autocomplete suggests due to dashes in names. I.e. gnu-unifont
Date: Wed, 11 Aug 2021 21:02:27 +0200
Vladimir Nikishkin <lockywolf <at> gmail.com> writes:

> It's wrong in that if you type RET, Emacs rejects it.

Right.  I'm unable to reproduce the problem, because Debian seems to be
very careful about not doing any fonts that have name bits containing
hyphens (presumably because they're invalid):

(dolist (font (x-list-fonts "*"))
  (when (length> (split-string font "-") 15)
    (insert (format "%s\n" font))))

If somebody can reproduce this on a different OS, that'd be nice.  I
guess one way of trying to deal with this would be to check whether we
have an excessive number of segments, and if we do, then guess that
those belong in the name of the font and then do some DWIM.

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




This bug report was last modified 3 years and 281 days ago.

Previous Next


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