Skip to content

Commit bd9802d

Browse files
committed
tweak: stick to recommended version of Ditaa & PlantUML
1 parent c396c63 commit bd9802d

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

core/me-builtin.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ or file path may exist now."
872872
(use-package ob-ditaa
873873
:config
874874
;; Automatically download the latest version of Ditaa
875-
(setopt org-ditaa-jar-path (+github-download-release "stathissideris/ditaa" "ditaa-{{ver}}-standalone.jar")))
875+
(setopt org-ditaa-jar-path (+github-download-release "stathissideris/ditaa" "ditaa-{{ver}}-standalone.jar" nil :ver "0.11.0")))
876876

877877
(use-package ol-man
878878
:after ol

core/me-lib-extra.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,13 +571,14 @@ If PORT or BAUD are nil, use values from `+serial-port' and `+serial-baudrate'."
571571
;;;###autoload
572572
(defun +github-latest-release (repo &optional fallback-release trim-v-prefix)
573573
"Get the latest release of REPO. Strips the \"v\" at left.
574-
575-
Fallback to FALLBACK-RELEASE when it can't get the last one."
574+
Fallback to FALLBACK-RELEASE when it can't get the last one.
575+
When TRIM-V-PREFIX is non-nil, trim the \"v\" prefix from the version."
576576
(if-let* ((latest
577577
(ignore-errors
578578
(with-temp-buffer
579-
(url-insert-file-contents
580-
(format "https://api.github.com/repos/%s/releases/latest" repo))
579+
(+shutup!
580+
(url-insert-file-contents
581+
(format "https://api.github.com/repos/%s/releases/latest" repo)))
581582
(json-parse-buffer :object-type 'plist)))))
582583
(let ((ver (car (last (split-string (plist-get latest :html_url) "/")))))
583584
(if trim-v-prefix
@@ -606,7 +607,7 @@ downloaded with it's original file name to `+github-download-dir'"
606607
(if (and (not ok-if-already-exists) (file-exists-p out-file))
607608
(+log! "File %S already exist" out-file)
608609
(mkdir (file-name-directory out-file) t)
609-
(url-copy-file url out-file ok-if-already-exists))
610+
(+shutup! (url-copy-file url out-file ok-if-already-exists)))
610611
out-file)))
611612

612613

core/me-lib.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ If NO-MESSAGE-LOG is non-nil, do not print any message to *Messages* buffer."
214214
"Suppress new messages temporarily while evaluating BODY.
215215
This inhebits both the echo area and the `*Messages*' buffer."
216216
(if (not minemacs-verbose-p)
217-
`(let ((message-log-max nil))
217+
`(let ((message-log-max nil)
218+
(inhibit-message t))
218219
(with-temp-message (or (current-message) "") ,@body))
219220
`(progn ,@body)))
220221

modules/on-demand/me-plantuml.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(setopt plantuml-default-exec-mode 'executable)
3939
;; Automatically download the latest version of PlantUML
4040
(setopt plantuml-default-exec-mode 'jar
41-
plantuml-jar-path (+github-download-release "plantuml/plantuml" "plantuml-{{ver}}.jar")))
41+
plantuml-jar-path (+github-download-release "plantuml/plantuml" "plantuml-{{ver}}.jar" nil :ver "1.2024.7")))
4242

4343
;; Add support for `capf'
4444
(defun +plantuml-mode-setup ()

0 commit comments

Comments
 (0)