From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16815: 24.3.50; Provide completion for `describe-font' (enhancement request) Date: Fri, 29 Apr 2016 22:23:11 +0300 Message-ID: <831t5ow76o.fsf@gnu.org> References: <81893506-7c6d-4c9c-8adf-033481209335@default> <8760v0z5bh.fsf@gnus.org> <640c1da6-43a2-4c50-b50f-675f0b316b8b@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1461957891 12355 80.91.229.3 (29 Apr 2016 19:24:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 19:24:51 +0000 (UTC) Cc: larsi@gnus.org, 16815@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 21:24:41 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awE1o-00063e-LL for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 21:24:40 +0200 Original-Received: from localhost ([::1]:55972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awE1k-000399-Om for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 15:24:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awE1a-0002rA-Ug for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:24:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awE1G-0001fZ-3q for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:24:21 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awE1G-0001cx-0k for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:24:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awE1C-00077N-LB for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2016 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16815-submit@debbugs.gnu.org id=B16815.146195783827344 (code B ref 16815); Fri, 29 Apr 2016 19:24:02 +0000 Original-Received: (at 16815) by debbugs.gnu.org; 29 Apr 2016 19:23:58 +0000 Original-Received: from localhost ([127.0.0.1]:55803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awE18-00076x-1P for submit@debbugs.gnu.org; Fri, 29 Apr 2016 15:23:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awE15-00076l-TF for 16815@debbugs.gnu.org; Fri, 29 Apr 2016 15:23:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awE0r-0001OE-8x for 16815@debbugs.gnu.org; Fri, 29 Apr 2016 15:23:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awE0r-0001Lo-5g; Fri, 29 Apr 2016 15:23:41 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4956 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1awE0l-0003Wx-2L; Fri, 29 Apr 2016 15:23:35 -0400 In-reply-to: <640c1da6-43a2-4c50-b50f-675f0b316b8b@default> (message from Drew Adams on Fri, 29 Apr 2016 11:39:59 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117245 Archived-At: > Date: Fri, 29 Apr 2016 11:39:59 -0700 (PDT) > From: Drew Adams > Cc: 16815@debbugs.gnu.org > > 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.