[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master c969fbd: * lisp/textmodes/artist.el (artist-mode):
From: |
Tino Calancha |
Subject: |
[Emacs-diffs] master c969fbd: * lisp/textmodes/artist.el (artist-mode): Ensure we have a font |
Date: |
Tue, 17 Apr 2018 09:21:13 -0400 (EDT) |
branch: master
commit c969fbd40bcad0de6322895a5ad4d53144309315
Author: Tino Calancha <address@hidden>
Commit: Tino Calancha <address@hidden>
* 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 7c261f8..e9ae6a4 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 ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master c969fbd: * lisp/textmodes/artist.el (artist-mode): Ensure we have a font,
Tino Calancha <=