From 20f5b32b17afa33441b0ca5d2d5c54a254a2e565 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Wed, 19 Apr 2017 09:36:57 -0400 Subject: Fix #25 with const variable Delete .version file --- lisp/mastodon.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lisp/mastodon.el') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 4337634..8abdb43 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -37,6 +37,9 @@ :prefix "mastodon-" :group 'external) +(defconst mastodon-version "0.4.0" + "Current `mastodon' package version.") + (defcustom mastodon-instance-url "https://mastodon.social" "Base URL for the Masto instance from which you toot." :group 'mastodon @@ -63,10 +66,7 @@ (defun mastodon-version () "Message package version." (interactive) - (with-temp-buffer - (insert-file-contents "../.version") - (message - (concat "mastodon.el v" (buffer-string))))) + (message "Mastodon version %s" mastodon-version)) ;;;###autoload (defun mastodon () -- cgit v1.2.3