branch: scratch/add-vdiff
commit cfad650c53b4fcaad8f24bbb7d44623678d2edff
Author: Justin Burkett <[email protected]>
Commit: Justin Burkett <[email protected]>
Provide missing function for emacs-nox users
define-fringe-bitmap is not defined when emacs is compiled without gui
support.
Fixes #12
---
vdiff.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/vdiff.el b/vdiff.el
index 2d29cdf..0d93134 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -795,6 +795,12 @@ of a \"word\"."
;; * Bitmaps
+;; emacs-nox users don't have this function. There's probably a better solution
+;; here, but this seems to work.
+(unless (fboundp 'define-fringe-bitmap)
+ (defun define-fringe-bitmap (&rest _)
+ nil))
+
(define-fringe-bitmap
'vdiff--vertical-bar
(make-vector (frame-char-height) #b00100000)