From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.devel Subject: `font-spec` unable to retrieve :name of font Date: Tue, 13 Oct 2015 13:13:46 +1100 Message-ID: <87bnc3plb9.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1444702450 26406 80.91.229.3 (13 Oct 2015 02:14:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 02:14:10 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 13 04:14:03 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Zlp6H-0006Ii-O8 for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2015 04:14:01 +0200 Original-Received: from localhost ([::1]:59968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlp6G-0002hJ-D4 for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 22:14:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlp6C-0002hC-Bt for emacs-devel@gnu.org; Mon, 12 Oct 2015 22:13:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlp69-0001ye-6r for emacs-devel@gnu.org; Mon, 12 Oct 2015 22:13:56 -0400 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:36428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlp69-0001xo-0o for emacs-devel@gnu.org; Mon, 12 Oct 2015 22:13:53 -0400 Original-Received: by pacex6 with SMTP id ex6so4982350pac.3 for ; Mon, 12 Oct 2015 19:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=m3j8vFJDgwb7mEaZixGavd/Z4Gzp6wIeKVCX18oSd7Q=; b=jkdzhrGEE5MHXwAs3Oiqj8gWqK+vutRi69ivT4vn1bPLfA9jZBML/fLMSqzpz2ask3 9YQZE9McvwiA4o21WhXRTHdaD8Qf25oGlWqkOTorLicV5t/C9q9gkSCLuS1n1leoFKR7 E/FF2P0IulwAMYVbmiwT5TBQLHTx0MD0Rw+42JtxbNkBuMVzpVb6JEmGz6McS0jD3FIE VKUM0+083FoRNN5XX69ROum8Y0DIvW4CE+YAGocZ9lzm5yqc5ciTWZ2r8YsNQALMFgXA MF4dck6ktVaKrYr7xN4qe8ylHExMENKRXmuc962H2ckuJd7PpCNr00UeuOos17/0ur+S sBMA== X-Received: by 10.68.142.42 with SMTP id rt10mr17067018pbb.14.1444702431973; Mon, 12 Oct 2015 19:13:51 -0700 (PDT) Original-Received: from localhost (CPE-58-161-15-29.cqqy2.win.bigpond.net.au. [58.161.15.29]) by smtp.gmail.com with ESMTPSA id ot8sm476339pbb.26.2015.10.12.19.13.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 19:13:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191421 Archived-At: Hi all, Having tried various alternatives, i now use Inconsolata-g as my preferred general Emacs font: http://leonardo-m.livejournal.com/77079.html using Xft as my Emacs font backend. In trying to use the `company-quickhelp` package, however, i discovered that it wasn't working due to a call to `pos-tip-show`, which in turn essentially calls: (font-spec :name (frame-parameter (window-frame (selected-window)) 'font)) This call results in: (error "Invalid font name: -unknown-Inconsolata-g-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1") which is, of course, due to the dash in the font name; the X Logical Font Description Conventions: http://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/XLFD/xlfd.html#fontname_syntax exclude the dash/hyphen as a valid in-field character. What, if anything, can be done about this? Should this be considered a bug, or "working as intended"? Alexis.