From: João Távora Date: Thu, 6 Dec 2018 12:50:07 +0000 (+0000) Subject: Keep Flymake compatible with Emacs 26.1 builds --without-x X-Git-Tag: emacs-27.0.90~4045 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e8b8115386570ce186eea349ae937dbccbd61ed;p=emacs.git Keep Flymake compatible with Emacs 26.1 builds --without-x * lisp/progmodes/flymake.el (flymake-double-exclamation-mark): Don't define if 'define-fringe-bitmap isn't fbound. (Version): Bump to 1.0.2 --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index cbbb4d0dcb6..ad8f50cd7a5 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -4,7 +4,7 @@ ;; Author: Pavel Kobyakov ;; Maintainer: João Távora -;; Version: 1.0.1 +;; Version: 1.0.2 ;; Package-Requires: ((emacs "26.1")) ;; Keywords: c languages tools @@ -220,24 +220,25 @@ Specifically, start it when the saved buffer is actually displayed." :version "26.1" :type 'boolean) -(define-fringe-bitmap 'flymake-double-exclamation-mark - (vector #b00000000 - #b00000000 - #b00000000 - #b00000000 - #b01100110 - #b01100110 - #b01100110 - #b01100110 - #b01100110 - #b01100110 - #b01100110 - #b01100110 - #b00000000 - #b01100110 - #b00000000 - #b00000000 - #b00000000)) +(when (fboundp 'define-fringe-bitmap) + (define-fringe-bitmap 'flymake-double-exclamation-mark + (vector #b00000000 + #b00000000 + #b00000000 + #b00000000 + #b01100110 + #b01100110 + #b01100110 + #b01100110 + #b01100110 + #b01100110 + #b01100110 + #b01100110 + #b00000000 + #b01100110 + #b00000000 + #b00000000 + #b00000000))) (defvar-local flymake-timer nil "Timer for starting syntax check.")