From d2e61d3d258a9acf1bed5dd8b347c7aaea12c5c7 Mon Sep 17 00:00:00 2001 From: Alexander Griffith Date: Thu, 27 Apr 2017 19:17:40 -0400 Subject: word is no longer nil when no word-at-point is nil --- lisp/mastodon-tl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index a68b1f3..3ff52b8 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -56,7 +56,7 @@ (defun mastodon-tl--get-tag-timeline () "Prompts for tag and opens its timeline." (interactive) - (let* ((word (word-at-point)) + (let* ((word (or (word-at-point) "")) (input (read-string (format "Tag(%s): " word))) (tag (if (equal input "") word input))) (print tag) -- cgit v1.2.3