diff options
| author | João Távora | 2018-12-06 12:50:07 +0000 |
|---|---|---|
| committer | João Távora | 2018-12-06 12:51:16 +0000 |
| commit | 8e8b8115386570ce186eea349ae937dbccbd61ed (patch) | |
| tree | 2ef0069d1270b0a0ca5ab6af37e2cac16fe69492 /lisp | |
| parent | 4b42ef02d947300494ef15f3a0eab0117e7bc51a (diff) | |
| download | emacs-8e8b8115386570ce186eea349ae937dbccbd61ed.tar.gz emacs-8e8b8115386570ce186eea349ae937dbccbd61ed.zip | |
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
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/flymake.el | 39 |
1 files changed, 20 insertions, 19 deletions
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 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Pavel Kobyakov <pk_at_work@yahoo.com> | 5 | ;; Author: Pavel Kobyakov <pk_at_work@yahoo.com> |
| 6 | ;; Maintainer: João Távora <joaotavora@gmail.com> | 6 | ;; Maintainer: João Távora <joaotavora@gmail.com> |
| 7 | ;; Version: 1.0.1 | 7 | ;; Version: 1.0.2 |
| 8 | ;; Package-Requires: ((emacs "26.1")) | 8 | ;; Package-Requires: ((emacs "26.1")) |
| 9 | ;; Keywords: c languages tools | 9 | ;; Keywords: c languages tools |
| 10 | 10 | ||
| @@ -220,24 +220,25 @@ Specifically, start it when the saved buffer is actually displayed." | |||
| 220 | :version "26.1" | 220 | :version "26.1" |
| 221 | :type 'boolean) | 221 | :type 'boolean) |
| 222 | 222 | ||
| 223 | (define-fringe-bitmap 'flymake-double-exclamation-mark | 223 | (when (fboundp 'define-fringe-bitmap) |
| 224 | (vector #b00000000 | 224 | (define-fringe-bitmap 'flymake-double-exclamation-mark |
| 225 | #b00000000 | 225 | (vector #b00000000 |
| 226 | #b00000000 | 226 | #b00000000 |
| 227 | #b00000000 | 227 | #b00000000 |
| 228 | #b01100110 | 228 | #b00000000 |
| 229 | #b01100110 | 229 | #b01100110 |
| 230 | #b01100110 | 230 | #b01100110 |
| 231 | #b01100110 | 231 | #b01100110 |
| 232 | #b01100110 | 232 | #b01100110 |
| 233 | #b01100110 | 233 | #b01100110 |
| 234 | #b01100110 | 234 | #b01100110 |
| 235 | #b01100110 | 235 | #b01100110 |
| 236 | #b00000000 | 236 | #b01100110 |
| 237 | #b01100110 | 237 | #b00000000 |
| 238 | #b00000000 | 238 | #b01100110 |
| 239 | #b00000000 | 239 | #b00000000 |
| 240 | #b00000000)) | 240 | #b00000000 |
| 241 | #b00000000))) | ||
| 241 | 242 | ||
| 242 | (defvar-local flymake-timer nil | 243 | (defvar-local flymake-timer nil |
| 243 | "Timer for starting syntax check.") | 244 | "Timer for starting syntax check.") |