在emacs中安装书签+包时出错

时间:2011-11-06 11:54:08

标签: emacs elisp bookmarks

我正在尝试安装书签,但我收到了错误消息。当我尝试对文件进行字节编译时,它也失败了。是否有书签的当前git +。错误如下:

Invalid function: bmkp-menu-bar-make-toggle

以下是完整的跟踪:

Debugger entered--Lisp error: (invalid-function bmkp-menu-bar-make-toggle)
  bmkp-menu-bar-make-toggle(t t "Highlight Jump using Crosshairs" "Crosshairs highlighting is %s" "Temporarily highlight visited bookmarks using crosshairs")
  byte-code("\306\307\310   B#\210\306  \311\312\n\211\313\314\315%#\210\306    \316\312\211\317\320\321%#\210\306  \322\312\f\211\323\324\325%#\210\306    \326\312
\211\327\330\331%#\210\306  \332\312\211\333\334\335%#\207" [menu-bar-bookmark-map bmkp-options-menu bmkp-crosshairs-flag bmkp-bmenu-state-file bookmark-save-flag bmkp-save-new-location-flag define-key [options] "Toggle Option" [bmkp-crosshairs-flag] bmkp-menu-bar-make-toggle "Highlight Jump using Crosshairs" "Crosshairs highlighting is %s" "Temporarily highlight visited bookmarks using crosshairs" [bmkp-toggle-saving-menu-list-state] "Autosave *Bookmark List* Display State" "Autosaving of `*Bookmark List*' display state is %s" "Autosave `*Bookmark List*' state (aka \"menu list\") when you quit it" [bmkp-toggle-saving-bookmark-file] "Autosave Bookmark File" "Autosaving of bookmarks is %s" "Automatically save a bookmark after setting or changing it" [bmkp-save-new-location-flag] "Autosave after Relocating" "Autosaving relocated bookmarks is %s" "Automatically save a bookmark after automatically relocating it" [bmkp-prompt-for-tags-flag] "Prompt for Tags when Setting" "Prompting for tags when setting a bookmark is %s" "Prompt for tags when setting a bookmark interactively" bmkp-prompt-for-tags-flag] 9)
  require(bookmark+-key)
  eval-buffer(#<buffer  *load*<2>> nil "/home/bigtyme/Dropbox/SyncedPrograms/emacs/loadPath/bookmarkplus/bookmark+.el" nil t)  ; Reading at buffer position 5907
  load-with-code-conversion("/home/bigtyme/Dropbox/SyncedPrograms/emacs/loadPath/bookmarkplus/bookmark+.el" "/home/bigtyme/Dropbox/SyncedPrograms/emacs/loadPath/bookmarkplus/bookmark+.el" nil t)
  require(bookmark+)
  eval-buffer(#<buffer  *load*> nil "/home/bigtyme/.emacs" nil t)  ; Reading at buffer position 1158
  load-with-code-conversion("/home/bigtyme/.emacs" "/home/bigtyme/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "\205\264

只需下载当前的git版本即可将其排序。我从维基下载的版本肯定有错误。现在我没有问题。

2 个答案:

答案 0 :(得分:0)

我刚尝试过,它对我有用。

我从here下载了书签+。所有八个文件。

只需确保所有文件都在加载路径的目录中。

该功能(您的Emacs找不到)“bmkp-menu-bar-make-toggle”,在“bookmark + -mac.el”中定义。

答案 1 :(得分:0)

首先,按照chrm的建议:获取最新的源文件。

其次,bmkp-menu-bar-make-toggle是一个Lisp宏,在bookmark+-mac.el中定义。

与往常一样,在对任何源文件进行字节编译之前,请确保加载源文件,并定义这些文件使用的宏。在这种情况下,在对任何Bookmark+文件进行字节编译之前加载bookmark+-mac.el(而不是*.elc)。