[Top][All Lists]

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

Re: if both .emacs and .emacs.elc,which one emacs load?

From: Piet van Oostrum
Subject: Re: if both .emacs and .emacs.elc,which one emacs load?
Date: 25 May 2003 15:30:07 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Eli Zaretskii" <address@hidden> (EZ) wrote:

>> From: Niels Freimann <address@hidden>
>> Reply-To: address@hidden
>> Date: Sat, 24 May 2003 13:00:08 +0200
>> ... however it works on:
>> -linux
>> -cygwin (windows)
>> -native windows
>> no matter its a tty or x11 (motif,gtk2)

EZ> The Windows port allows the init file to be called _emacs; some
EZ> Windows users think (incorrectly) that file names with leading dots
EZ> are not allowed.  Your code will fail for such users.

EZ> Is it so hard to make an allowance for "_emacs" that you are so
EZ> motivated to reject my suggestion?

Make after-save-hook local in that buffer and the test can disappear. 
For example, I have:

;;; Local Variables:
;;; after-save-hook: ((lambda () (byte-compile-file buffer-file-name)))
;;; End:

Piet van Oostrum <address@hidden>
Private email: address@hidden

reply via email to

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