unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Thorpe <rthorpe@realworldtech.com>
To: help-gnu-emacs@gnu.org
Subject: Re: VHDL and Emacs (My experience)
Date: 10 May 2007 06:54:23 -0700	[thread overview]
Message-ID: <1178805263.183499.204940@e65g2000hsc.googlegroups.com> (raw)
In-Reply-To: <1e2Zh.95697$ne6.70835@fe1.news.blueyonder.co.uk>

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.

  parent reply	other threads:[~2007-05-10 13:54 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-28 19:03 VHDL and Emacs (My experience) mans
2007-04-28 19:38 ` Mike Treseler
2007-04-29  0:30 ` Lennart Borgman (gmail)
     [not found] ` <mailman.2661.1177807020.7795.help-gnu-emacs@gnu.org>
2007-04-29 14:47   ` mans
2007-04-30  9:57     ` JK
2007-04-30 11:27       ` mans
2007-04-30 12:02         ` Lennart Borgman (gmail)
2007-04-30 15:59         ` JK
2007-05-10  8:58         ` mit.brooks
2007-04-30 19:47       ` Mike Treseler
2007-05-10 13:54     ` Robert Thorpe [this message]
2007-05-10  2:00 ` JussiJ
2007-05-10 11:33 ` Marcus Harnisch
2007-05-11 13:18   ` Andy
2007-05-11 19:31     ` Drew Adams
2007-05-14  8:07     ` Martin Thompson
2007-05-14 17:07     ` Mike Treseler
2007-05-14 18:07       ` Andy
2007-05-14 18:47         ` Drew Adams
2007-05-14 18:56           ` Lennart Borgman (gmail)
2007-05-14 19:02             ` Drew Adams
2007-05-14 18:51         ` Lennart Borgman (gmail)
2007-05-14 19:10         ` Mike Treseler
2007-05-15 13:28           ` Andy
2007-05-15 13:57             ` Seweryn Kokot
2007-05-15 14:01             ` Drew Adams
2007-05-15 16:49             ` Mike Treseler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1178805263.183499.204940@e65g2000hsc.googlegroups.com \
    --to=rthorpe@realworldtech.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).