summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2017-11-29 22:51:04 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2017-11-29 22:51:04 +0100
commit17fde7db7b03d61c7bf1f125669e2b3df8740db6 (patch)
treedd3c29eb8e767135efb821174b446dbd62b6a62b
parent0947b0e724cd06c1279193633892f56cd888d319 (diff)
downloadgeiser-guile-17fde7db7b03d61c7bf1f125669e2b3df8740db6.tar.gz
geiser-guile-17fde7db7b03d61c7bf1f125669e2b3df8740db6.tar.bz2
Removing geiser-mit's dep on subr-x altogether
It's only using string-empty-p from there, which is a function whose name is almost as long as its implementation, so we better try to be compatible with older emacsen (subr-x was introduced in emacs 24.4).
-rw-r--r--elisp/geiser-mit.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/elisp/geiser-mit.el b/elisp/geiser-mit.el
index 90f9b5c..9617c00 100644
--- a/elisp/geiser-mit.el
+++ b/elisp/geiser-mit.el
@@ -18,8 +18,7 @@
(require 'info-look)
-(eval-when-compile (require 'cl)
- (require 'subr-x))
+(eval-when-compile (require 'cl))
;;; Customization:
@@ -133,7 +132,7 @@ This function uses `geiser-mit-init-file' if it exists."
(let ((geiser-log-verbose-p t))
(compilation-setup t)
(when (and (stringp geiser-mit-source-directory)
- (not (string-empty-p geiser-mit-source-directory)))
+ (not (string= geiser-mit-source-directory "")))
(geiser-eval--send/wait (format "(geiser:set-mit-scheme-source-directory %S)" geiser-mit-source-directory)))))
;;; Implementation definition: