all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Bozhidar Batsov" <bozhidar@batsov.dev>
To: "Philip Kaludercic" <philipk@posteo.net>
Cc: "Emacs Devel" <emacs-devel@gnu.org>
Subject: Re: [nongnu] elpa/clojure-ts-mode 649bf1120f: Improve the package version reporting
Date: Tue, 04 Jun 2024 13:58:08 +0300	[thread overview]
Message-ID: <a13450f3-feb1-4dec-a00e-4ca9034fb2ed@app.fastmail.com> (raw)
In-Reply-To: <871q5dc71y.fsf@posteo.net>

[-- Attachment #1: Type: text/plain, Size: 3239 bytes --]

Pretty sure this was never the case. See the image below for details:



On Tue, Jun 4, 2024, at 1:54 PM, Philip Kaludercic wrote:
> "Bozhidar Batsov" <bozhidar@batsov.dev> writes:
> 
> > I guess you having used MELPA, right? The package versions there are
> > replaced with a timestamp, so they are not very useful if they are not
> > complemented by the actual version. That's why for development
> > versions I'd like to see them both in the user reports.
> 
> My understanding was that they appended the timestamp (in a decimal
> encoding) to the version string?  Or is that information outdated?
> 
> > On Tue, Jun 4, 2024, at 12:09 PM, Philip Kaludercic wrote:
> >> ELPA Syncer <elpasync@gnu.org> writes:
> >> 
> >> > branch: elpa/clojure-ts-mode
> >> > commit 649bf1120f10250d464d4e9ad1905b481d2e504c
> >> > Author: Bozhidar Batsov <bozhidar@batsov.dev>
> >> > Commit: Bozhidar Batsov <bozhidar@batsov.dev>
> >> >
> >> >     Improve the package version reporting
> >> > ---
> >> >  clojure-ts-mode.el | 9 +++++----
> >> >  1 file changed, 5 insertions(+), 4 deletions(-)
> >> >
> >> > diff --git a/clojure-ts-mode.el b/clojure-ts-mode.el
> >> > index 99f28cd20a..d2be3e737c 100644
> >> > --- a/clojure-ts-mode.el
> >> > +++ b/clojure-ts-mode.el
> >> > @@ -54,7 +54,6 @@
> >> >  
> >> >  ;;; Code:
> >> >  (require 'treesit)
> >> > -(require 'lisp-mnt)
> >> >  
> >> >  (declare-function treesit-parser-create "treesit.c")
> >> >  (declare-function treesit-node-eq "treesit.c")
> >> > @@ -71,8 +70,7 @@
> >> >    :link '(emacs-commentary-link :tag "Commentary" "clojure-mode"))
> >> >  
> >> >  (defconst clojure-ts-mode-version
> >> > -  (eval-when-compile
> >> > -    (lm-version (or load-file-name buffer-file-name)))
> >> > +  "0.2.2"
> >> >    "The current version of `clojure-ts-mode'.")
> >> >  
> >> >  (defcustom clojure-ts-comment-macro-font-lock-body nil
> >> > @@ -884,7 +882,10 @@ forms like deftype, defrecord, reify, proxy, etc."
> >> >  (defun clojure-ts-mode-display-version ()
> >> >    "Display the current `clojure-mode-version' in the minibuffer."
> >> >    (interactive)
> >> > -  (message "clojure-ts-mode (version %s)" clojure-ts-mode-version))
> >> > +  (let ((pkg-version (package-get-version)))
> >> > +    (if pkg-version
> >> > +        (message "clojure-ts-mode %s (package: %s)" clojure-ts-mode-version pkg-version)
> >> > +      (message "clojure-ts-mode %s" clojure-ts-mode-version))))
> >> >  
> >> >  (defconst clojure-ts-grammar-recipes
> >> >    '((clojure "https://github.com/sogaiu/tree-sitter-clojure.git"
> >> 
> >> I don't understand the point of this change.  If you duplicate the
> >> information of the package version anyway, then why use
> >> `package-get-version' at all?  The only advantage this seems to bring is
> >> that if you forget to bump the version in `clojure-ts-mode-version' that
> >> you can find out about the discrepancy, but then it is too late and
> >> confusing.
> >> 
> >> (Generally, I just don't think these kinds of "version information"
> >> commands are really useful anymore, at least since package management
> >> has become the widespread norm.)
> >> 
> >> -- 
> >> Philip Kaludercic on peregrine
> >> 
> >> 
> 
> -- 
> Philip Kaludercic on peregrine
> 
> 

[-- Attachment #2.1: Type: text/html, Size: 5832 bytes --]

[-- Attachment #2.2: image.png --]
[-- Type: image/png, Size: 246635 bytes --]

  reply	other threads:[~2024-06-04 10:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171748798553.6513.6711701045751855775@vcs2.savannah.gnu.org>
     [not found] ` <20240604075945.DB087C1F9CB@vcs2.savannah.gnu.org>
2024-06-04  9:09   ` [nongnu] elpa/clojure-ts-mode 649bf1120f: Improve the package version reporting Philip Kaludercic
2024-06-04  9:46     ` Bozhidar Batsov
2024-06-04  9:49       ` Bozhidar Batsov
2024-06-04 10:54       ` Philip Kaludercic
2024-06-04 10:58         ` Bozhidar Batsov [this message]
2024-06-04 11:27           ` Philip Kaludercic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a13450f3-feb1-4dec-a00e-4ca9034fb2ed@app.fastmail.com \
    --to=bozhidar@batsov.dev \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.