summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-10-31 12:04:13 -0400
committerKyle Meyer <kyle@kyleam.com>2014-11-01 01:22:53 -0400
commit794f943564f5676bbae425e1ddf7e67ec95955e2 (patch)
treee360562c8049bd69cdfff7215037b8968539c41f
parentce3edaf2d13eed514d27bece505519496258146a (diff)
downloadbog-794f943564f5676bbae425e1ddf7e67ec95955e2.tar.gz
bog-citekey-from-property: Cosmetic changes
-rw-r--r--bog.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/bog.el b/bog.el
index cbe9324..75fe9d3 100644
--- a/bog.el
+++ b/bog.el
@@ -285,9 +285,8 @@ be preceded by a characters in `bog-allowed-before-citekey'."
it)))
(defun bog-citekey-from-property ()
- (-when-let (prop (org-entry-get (point) bog-citekey-property))
- (when (bog-citekey-p prop)
- prop)))
+ (--when-let (org-entry-get (point) bog-citekey-property)
+ (when (bog-citekey-p it) it)))
(defun bog-citekey-p (text)
(when (string-match-p (format "^%s$" bog-citekey-format) text)