emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] scratch/add-vdiff cfad650 207/258: Provide missing function for e


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff cfad650 207/258: Provide missing function for emacs-nox users
Date: Wed, 17 May 2017 08:13:52 -0400 (EDT)

branch: scratch/add-vdiff
commit cfad650c53b4fcaad8f24bbb7d44623678d2edff
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>

    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)



reply via email to

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