From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Nikishkin Newsgroups: gmane.emacs.bugs 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: Tue, 21 May 2019 09:56:51 +0800 Message-ID: <87v9y4o9i4.fsf@delllaptop.lockywolf.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="35908"; mail-complaints-to="usenet@blaine.gmane.org" To: 35816@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 21 04:07:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSuBO-0009D8-Il for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 May 2019 04:07:14 +0200 Original-Received: from localhost ([127.0.0.1]:45068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSuBN-0002zH-GH for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 May 2019 22:07:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSuBD-0002y0-MU for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSuBC-0003LA-7P for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSuBC-0003L1-41 for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSuBB-0001KE-To for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Nikishkin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 May 2019 02:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35816 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15584044135069 (code B ref -1); Tue, 21 May 2019 02:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 May 2019 02:06:53 +0000 Original-Received: from localhost ([127.0.0.1]:38377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSuB3-0001Jg-0R for submit@debbugs.gnu.org; Mon, 20 May 2019 22:06:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSuB0-0001JR-15 for submit@debbugs.gnu.org; Mon, 20 May 2019 22:06:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hSuAu-0003B9-V5 for submit@debbugs.gnu.org; Mon, 20 May 2019 22:06:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSuAt-0002oy-9C for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:06:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSuAr-00039R-Ri for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:06:43 -0400 Original-Received: from [223.104.5.203] (port=65191 helo=delllaptop.lockywolf.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSuAr-00037k-2r for bug-gnu-emacs@gnu.org; Mon, 20 May 2019 22:06:41 -0400 Original-Received: by delllaptop.lockywolf.net (Postfix, from userid 1000) id A9458E889D0; Tue, 21 May 2019 09:56:51 +0800 (CST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 209.51.188.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:159600 Archived-At: It is not possible to set some XLFD fonts by just using Emacs autocomplete. How to reproduce: 1)Install GNU-Unifont (a free font supporting almost all Unicode) 2)M-x set-frame-font RET 3)- M-i , and make Emacs suggest the Unifont size 16 4)RET, and observe that Emacs canot set this font, because it thinks that 'xlfd' has 15 elements rather than 14 (a hyphen in the font name being interpreted as an xlfd separator) This bug is also observed here: https://emacs.stackexchange.com/questions/50234/why-cant-emacs-get-a-font-that-it-can-list-among-the-fonts In GNU Emacs 26.2 (build 1, x86_64-slackware-linux-gnu, GTK+ Version 3.24.8) of 2019-04-13 built on hive64.slackware.lan Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 Recent messages: Making completion list... [12 times] set-face-attribute: Invalid font name: "-PfEd-HanWang SinSongThin-Gb5-normal-normal-condensed-*-*-*-*-*-*-0-iso10646-1" Making completion list... [2 times] scroll-down-command: Beginning of buffer Overwrite mode enabled in current buffer Overwrite mode disabled in current buffer Saving file /home/lockywolf/.emacs... Wrote /home/lockywolf/.emacs ((font . "-PfEd-HanWangHeiLight-normal-normal-normal-*-*-*-*-*-*-0-iso10646-1") (font . "DejaVu Sans Mono-12") (fullscreen . maximized)) completing-read-default: Command attempted to use minibuffer while in minibuffer Quit Configured using: 'configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix= --program-suffix= --mandir=/usr/man --infodir=/usr/info --without-gconf --without-gsettings --with-x --with-x-toolkit=gtk3 --build=x86_64-slackware-linux 'CFLAGS=-O2 -fPIC'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 Important settings: value of $LC_COLLATE: C value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t global-flycheck-mode: t flycheck-mode: t global-auto-revert-mode: t electric-pair-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t global-hi-lock-mode: t hi-lock-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-layout-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug face-remap apropos doc-view image-mode vc vc-dispatcher repeat iso-transl warnings compile autoload cus-edit cus-start cus-load lisp-mnt pp descr-text mule-diag cl-print info-look pcase url-file url-dired mm-archive message rfc822 mml mml-sec epa derived mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode epg shr-color color network-stream url-http tls gnutls mail-parse rfc2231 url-gw nsm rmc url-cache url-auth eww puny mm-url gnus nnheader gnus-util rmail rmail-loaddefs wid-edit url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap shr svg xml dom browse-url format-spec mail-extr dired-aux dired dired-loaddefs imenu disp-table view woman man misearch multi-isearch shell pcomplete comint ansi-color ring time-stamp tabify rect table jka-compr sh-script smie executable eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree foldout noutline outline conf-mode vc-git diff-mode easy-mmode flycheck-plantuml plantuml-mode flycheck cl-extra json map find-func help-mode rx subr-x dash smtpmail sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils starttls autorevert filenotify elec-pair keywiz gamegrid diary-lib diary-loaddefs cal-menu calendar cal-loaddefs totd s display-line-numbers hi-lock mic-paren ffap thingatpt edmacro kmacro savehist desktop frameset geiser manoj-dark-theme finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 867113 87919) (symbols 48 54414 15) (miscs 40 4168 624) (strings 32 232203 28445) (string-bytes 1 11504103) (vectors 16 50293) (vector-slots 8 2173784 155796) (floats 8 386 1018) (intervals 56 57293 4535) (buffers 992 73)) -- -- Vladimir Nikishkin (MiEr, lockywolf)