MobileOrg 推送时出现 Emacs 错误
我试图通过运行org-mobile-push来设置Emacs org-mode来将我的文件初始推送到Dropbox文件夹中,尽管如此,我仍然收到一个错误,内容为无效函数:org-eval-in-environment
我在网上搜索了答案,但未能找到答案。
就这一点而言,我做了以下操作:
使用以下命令通过 Git 重新安装了 org-mode:
mkdir $HOME/elisp && cd $HOME/elisp
git 克隆 git://orgmode.org/org-mode.git
cd org-mode &&制作&&制作文档&& make install
安装正确。
org-mobile-push 曾经与我从 http://emacsformacosx.com/,我相信它位于 org-mode 的版本 6 分支上。
后来我停止使用/测试与 MobileOrg 的同步,并继续更新到版本 7.7。通过 ELPA。
之后,我开始为我的文件创建一个 Git 存储库。
沿线的某些东西显然损坏了一个重要的配置。
我也是 org-mode、Emacs 和 Git 的新手。
任何指导将不胜感激。最后,如果这看起来一团糟,请提供一些有关如何将 Emacs 和 org-mode 重置为其“默认版本(23.3 附带的)”的信息,
谢谢,
I am trying to set Emacs org-mode to do the initial push of my files into the Dropbox folder, by running org-mobile-push, nonetheless I keep getting an error which reads Invalid function: org-eval-in-environment
I have searched the web for an answer, but have not been able to locate one.
In terms of this I have done the following:
Reinstalled org-mode through Git, using the following commands:
mkdir $HOME/elisp && cd $HOME/elisp
git clone git://orgmode.org/org-mode.git
cd org-mode && make && make doc && make install
This installed correctly.
The org-mobile-push used to work fine with the version of org-mode that came with my install of Emacs 23.3 from http://emacsformacosx.com/, which I believe was on the version 6 branch of org-mode.
I later stopped using/testing the sync with MobileOrg, and moved along to update to version 7.7. through ELPA.
Following that, I started playing with creating a Git repo for my files.
Something along the line has apparently damaged an important configuration.
I am new to org-mode, Emacs and Git as well.
Any guiding will be appreciated. Lastly, if this seems all messed up, please provide some info on how to reset Emacs and org-mode to its "default version (as it came with 23.3)
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不完全是一个解决方案,但如果您有有效的index.org文件,则不需要org-mobile-push。 mobileorg 非常乐意从手动生成的文件中提取链接的所有内容。
如果您不想每次都下载那里的每个组织文件,请尝试:
它只会提取已更改校验和的文件。我把它放在一个 cron 作业中。
Not exactly a solution, but if you've got a valid index.org file, you don't need org-mobile-push. mobileorg is perfectly happy to pull everything linked from a manually generated file.
If you'd prefer not to download every single org file there, every time, try:
It'll only pull the files that have changed checksums. I have it in a cron job.
首先确保您没有 emacs 可见的其他版本的 org(emacs 发行版附带一个版本,我总是删除它)。用于编译源代码的 emacs 版本/架构也很重要。当我将编译后的 org 树从 Linux 复制到 Windows 时,我在 org-mobile-push 中遇到了这个确切的错误,因此请尝试重新编译 org.在 emacs 中执行此操作的一种简单方法是在 dired 中打开 org/lisp 目录,通过“*.el”(无引号)标记所有源文件,然后按“B”对文件进行字节编译。现在通过其菜单或通过“Cc Cx!”重新加载组织。
First make sure you don't have other versions of org visible to emacs (one version comes with emacs distribution, I always delete it). The version/architecture of emacs used to compile the sources matters as well. I had this exact error with org-mobile-push when I copied compiled org tree from Linux to Windows, so try recompiling org. One simple way to do that from within emacs is to open the org/lisp directory in dired, mark all the source files via "*. el" (sans the quotes), then byte-compile the files by pressing "B". Now reload org via its menu or via "C-c C-x !".