* cant stop emacs automatically adding # -*- coding: utf-8 -* when saving files @ 2009-10-23 5:11 diegofmonaco 2009-10-23 15:19 ` Peter Dyballa 0 siblings, 1 reply; 4+ messages in thread From: diegofmonaco @ 2009-10-23 5:11 UTC (permalink / raw) To: Help-gnu-emacs When I try to save some files in emacs it automatically inserts the following comment in the first line of the buffer : # -*- coding: utf-8 -*, and I cant get rid off it!!!!, if I erase it when I save the file emacs inserts it again! I have tried everything I have found about emacs and coding systems but nothing seems to work, I have even tried different versions of emacs 23.0 from ubuntu repositories, 23.1 compiled form source , 23.1 snapshot and with all its the same problem. The problem its only with some files but I dont know why! Please Help! I have been googling for days and nothing. Thanks in advance! -- View this message in context: http://www.nabble.com/cant-stop-emacs-automatically-adding----*--coding%3A-utf-8--*-when-saving-files-tp26021004p26021004.html Sent from the Emacs - Help mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cant stop emacs automatically adding # -*- coding: utf-8 -* when saving files 2009-10-23 5:11 cant stop emacs automatically adding # -*- coding: utf-8 -* when saving files diegofmonaco @ 2009-10-23 15:19 ` Peter Dyballa 2009-10-23 15:39 ` diegofmonaco [not found] ` <mailman.9336.1256312396.2239.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 4+ messages in thread From: Peter Dyballa @ 2009-10-23 15:19 UTC (permalink / raw) To: diegofmonaco; +Cc: Help-gnu-emacs Am 23.10.2009 um 07:11 schrieb diegofmonaco: > The problem its only with some files but I dont know why! Check the mode of the files. Try to launch GNU Emacs (which version, from where?) with -q and with -Q! Same results? Compile (and install) GNU Emacs yourself! Without possible Ubuntu service... -- Greetings Pete The problem with the French is that they don't have a word for « entrepreneur ». – Georges W. Bush ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cant stop emacs automatically adding # -*- coding: utf-8 -* when saving files 2009-10-23 15:19 ` Peter Dyballa @ 2009-10-23 15:39 ` diegofmonaco [not found] ` <mailman.9336.1256312396.2239.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 4+ messages in thread From: diegofmonaco @ 2009-10-23 15:39 UTC (permalink / raw) To: Help-gnu-emacs Peter Dyballa wrote: > > > Am 23.10.2009 um 07:11 schrieb diegofmonaco: > >> The problem its only with some files but I dont know why! > > Check the mode of the files. > > I've found the solution!!, the problem was only with some ruby files so I have found the function in ruby-mode who was doing this "magic comment", the variable for deactivate this is: (setq ruby-insert-encoding-magic-comment nil) thanks peter for yout help -- View this message in context: http://www.nabble.com/cant-stop-emacs-automatically-adding----*--coding%3A-utf-8--*-when-saving-files-tp26021004p26028672.html Sent from the Emacs - Help mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.9336.1256312396.2239.help-gnu-emacs@gnu.org>]
* Re: cant stop emacs automatically adding # -*- coding: utf-8 -* when saving files [not found] ` <mailman.9336.1256312396.2239.help-gnu-emacs@gnu.org> @ 2009-11-18 10:27 ` moktin 0 siblings, 0 replies; 4+ messages in thread From: moktin @ 2009-11-18 10:27 UTC (permalink / raw) To: help-gnu-emacs Thanks a lot ! ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-18 10:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-10-23 5:11 cant stop emacs automatically adding # -*- coding: utf-8 -* when saving files diegofmonaco 2009-10-23 15:19 ` Peter Dyballa 2009-10-23 15:39 ` diegofmonaco [not found] ` <mailman.9336.1256312396.2239.help-gnu-emacs@gnu.org> 2009-11-18 10:27 ` moktin
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).