From: Tino Calancha Date: Tue, 17 Apr 2018 13:20:28 +0000 (+0900) Subject: * lisp/textmodes/artist.el (artist-mode): Ensure we have a font X-Git-Tag: emacs-27.0.90~5162 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c969fbd40bcad0de6322895a5ad4d53144309315;p=emacs.git * lisp/textmodes/artist.el (artist-mode): Ensure we have a font --- 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 ()