help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: VHDL and Emacs (My experience)


From: Robert Thorpe
Subject: Re: VHDL and Emacs (My experience)
Date: 10 May 2007 06:54:23 -0700
User-agent: G2/1.0

On Apr 29, 3:47 pm, "mans" <(myname_here)address@hidden> wrote:
> 2- If I have a file that I modified with ISE, when I open it with Emacs, I
> can see a ^M at the end of each line. This generates error during
> indentation. I could not find any way to fix it. I only can remove them
> manually which is time consuming. Any way to do this in emacs or ISE or by
> any other tools?

That indicates that your file is stored with odd line endings.

Generally there are two styles of line ending, "Carriage Return" +
"Line Feed" CRLF which is used in MSDOS.  And simple Line-Feed (LF)
endings, used in Unix and now in Windows.

What Emacs does is to read the file and find out which sort of endings
are in use and automatically default to the right ones.  The problem
here is likely that you are saving the file with LF endings and
opening it again with ISE which uses CRLF endings.  Emacs doesn't
expect the endings to change as you edit the file.

The solution is probably to open and save the files initially using
CRLF endings.  So, to fix this open up your file using Emacs and type
C-x RET f "dos" RET.  Or select the menu Options->Mule->Set coding
systems->For Saving this Buffer.

Post again if doing the above doesn't work.



reply via email to

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