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 --- .version | 1 - lisp/mastodon.el | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 .version diff --git a/.version b/.version deleted file mode 100644 index 60a2d3e..0000000 --- a/.version +++ /dev/null @@ -1 +0,0 @@ -0.4.0 \ No newline at end of file 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