phobos.el: use format rather than concat

This commit is contained in:
Jeremy Baxter 2024-07-17 17:48:00 +12:00
parent 7680075bcf
commit 98bc3c6095

View file

@ -38,7 +38,8 @@ or any other symbol part of a standard module, such as object.Exception.
Phobos is the standard library for the D programming language. For more Phobos is the standard library for the D programming language. For more
information on Phobos and the D programming language, see <https://dlang.org>." information on Phobos and the D programming language, see <https://dlang.org>."
(interactive "MModule or symbol: ") (interactive "MModule or symbol: ")
(shell-command (concat phobos-browser " " phobos-root "/" (shell-command (format "%s %s/%s.html"
(string-replace "." "/" symbol) ".html"))) phobos-browser phobos-root
(string-replace "." "/" symbol))))
(provide 'phobos) (provide 'phobos)