Отключить или установить значение «Всегда нет»: параметры изменились, сохранить их? (д или н)

Как, пожалуйста, сделать так, чтобы при выходе не появлялось это сообщение: "Параметры изменены -- сохранить их? (y или n)"

В качестве альтернативы я хотел бы, чтобы ответ на этот конкретный вопрос всегда был «нет» без необходимости дальнейшего ввода с клавиатуры для выхода.

Мой файл init.el для Aquamacs 2.4 создает изменение параметров, и я не хочу создавать файл customizations.el, отвечая на вопрос «да».

Спасибо.

Вот код из customizations.el, который генерируется, если я отвечаю на приглашение «да» при выходе.

(custom-set-variables
 '(aquamacs-additional-fontsets nil t)
 '(aquamacs-customization-version-id 215 t)
 '(aquamacs-tool-bar-user-customization nil t)
 '(default-frame-alist (quote ((background-mode . light) (border-color . "black") (mouse-color . "black") (background-color . "white") (foreground-color . "black") (menu-bar-lines . 1) (cursor-type . box) (vertical-scroll-bars . right) (internal-border-width . 0) (left-fringe . 1) (right-fringe) (fringe) (cursor-color . "red") (tool-bar-lines . 0))))
 '(global-flyspell-mode t)
 '(global-hl-line-mode t)
 '(global-linum-mode t)
 '(global-show-newlines-mode t)
 '(ns-tool-bar-display-mode (quote both) t)
 '(ns-tool-bar-size-mode (quote regular) t)
 '(size-indication-mode t)
 '(visual-line-mode nil t))

(custom-set-faces
 '(emacs-lisp-mode-default ((t (:inherit autoface-default :height 180 :family "Courier"))) t)
 '(latex-mode-default ((t (:inherit default height 180 :family "Courier"))))
 '(plain-tex-mode-default ((t (:inherit default :height 180 :family "Courier"))) t)
 '(text-mode-default ((t (:inherit autoface-default :stipple nil :strike-through nil :underline nil :slant normal :weight normal :height 180 :width normal :family "Courier"))))
 '(whitespace ((((class color) (background light)) (:background "white" :foreground "red" :weight ultra-bold :width ultra-expanded))))
 '(whitespace-space ((((class color) (background light)) (:foreground "red")))))

Вот сообщение отладки, которое видно при выходе:

Debugger entered--Lisp error: (quit)
  old-y-or-n-p("Options have changed - save them? ")
  (if (and long (not aquamacs-quick-yes-or-no-prompt)) (old-yes-or-no-p text) (old-y-or-n-p text))
  (let ((text ...)) (if (and long ...) (old-yes-or-no-p text) (old-y-or-n-p text)))
  (progn (and (fboundp ...) smart-frame-positioning-mode (smart-move-minibuffer-inside-screen f)) (let (...) (if ... ... ...)))
  (if (or (and last-nonmenu-event ...) (not use-dialog-box) (not window-system)) (progn (and ... smart-frame-positioning-mode ...) (let ... ...)) (let (...) (if ... ...) ret))
  (let ((f ...)) (make-frame-visible f) (raise-frame f) (if (or ... ... ...) (progn ... ...) (let ... ... ret)))
  aquamacs-ask-for-confirmation("Options have changed - save them? \nYour customizations will be lost if you don't save them." nil "Save" "Don't Save")
  (progn (aquamacs-ask-for-confirmation "Options have changed - save them? \nYour customizations will be lost if you don't save them." nil "Save" "Don't Save"))
  (if (eq aquamacs-save-options-on-quit (quote ask)) (progn (aquamacs-ask-for-confirmation "Options have changed - save them? \nYour customizations will be lost if you don't save them." nil "Save" "Don't Save")) aquamacs-save-options-on-quit)
  (and (or aquamacs-faces-changed (filter-list changed ...)) (if (eq aquamacs-save-options-on-quit ...) (progn ...) aquamacs-save-options-on-quit))
  (if (and (or aquamacs-faces-changed ...) (if ... ... aquamacs-save-options-on-quit)) (aquamacs-menu-bar-options-save))
  (let* ((changed ...)) (if (and ... ...) (aquamacs-menu-bar-options-save)))
  (condition-case nil (let* (...) (if ... ...)) (error nil))
  aquamacs-ask-to-save-options()
  run-hook-with-args-until-failure(aquamacs-ask-to-save-options)
  (and (or (not ...) (let ... ... ...)) (run-hook-with-args-until-failure (quote kill-emacs-query-functions)) (or (null confirm-kill-emacs) (funcall confirm-kill-emacs "Really exit Aquamacs? ")) (kill-emacs))
  (progn (setq timer-idle-list) (save-some-buffers arg t) (and (or ... ...) (run-hook-with-args-until-failure ...) (or ... ...) (kill-emacs)))
  (unwind-protect (progn (setq timer-idle-list) (save-some-buffers arg t) (and ... ... ... ...)) (setq timer-idle-list saved-timer-idle-list))
  (let ((saved-timer-idle-list timer-idle-list)) (unwind-protect (progn ... ... ...) (setq timer-idle-list saved-timer-idle-list)))
  aquamacs-save-buffers-kill-emacs(nil)
  call-interactively(aquamacs-save-buffers-kill-emacs nil nil)

person lawlist    schedule 15.04.2013    source источник
comment
Какие именно изменения создает ваш init.el?   -  person Thomas    schedule 16.04.2013
comment
Я только что добавил init.el к своему вопросу.   -  person lawlist    schedule 16.04.2013
comment
Это слишком. Пожалуйста, сузьте его до соответствующих частей.   -  person Thomas    schedule 17.04.2013
comment
Спасибо за предложение. Я изменил вопрос, чтобы включить только файл customizations.el, который создается, если я отвечаю на запрос «да» при выходе. Соответствующая часть файла init.el отражает файл customizations.el. Цель состоит в том, чтобы никогда не создавать customizations.el и всегда говорить «нет» и выходить, когда будет предложено сохранить изменения в параметрах.   -  person lawlist    schedule 17.04.2013
comment
Я думаю, что это может быть связано с Aquamacs (по крайней мере, я не нашел этого сообщения в исходниках Emacs 24.3). Попробуйте M-x toggle-debug-on-quit, а затем введите C-g, когда он задаст этот вопрос, и вы должны получить трассировку стека, показывающую, откуда именно он исходит.   -  person phils    schedule 17.04.2013
comment
Я превысил свои 600 символов для комментариев. . . поэтому вывод отладки был добавлен в конец моего вопроса. Возможно, с Aquamacs 2.4 нет другого выбора, кроме как сохранить файл customizations.el, даже если он отражает файл init.el. Я надеялся избежать потенциального конфликта, когда customizations.el переопределяет мой init.el — цель состояла в том, чтобы иметь только один init.el (со всеми настройками), который не может быть переопределен системой.   -  person lawlist    schedule 17.04.2013


Ответы (1)


Что ж, с оговоркой, что у меня нет Aquamacs, я вижу ответ в трассировке стека.

Взгляните на:
C-hv aquamacs-save-options-on-quit RET

person phils    schedule 17.04.2013
comment
Потрясающий! Да, ваше предложение позволило мне получить достаточно информации, чтобы отследить его. Я поместил этот фрагмент в свой файл init.el, и проблема была решена — т. е. больше не нужно создавать файл customizations.el или сохранять параметры при выходе — больше никаких подсказок. (custom-set-variables '(aquamacs-save-options-on-quit nil) ) Большое спасибо - очень признателен! - person lawlist; 17.04.2013