Article View: comp.lang.vhdl
Article #465Re: VHDL and Emacs (My experience)
From: Robert Thorpe
Date: Thu, 10 May 2007 13:54
Date: Thu, 10 May 2007 13:54
25 lines
2699 bytes
2699 bytes
On Apr 29, 3:47 pm, "mans" <(myname_here)_123...@yahoo.com> 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.
Technical Details
Message-ID:
<1178805263.183499.204940@e65g2000hsc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mailReferences:
<OTMYh.92377$ne6.27711@fe1.news.blueyonder.co.uk> <mailman.2661.1177807020.7795.help-gnu-emacs@gnu.org> <1e2Zh.95697$ne6.70835@fe1.news.blueyonder.co.uk>Show Full Headers
Complete Article Headers
X-Google-Thread: 1089ad,658185d15bd9585d X-Google-Thread: 103b8b,658185d15bd9585d X-Google-Attributes: gid1089ad,gid103b8b,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mail From: Robert Thorpe <rthorpe@realworldtech.com> Newsgroups: comp.lang.vhdl,gnu.emacs.help Subject: Re: VHDL and Emacs (My experience) Date: 10 May 2007 06:54:23 -0700 Organization: http://groups.google.com Lines: 26 Message-ID: <1178805263.183499.204940@e65g2000hsc.googlegroups.com> References: <OTMYh.92377$ne6.27711@fe1.news.blueyonder.co.uk> <mailman.2661.1177807020.7795.help-gnu-emacs@gnu.org> <1e2Zh.95697$ne6.70835@fe1.news.blueyonder.co.uk> NNTP-Posting-Host: 163.244.62.65 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1178805263 8707 127.0.0.1 (10 May 2007 13:54:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 May 2007 13:54:23 +0000 (UTC) In-Reply-To: <1e2Zh.95697$ne6.70835@fe1.news.blueyonder.co.uk> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 EMF1ASPROXY03 Complaints-To: groups-abuse@google.com Injection-Info: e65g2000hsc.googlegroups.com; posting-host=163.244.62.65; posting-account=hWoAPxMAAAAnBKSBz1ZivwUPPjEuve7bvVCHZQ8rhrluPfwcBJd92w