phobos.el: rename function parameter
This commit is contained in:
parent
decfe0dc9c
commit
7680075bcf
1 changed files with 4 additions and 4 deletions
|
@ -28,10 +28,10 @@
|
||||||
(defvar phobos-root "https://dlang.org/library"
|
(defvar phobos-root "https://dlang.org/library"
|
||||||
"Root URL to use when viewing documentation with `phobos'.")
|
"Root URL to use when viewing documentation with `phobos'.")
|
||||||
|
|
||||||
(defun phobos (symbol-name)
|
(defun phobos (symbol)
|
||||||
"View the documentation on SYMBOL-NAME from the Phobos documentation.
|
"View the documentation on SYMBOL from the Phobos documentation.
|
||||||
|
|
||||||
SYMBOL-NAME can be a module (e.g. std.sumtype), a submodule (e.g.
|
SYMBOL can be a module (e.g. std.sumtype), a submodule (e.g.
|
||||||
std.algorithm.searching), a function or type (e.g. std.stdio.File)
|
std.algorithm.searching), a function or type (e.g. std.stdio.File)
|
||||||
or any other symbol part of a standard module, such as object.Exception.
|
or any other symbol part of a standard module, such as object.Exception.
|
||||||
|
|
||||||
|
@ -39,6 +39,6 @@ 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 (concat phobos-browser " " phobos-root "/"
|
||||||
(string-replace "." "/" symbol-name) ".html")))
|
(string-replace "." "/" symbol) ".html")))
|
||||||
|
|
||||||
(provide 'phobos)
|
(provide 'phobos)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue