* Re: customize-option erases .emacs contents!
[not found] <mailman.2966.1114453347.2895.help-gnu-emacs@gnu.org>
@ 2005-04-26 9:45 ` Phillip Lord
0 siblings, 0 replies; 8+ messages in thread
From: Phillip Lord @ 2005-04-26 9:45 UTC (permalink / raw)
>>>>> "Jeff" == Rancier, Jeff <Jeff.Rancier@Sensis.com> writes:
JS> I have just used customize-option to set transistent-mode
JS> on. But that operation just erased all other content from my
JS> .emacs file! Is this a know risk when using customize-option
JS> instead of writing the instructions manually in the .emacs file?
Phil> I've had this happen very occasionally to me as well. For this
Phil> reason, among others, my .emacs now looks like this...
Jeff> Or better yet, maintain it in CVS.
I stopped doing this. I used to maintain a lot of tempo templates
customized in my .emacs. These often contained $Id: $ keywords, which
CVS would screw up. This was before I learnt how to stop that.
In the end, I don't version my .emacs. It's almost entirely
auto-generated anyway. I prefer to use numbered backups which happen
automatically also.
The handwritten part of my .emacs (main.el) is versioned.
Kevin> I think an even neater way is to put this at the top of your
Kevin> .emacs file:
Kevin> (setq custom-file "~/emacs.custom")
This also works well, of course. I'm still prefer keeping most of my
lisp out of .emacs and into subfiles in a ~/emacs directory. Horses
for courses.
Phil
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: customize-option erases .emacs contents!
@ 2005-04-25 18:18 Rancier, Jeff
0 siblings, 0 replies; 8+ messages in thread
From: Rancier, Jeff @ 2005-04-25 18:18 UTC (permalink / raw)
Or better yet, maintain it in CVS.
-----Original Message-----
From: Phillip Lord [mailto:p.lord@cs.man.ac.uk]
Sent: Monday, April 25, 2005 1:28 PM
To: help-gnu-emacs@gnu.org
Subject: Re: customize-option erases .emacs contents!
>>>>> "JS" == JS <dsa.@asdf.com> writes:
JS> I have just used customize-option to set transistent-mode
JS> on. But that operation just erased all other content from my
JS> .emacs file! Is this a know risk when using customize-option
JS> instead of writing the instructions manually in the .emacs file?
I've had this happen very occasionally to me as well. For this reason, among
others, my .emacs now looks like this...
;;Load my main emacs file
(add-to-list 'load-path "~/emacs")
(add-to-list 'load-path "~/emacs/packages")
(add-to-list 'load-path "~/emacs/published")
;; The first thing to do is load the packages directory. It provides ;;
autoloads for all of the packages that I use regularly, rather than ;;
anything else.
(load "package-autoload.el")
;; The I want to load my main file which is where everything is ;; actually
loaded. (load "main.el" )
(setq minibuffer-max-depth nil)
(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.
'(LaTeX-style-list (quote (("book") ("article") ("letter") ("prosper")
("report"))))
********************SNIP*******************
;;Load the post-custom file which has code which needs to be loaded er...
;;after the custom set vars. On the whole it is used to reset custom vars
;;for specific circumstances
(load "post-custom.el")
(put 'upcase-region 'disabled nil)
All of what use to be my .emacs is in "main.el". I also have a small
post-custom.el for the odd thing that has to be done after custom.
I think this is a neater way of doing things anyway.
I never found out a routine way of getting this to happen (*), so I don't
know if it's a bug. I also use numbered file backups, so it's always
recoverable.
Cheers
Phil
(1) I tried xemacs once and it wiped my .emacs for me. This was my own
stupid fault as it did ask me twice before doing it, and I still
said yes.
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* customize-option erases .emacs contents!
@ 2005-04-25 16:53 JS
2005-04-25 17:28 ` Phillip Lord
0 siblings, 1 reply; 8+ messages in thread
From: JS @ 2005-04-25 16:53 UTC (permalink / raw)
I have just used customize-option to set transistent-mode on. But that
operation just erased all other content from my .emacs file! Is this a know
risk when using customize-option instead of writing the instructions
manually in the .emacs file?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: customize-option erases .emacs contents!
2005-04-25 16:53 JS
@ 2005-04-25 17:28 ` Phillip Lord
2005-04-25 22:52 ` Kevin Rodgers
[not found] ` <mailman.2982.1114469895.2895.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 8+ messages in thread
From: Phillip Lord @ 2005-04-25 17:28 UTC (permalink / raw)
>>>>> "JS" == JS <dsa.@asdf.com> writes:
JS> I have just used customize-option to set transistent-mode
JS> on. But that operation just erased all other content from my
JS> .emacs file! Is this a know risk when using customize-option
JS> instead of writing the instructions manually in the .emacs file?
I've had this happen very occasionally to me as well. For this reason,
among others, my .emacs now looks like this...
;;Load my main emacs file
(add-to-list 'load-path "~/emacs")
(add-to-list 'load-path "~/emacs/packages")
(add-to-list 'load-path "~/emacs/published")
;; The first thing to do is load the packages directory. It provides
;; autoloads for all of the packages that I use regularly, rather than
;; anything else.
(load "package-autoload.el")
;; The I want to load my main file which is where everything is
;; actually loaded.
(load "main.el" )
(setq minibuffer-max-depth nil)
(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.
'(LaTeX-style-list (quote (("book") ("article") ("letter") ("prosper") ("report"))))
********************SNIP*******************
;;Load the post-custom file which has code which needs to be loaded er...
;;after the custom set vars. On the whole it is used to reset custom vars
;;for specific circumstances
(load "post-custom.el")
(put 'upcase-region 'disabled nil)
All of what use to be my .emacs is in "main.el". I also have a small
post-custom.el for the odd thing that has to be done after custom.
I think this is a neater way of doing things anyway.
I never found out a routine way of getting this to happen (*), so I don't
know if it's a bug. I also use numbered file backups, so it's always
recoverable.
Cheers
Phil
(1) I tried xemacs once and it wiped my .emacs for me. This was my own
stupid fault as it did ask me twice before doing it, and I still
said yes.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-04-26 10:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2966.1114453347.2895.help-gnu-emacs@gnu.org>
2005-04-26 9:45 ` customize-option erases .emacs contents! Phillip Lord
2005-04-25 18:18 Rancier, Jeff
-- strict thread matches above, loose matches on Subject: below --
2005-04-25 16:53 JS
2005-04-25 17:28 ` Phillip Lord
2005-04-25 22:52 ` Kevin Rodgers
[not found] ` <mailman.2982.1114469895.2895.help-gnu-emacs@gnu.org>
2005-04-26 6:29 ` JS
2005-04-26 8:29 ` Peter Dyballa
[not found] ` <mailman.3025.1114505114.2895.help-gnu-emacs@gnu.org>
2005-04-26 10:59 ` Jim Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).