branch: scratch/editorconfig-cc
commit 0ddff164265d91348c3a13a0491c90f672f30a8a
Author: 10sr <8.slas...@gmail.com>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Update message format for version info
    
    Update message format for version info
---
 editorconfig.el | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/editorconfig.el b/editorconfig.el
index bc4bca211b..040fe0e7cb 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -607,15 +607,16 @@ version in the echo area and the messages buffer."
                            package-alist))))
          (pkg-version
           (and pkg
-               (package-version-join (package-desc-version pkg)))))
+               (package-version-join (package-desc-version pkg))))
+         (version-full (if (and pkg-version
+                                (not (string= version
+                                              pkg-version)))
+                           (concat version "-" pkg-version)
+                         version)))
     (when show-version
-      (if pkg-version
-          (message "EditorConfig Emacs: v%s  (package version: %s)"
-                   version
-                   pkg-version)
-        (message "EditorConfig Emacs v%s"
-                 version)))
-    version))
+      (message "EditorConfig Emacs v%s"
+               version-full))
+    version-full))
 
 (provide 'editorconfig)
 

Reply via email to