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

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

[elpa] master 39c53c9 1/3: packages/sotlisp: Remove subr-x dependency.


From: Artur Malabarba
Subject: [elpa] master 39c53c9 1/3: packages/sotlisp: Remove subr-x dependency.
Date: Sat, 07 Mar 2015 20:38:33 +0000

branch: master
commit 39c53c953ef9ec2a80e55849d2cb44de219801f5
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    packages/sotlisp: Remove subr-x dependency.
---
 sotlisp.el |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/sotlisp.el b/sotlisp.el
index 07ffb19..1b58911 100644
--- a/sotlisp.el
+++ b/sotlisp.el
@@ -80,8 +80,6 @@
 
 
 ;;; Code:
-(eval-when-compile
-  (require 'subr-x))
 
 ;;; Predicates
 (defun sotlisp--auto-paired-p ()
@@ -463,9 +461,10 @@ removes hooks and abbrevs."
         (ignore-errors (forward-sexp -1)
                        (looking-at-p "#'")))
       (thing-at-point 'symbol)
-    (if-let ((fcap (function-called-at-point)))
-        (symbol-name fcap)
-      (thing-at-point 'symbol))))
+    (let ((fcap (function-called-at-point)))
+      (if fcap
+          (symbol-name fcap)
+        (thing-at-point 'symbol)))))
 
 (defun sotlisp-find-or-define-function (&optional prefix)
   "If symbol under point is a defined function, go to it, otherwise define it.



reply via email to

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