From: Lars Ingebrigtsen Date: Mon, 16 Apr 2018 19:20:08 +0000 (+0200) Subject: (artist-mode): Warn about proportional fonts X-Git-Tag: emacs-27.0.90~5166 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=36e5673753b985dee06b255be237dce9e96b0eb7;p=emacs.git (artist-mode): Warn about proportional fonts * lisp/textmodes/artist.el (artist-mode): Warn about proportional fonts (bug#24175). --- diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index af7bcc77cdf..7c261f8d2d1 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el @@ -1401,7 +1401,9 @@ Keymap summary (artist-mode-exit)) (t ;; Turn mode on - (artist-mode-init)))) + (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"))))) ;; Init and exit (defun artist-mode-init ()