linux下怎么用dash这个包?

用aur 安装的那个dash 和 emacs用的那个不是一个东西啊,才发现是mac的程序,这样linux下没法用啊,装了个dash-docs 这个包说是不需要dash.app 也就是自己用emacs实现了解析文档集这个东西,但是一直报错就没跑起来,哪个大佬帮忙解决下。

Debugger entered–Lisp error: (void-function remove-duplicates) remove-duplicates(nil) #f(compiled-function (old-fun &rest args) #<bytecode 0x157bd0abaccd>)(#f(compiled-function () #<bytecode 0x157bd0a43929>)) apply(#f(compiled-function (old-fun &rest args) #<bytecode 0x157bd0abaccd>) #f(compiled-function () #<bytecode 0x157bd0a43929>) nil) dash-docs-buffer-local-docsets() dash-docs-create-buffer-connections() counsel-dash() funcall-interactively(counsel-dash) call-interactively(counsel-dash record nil) command-execute(counsel-dash record)

如果我没理解错的话,你想要的应该是离线文档dash在linux下的替代品

用它来下文档,然后把dash-docs-docsets-path指向zeal的docsets

用了啊,但是一调用 dash-docs-search 就出现上面那个无效的函数错误还有字节码那个,不知道怎么回事

看你的日志说是找不到 remove-duplicates 函数,你试下

(require 'cl)
1 个赞

是这个,谢谢,不知道为什么dash-docs作者没有require cl这个包