From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#31192: 27.0.50; artist-mode throws a wrong type argument Date: Tue, 17 Apr 2018 21:57:23 +0900 Message-ID: <87in8qj8i4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523969771 20345 195.159.176.226 (17 Apr 2018 12:56:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2018 12:56:11 +0000 (UTC) Cc: lars ingebrigtsen To: 31192@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 14:56:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8Q9V-00059V-LB for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2018 14:56:05 +0200 Original-Received: from localhost ([::1]:37242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8QBa-00040S-RE for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2018 08:58:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8QBU-000409-8E for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 08:58:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8QBP-00074Z-8h for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 08:58:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48950) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8QBP-00074U-4d for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 08:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8QBO-0007Jm-K3; Tue, 17 Apr 2018 08:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: larsi@gnus.org, bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Apr 2018 12:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: lars ingebrigtsen Original-Received: via spool by submit@debbugs.gnu.org id=B.152396987128108 (code B ref -1); Tue, 17 Apr 2018 12:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Apr 2018 12:57:51 +0000 Original-Received: from localhost ([127.0.0.1]:56847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8QBC-0007JE-7J for submit@debbugs.gnu.org; Tue, 17 Apr 2018 08:57:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8QB7-0007Iu-7x for submit@debbugs.gnu.org; Tue, 17 Apr 2018 08:57:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8QB1-0006uP-2y for submit@debbugs.gnu.org; Tue, 17 Apr 2018 08:57:40 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8QB0-0006uH-Vm for submit@debbugs.gnu.org; Tue, 17 Apr 2018 08:57:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8QAz-0003sv-KM for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 08:57:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8QAu-0006sT-LY for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 08:57:37 -0400 Original-Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:41858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8QAu-0006sD-DH for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 08:57:32 -0400 Original-Received: by mail-pg0-x234.google.com with SMTP id e13so336217pgq.8 for ; Tue, 17 Apr 2018 05:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=Gb1OdkifBC+UXSNbhCwnAxQKlVJ5UhK6YXtHF+FaVac=; b=fwqunSz7jzGsPjuE6bbYNlsxQRX4qEurX6pplW9YzZ42lzjIjLxvc5/VbEFgHxx64f x+ReUB3bdUzbvap6h4Y7+YgS0NkPqRgPM+nGipt7DWjNXo/jgCNIQ4d7RHbsY7NGOqnx mDRwZSAKh1V4pd6DF3ZjSCmdgrFv9cYugKzOvUed8SHuhsyXBo9v+n9RRpNpvktRqA8l 5YKzNbdNWhg/q1S84ISiQgm/6JXjG+9CgW8epwW4iCA06XbQu1S4Rdg+s1J61Mufxx5d 7A+3g6w22kHGiCPfJrKXooFelQqU7s2stvnq9z2VVXRtmgD/ibLXIOQqdi9TuhkFH0So sT6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Gb1OdkifBC+UXSNbhCwnAxQKlVJ5UhK6YXtHF+FaVac=; b=AoRRT6XzIYXH5VQ2c6JsnwO0oobjHAZyOjsjD+V2gbpzmX3nIT/qFsuBK//C/iE86j u4sMedKXE8K/rqAgFfzNeZmQ4L6rEQKId4duOg4ozYsY/p1JFFnSVXA9DZtUjOl4/3el 6Br52L6U6W18FyMa81WgAKpQeHpDeAgrhCja+jS43lrut4UuF2mbYxC6m8pqtfp77P6Y KGYzO3EYyj2KS1GgQ5Yu1NU5dQffA/GAYtWrH2kHXfL9Z3WyiAVTc0qVWQACsizD1xxN BFIS8iOQ/2U+rDRrM7sIe6eHmNgfMKts9JWt871YXnX78oxIIW2RN8U55wnc6oYGPCLi bUIA== X-Gm-Message-State: ALQs6tCizL7vVHIwu8hNHXbqSh0CjTI4h55tcEzqzsirrYmZgnoQMfwC 0C3u59neI8M3AaOFGYg+IZdbkw== X-Google-Smtp-Source: AIpwx4+Q+yUNJC20Gsw1Bed+adjcjIeUGij1iSCtF5gv/hNkbbqCEqKXqgvkdkMSdB6P52WYTxS0lQ== X-Received: by 10.99.110.4 with SMTP id j4mr1739362pgc.345.1523969851025; Tue, 17 Apr 2018 05:57:31 -0700 (PDT) Original-Received: from calancha-pc ([210.164.9.14]) by smtp.gmail.com with ESMTPSA id a4sm31176230pfj.107.2018.04.17.05.57.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Apr 2018 05:57:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 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:145485 Archived-At: X-Debbugs-CC: Lars Ingebrigtsen After commit '(artist-mode): Warn about proportional fonts' (36e5673753b985dee06b255be237dce9e96b0eb7) emacs -batch -eval "(artist-mode)" throws Wrong type argument: font, unspecified That causes two ibuffer-tests.el to fail: (ibuffer-filter-inclusion-7, ibuffer-filter-inclusion-8) --8<-----------------------------cut here---------------start------------->8--- commit 04f528b864490f22e773d185f2a4980b29306eb0 Author: Tino Calancha Date: Tue Apr 17 21:34:25 2018 +0900 * lisp/textmodes/artist.el (artist-mode): Ensure we have a font diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index 7c261f8d2d..e9ae6a4ce9 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el @@ -1402,8 +1402,9 @@ artist-mode (t ;; Turn mode on (artist-mode-init) - (unless (font-get (face-attribute 'default :font) :spacing) - (message "The default font isn't monospaced, so the drawings in this buffer may look odd"))))) + (let ((font (face-attribute 'default :font))) + (when (and (fontp font) (not (font-get font :spacing))) + (message "The default font isn't monospaced, so the drawings in this buffer may look odd")))))) ;; Init and exit (defun artist-mode-init () --8<-----------------------------cut here---------------end--------------->8--- In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-04-17 Repository revision: 003071346cdc914f28a8e8b3a8bf0c8f5f3b52dc