emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: Save Options vs. default-input-method


From: Per Abrahamsen
Subject: Re: [PATCH] Re: Save Options vs. default-input-method
Date: Tue, 05 Feb 2002 18:08:25 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu)

emacs -q
Options -> Save Options 

gives me

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(current-language-environment "Latin-1")
 '(default-frame-alist (quote ((tool-bar-lines . 1) (menu-bar-lines . 1))))
 '(default-input-method "latin-1-prefix"))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

That is unsatisfactory, especially if I reuse the .emacs file in
another language environment.

I can see two workarounds:

1. The code that sets the three variables at startup should also set
   their standard-value, so they won't be seen as modified (assuming
   my previous patch is applied).

2. Only save options that have been changed interactively.  My
   suggestion to use 'customize-set-variable' will give us that for
   free, just check that the variables have a 'customized-value'
   property before saving them.

#2 also has the advantage that "Save Options" won't save options that
have been set in the .emacs file or in a site init file.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]