2014-11-05 35 views
0

我在使用mac加載emacs(在終端中)時出現此錯誤。編譯時似乎與字節碼有些差錯:相同的emacs設置:在linux上正常工作,在mac上出錯

Debugger entered--Lisp error: (void-variable mouse-wheel-mode)  
byte-code("\304 ^X\305^H\306\307#\210\305^H\310\311#\210\305^H\312\311#\210\305^H\313\314#\210 \203?^@\315\316\317\n!\317^K!\317\320\nD!\317\320^KD!\317\321\nD!\317\321^KD!\257^F\"\210\305^H\322\323#\210\305^H\324\325#\210\305^H\326\323#\210\305^H\327\325#\210^H)\207"$ 
     (defvar ccm-map (byte-code "\304 ^X\305^H\306\307#\210\305^H\310\311#\210\305^H\312\311#\210\305^H\313\314#\210 \203?^@\315\316\317\n!\317^K!\317\320\nD!\317\320^KD!\317\321\nD!\317\321^KD!\257^F\"\210\305^H\322\323#\210\305^H\324\325#\210\305^H\326\323#\210\305^H\327\$ 
     require(centered-cursor-mode)                                                             
     eval-buffer(#<buffer *load*> nil "/Users/nXqd/.emacs.d/init.el" nil t) ; Reading at buffer position 1732                                          
     load-with-code-conversion("/Users/nXqd/.emacs.d/init.el" "/Users/nXqd/.emacs.d/init.el" t t)                                             
     load("/Users/nXqd/.emacs.d/init" t t)                                                           
     #[0 "^H\205\262^@ \306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\203:^@\320\nB^R\321\202;^@\316\322^S\323^A\322\211#\210^K\322=\203a^@\324\325\326\307^H\327Q!\"\323^A\322\211#\210^K\322=\203`^@^A^S\21$ 
     command-line()                                                                 
     normal-top-level() 

如何解決這類問題?

+1

它看起來像錯誤消息的頂部線條缺失。 – legoscia 2014-11-05 10:51:40

+0

@legoscia謝謝!我已經修復了我的帖子。我很愚蠢,無法搜索該關鍵字。我找到了我的答案。謝謝 – nXqd 2014-11-05 12:29:51

+1

可能的重複[如何讓鼠標選擇在Mac上的emacs和iTerm2中工作?](http://stackoverflow.com/questions/5710334/how-can-i-get-mouse-selection-to-work -in-的Emacs和iterm2-ON-MAC) – nXqd 2014-11-05 12:32:00

回答

1

它看起來像centered-cursor-mode檢查變量mouse-wheel-mode沒有首先要求mwheel。如果以圖形模式運行,則此模式將在啓動過程中自動打開並因此加載該變量,但顯然mwheel庫在終端模式下根本沒有加載。

試裝centered-cursor-mode之前添加以下內容到.emacs.d/init.el,:

(require 'mwheel) 
相關問題