emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8e8b811: Keep Flymake compatible with Emacs 26.1 bu


From: João Távora
Subject: [Emacs-diffs] master 8e8b811: Keep Flymake compatible with Emacs 26.1 builds --without-x
Date: Thu, 6 Dec 2018 07:51:42 -0500 (EST)

branch: master
commit 8e8b8115386570ce186eea349ae937dbccbd61ed
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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
---
 lisp/progmodes/flymake.el | 39 ++++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 19 deletions(-)

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index cbbb4d0..ad8f50c 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -4,7 +4,7 @@
 
 ;; Author:  Pavel Kobyakov <address@hidden>
 ;; Maintainer: João Távora <address@hidden>
-;; 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.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]