From c969fbd40bcad0de6322895a5ad4d53144309315 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Tue, 17 Apr 2018 22:20:28 +0900 Subject: [PATCH] * lisp/textmodes/artist.el (artist-mode): Ensure we have a font --- lisp/textmodes/artist.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index 7c261f8d2d1..e9ae6a4ce97 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el @@ -1402,8 +1402,9 @@ Keymap summary (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 () -- 2.39.5