From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16815: 24.3.50; Provide completion for `describe-font' (enhancement request) Date: Fri, 29 Apr 2016 11:39:59 -0700 (PDT) Message-ID: <640c1da6-43a2-4c50-b50f-675f0b316b8b@default> References: <81893506-7c6d-4c9c-8adf-033481209335@default> <8760v0z5bh.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461955303 3351 80.91.229.3 (29 Apr 2016 18:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 18:41:43 +0000 (UTC) Cc: 16815@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 20:41:30 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 1awDM1-0001fx-Q4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 20:41:29 +0200 Original-Received: from localhost ([::1]:55873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awDLx-0005oY-QL for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 14:41:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awDLp-0005aj-Jr for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 14:41:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awDLe-0003Ug-2X for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 14:41:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awDLd-0003Su-VI for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 14:41:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awDLa-0004VZ-JH for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 14:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2016 18:41: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.146195521217267 (code B ref 16815); Fri, 29 Apr 2016 18:41:02 +0000 Original-Received: (at 16815) by debbugs.gnu.org; 29 Apr 2016 18:40:12 +0000 Original-Received: from localhost ([127.0.0.1]:55791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awDKm-0004UQ-5b for submit@debbugs.gnu.org; Fri, 29 Apr 2016 14:40:12 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:16539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awDKk-0004UC-GH for 16815@debbugs.gnu.org; Fri, 29 Apr 2016 14:40:10 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3TIe4xZ009479 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Apr 2016 18:40:04 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u3TIe4w6022124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Apr 2016 18:40:04 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u3TIe172031807; Fri, 29 Apr 2016 18:40:03 GMT In-Reply-To: <8760v0z5bh.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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:117242 Archived-At: > Hm... would that be completion over this? >=20 > (fontset-list) > =3D> > ("-DAMA-Ubuntu Mono-normal-normal-normal-*-24-*-*-*-m-0-fontset-startup" > "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard" "-*-*-*-*-*-*- > *-*-*-*-*-*-fontset-default") No. That is a list of fontsets, not fonts. The completion candidates should be the installed fonts. 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)))