2012-02-28 23 views
5

Khi cài đặt màn hình chủ của emacs, một thông báo lỗi được hiển thị "không thể lưu các tùy chỉnh"emacs lỗi không thể lưu các tùy chỉnh

Loading 00debian-vars... 
No /etc/mailname. Reverting to default... 
Loading 00debian-vars...done 
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... 
Loading debian-ispell... 
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done 
Loading debian-ispell...done 
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done 
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done 
Loading /etc/emacs/site-start.d/50global.el (source)...done 
Loading /etc/emacs/site-start.d/50psvn.el (source)...done 
Loading /etc/emacs/site-start.d/50python-guppy.el (source)...done 
Loading /etc/emacs/site-start.d/50ruby1.8-elisp.el (source)...done 
Loading cua-base...done 
For information about GNU Emacs and the GNU system, type C-h C-a. 
custom-save-all: Cannot save customizations; init file was not fully loaded 

Xin giúp

Trả lời

2

Tôi đã đánh vần sai đường dẫn trong tệp .emacs của mình.

Vui lòng kiểm tra lỗi chính tả trong tệp .emacs của bạn.

EDIT: Hãy nhớ rằng đường dẫn UNIX phân biệt chữ hoa chữ thường. Điều đó đã được cho tôi nguồn chính của lỗi cho đến nay.

10

Nếu chúng ta nhìn vào tại nguồn cho custom-save-all trong cus -edit.el chúng tôi tìm thấy:

(defun custom-save-all() 
    "Save all customizations in `custom-file'." 
    (when (and (null custom-file) init-file-had-error) 
    (error "Cannot save customizations; init file was not fully loaded")) 

Vì vậy, có vẻ như lỗi xảy ra khi tệp init của bạn đang được tải. Hãy thử bắt đầu emacs với tùy chọn --debug-init cho phép trình gỡ lỗi Emacs Lisp giúp bạn tìm ra lỗi trong tệp init của bạn.

+0

cảm ơn. Đó thực sự là một sai lầm nhỏ. Tôi đã đánh vần sai đường dẫn trong tệp .emacs của tôi. – riship89

Các vấn đề liên quan