用于普通lisp的Man或javadoc样式文档 [英] Man or javadoc-style documentation for common lisp

查看:169
本文介绍了用于普通lisp的Man或javadoc样式文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何类似的常见的lisp文档,如javadoc,man甚至类似智能感的弹出窗口?我刚刚开始学习常用的lisp,没有足够的手记忆。

Is there any kind of common lisp docs like javadoc, man or even intellisense-like popups? I've just started learning common lisp and do not have enough hand memory.

我使用emacs和粘液 - 它有标签完成,但似乎不是很丰富。

I am using emacs and slime — it has tab completion, but it seem not very informative.

谢谢!

推荐答案

如果这个问题是为了询问参考文献 - 在线可以有几个Hyperspec。如果您在Google上搜索hyperspec功能名称,那么您很有可能会在其中一个登陆。

Just in case this question was meant to ask where the reference is - there are several Hyperspecs available online. If you search Google for something like "hyperspec function-name" there's a good chance you will land on one of them.

http://clhs.lisp。 se / Front / index.htm

http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/FrontMatter/index.html

例如。

根据您的编辑器,您通常可以配置它来显示超级内容。在Emacs中使用SLIME,您可以执行 Mx slime-hyperspec-lookup RET符号查找

Depending on your editor, you can usually configure it to display it the hyperspec contents too. With SLIME in Emacs you can do M-x slime-hyperspec-lookup RET symbol-to-look-for

另一个方便的工具是 apropos - 运行(apropossubstring-in-the-symbol-name)与substring-in-the-symbol-name匹配的所有符号的列表。

Another handy tool is apropos - by running (apropos "substring-in-the-symbol-name") you will get the list of all symbols that match the "substring-in-the-symbol-name".

SLIME本身提供了良好的自动完成。什么可能绊倒你的默认键可能绑定到您的系统不分配到Emacs(如M-TAB)的东西,以便将其重新绑定到其他可以做的(在.emacs文件中):

SLIME itself provides good autocompletion. What might be tripping you is that the default keys may be bound to something that your system doesn't dispatch to Emacs (like M-TAB), in order to rebind it to something else you can do (in your .emacs file):

(define-key lisp-mode-map (kbd "C-x .")
  'slime-complete-symbol)
(define-key lisp-mode-map (kbd "C-x /")
  'slime-complete-form)
(define-key lisp-mode-map (kbd "C-x ,")
  'slime-fuzzy-complete-symbol)

此外,Emacs提供了词汇完成自己 - 如果你打M- /这将尝试用相同的后缀来完成这个单词 - 它的效果非常好,特别是如果你必须输入长变量/函数名:)

Besides, Emacs provides "lexical" completion on its own - if you hit M-/ this will try to complete the word to a word with the same suffix - it works surprisingly well, especially if you have to type in long variables/function names :)

此外,SLIME将 Cc Cd f 绑定到 slime-describe-function-at-point 和< kbd> Cc Cd d 到 slime-describe-symbol-at-point Cc Cv d 煤泥描述呈递-在点

Also, SLIME binds C-c C-d f to slime-describe-function-at-point and C-c C-d d to slime-describe-symbol-at-point and C-c C-v d to slime-describe-presentation-at-point.

此外,在相当一段时间后,作为启示的东西...如果在包含错误堆栈跟踪的缓冲区中按RET,则指向堆栈条目,它将在堆栈级别的函数内显示局部变量的值。如果在点位于这些变量之间时按RET,它将打开一个描述该变量的缓冲区。

Besides... something that came as a revelation to me after quite some time... if you press RET while in the buffer containing the error stack trace, point on the stack entry, it will display the value of the local variables inside the function at that stack level. If you then press RET when the point is on either of those variables, it will open a buffer describing that variable.

这篇关于用于普通lisp的Man或javadoc样式文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆