当我M-x package-install <ret> dsvn <ret>
时,我收到错误的类型参数错误。这开始于最近的Emacs包更新。我无法理解。
[======]
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("\\`https?:" nil)
package-download-single(dsvn "20130120.1457" "Subversion interface [svn]" nil)
package-download-transaction((dsvn))
package-install(dsvn)
ad-Orig-call-interactively(package-install record nil)
call-interactively(package-install record nil)
command-execute(package-install record)
smex-read-and-run(("package-install" "package-list-packages" "fringe-mode" "eval-buffer" "ansi-term" "scroll-bar-mode" "list-faces-display" "customize-variable" "delete-trailing-whitespace" "compile" "comint-run" "emacs-lisp-mode" "comint-mode" "toggle-read-only" "message-mode" "end-of-buffer" "helm-end-of-buffer" "cua-paste" "cua-cut-region" "elscreen-toggle" "ergoemacs-mode" "previous-buffer" "doremi-buffers+" "delete-file" "show-smartparens-mode" "show-paren-mode" "server-start" "python-mode" "projectile-mode" "indent-region" "eval-expression" "key-combo-mode" "emacs-init-time" "byte-recompile-directory" "doremi-all-faces-fg+" "irc" "golden-ratio-mode" "menu-bar-select-buffer" "menu-bar-open" "doremi-global-marks+" "doremi-window-width+" "beginning-of-buffer" "finder-by-keyword" "subword-mode" "fastnav-jump-to-char-forward" "fastnav-sprint-forward" "describe-bindings" "helm-find-files" "helm-for-files" "helm-ack" ...))
ad-Orig-smex()
smex()
(lambda nil (interactive) (or (boundp (quote smex-cache)) (smex-initialize)) (global-set-key (kbd "M-x") (quote smex)) (smex))()
ad-Orig-call-interactively((lambda nil (interactive) (or (boundp (quote smex-cache)) (smex-initialize)) (global-set-key (kbd "M-x") (quote smex)) (smex)) nil nil)
call-interactively((lambda nil (interactive) (or (boundp (quote smex-cache)) (smex-initialize)) (global-set-key (kbd "M-x") (quote smex)) (smex)) nil nil)
编辑:我没有改变任何东西,现在甚至没有列出包裹。
答案 0 :(得分:1)
将此添加到您的Emacs init
:
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
或 C - : 输入上述代码段。
然后 M-x package-refresh-contents
尝试按照上述说法进行操作。
更简单的方法似乎是: M-x list-packages
。