yasnippet.el (yas-about): Use package-get-version

This commit is contained in:
Stefan Monnier 2024-01-01 19:45:05 -05:00
parent 66db827a86
commit 362e9b551d

View File

@ -2074,6 +2074,9 @@ This works by stubbing a few functions, then calling
(or (ignore-errors (car (let ((default-directory yas--loaddir)) (or (ignore-errors (car (let ((default-directory yas--loaddir))
(process-lines "git" "describe" (process-lines "git" "describe"
"--tags" "--dirty")))) "--tags" "--dirty"))))
(eval-when-compile
(and (fboundp 'package-get-version)
(package-get-version)))
(when (and (featurep 'package) (when (and (featurep 'package)
(fboundp 'package-desc-version) (fboundp 'package-desc-version)
(fboundp 'package-version-join)) (fboundp 'package-version-join))