Skip to content

Commit

Permalink
lispy.el (lispy--insert-or-call): use `bound-and-true-p'
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Feb 18, 2014
1 parent 758704d commit 2b04deb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lispy.el
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ otherwise the whole string is unquoted."
"Insert one space.
Special case is (|( -> ( |(."
(interactive)
(if (and (featurep 'edebug) edebug-active)
(if (and (bound-and-true-p edebug-active))
(edebug-step-mode)
(if (region-active-p)
(progn
Expand Down Expand Up @@ -2355,8 +2355,7 @@ list."
(symbol-name def) (documentation def))
,(interactive-form def)
(let (cmd)
(cond ((and (featurep 'edebug)
edebug-active
(cond ((and (bound-and-true-p edebug-active)
(= 1 (length (this-command-keys)))
(let ((char (aref (this-command-keys) 0)))
(setq cmd (or (assq char edebug-mode-map)
Expand Down

0 comments on commit 2b04deb

Please sign in to comment.