all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs for VHDL editing
@ 2007-04-25 13:27 mans
  2007-04-25 15:07 ` Peter Dyballa
       [not found] ` <mailman.2517.1177514001.7795.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: mans @ 2007-04-25 13:27 UTC (permalink / raw)
  To: help-gnu-emacs

hello,
   I am new in Emacs. I am trying to use emacs for VHDL editing.
I downloaded Emacs _emacsw32 and installed it on my windows computer.

When I open a VHDL file with emacs, it shows ^M at the end of each line and 
the beatify  doesn't work properly but when I manually delete ^M from the 
ends of file, it is working properly.
What is this ^M and how I can beatify VHDL codes when there is ^M at the end 
of lines?

Regards

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs for VHDL editing
  2007-04-25 13:27 Emacs for VHDL editing mans
@ 2007-04-25 15:07 ` Peter Dyballa
       [not found] ` <mailman.2517.1177514001.7795.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2007-04-25 15:07 UTC (permalink / raw)
  To: mans; +Cc: help-gnu-emacs


Am 25.04.2007 um 13:27 schrieb mans:

> What is this ^M and how I can beatify VHDL codes when there is ^M  
> at the end
> of lines?

Specify the file's encoding precisely by adding a -dos or such. For  
example, list-coding-systems might list:

	iso-8859-15-mac
	iso-8859-15-dos
	iso-8859-15-unix
	iso-8859-15

M-x describe-coding-system RET can describe your recent situation.  
Based on this you can optimise your situation. With

	(prefer-coding-system '<some name>)

you can set one or more general preferences in ~/.emacs, in auto-mode- 
alist you can set another preference particular for the file type  
specified.

--
Greetings

   Pete

"Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?" -- Dan Jacobson, on comp.os.linux.advocacy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs for VHDL editing
       [not found] ` <mailman.2517.1177514001.7795.help-gnu-emacs@gnu.org>
@ 2007-04-27 16:20   ` weber
  0 siblings, 0 replies; 3+ messages in thread
From: weber @ 2007-04-27 16:20 UTC (permalink / raw)
  To: help-gnu-emacs

On 25 abr, 12:07, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 25.04.2007 um 13:27 schrieb mans:
>
> > What is this ^M and how I can beatify VHDL codes when there is ^M
> > at the end
> > of lines?
>
> Specify the file's encoding precisely by adding a -dos or such. For
> example, list-coding-systems might list:
>
>         iso-8859-15-mac
>         iso-8859-15-dos
>         iso-8859-15-unix
>         iso-8859-15
>
> M-x describe-coding-system RET can describe your recent situation.
> Based on this you can optimise your situation. With
>
>         (prefer-coding-system '<some name>)
>
> you can set one or more general preferences in ~/.emacs, in auto-mode-
> alist you can set another preference particular for the file type
> specified.
>
> --
> Greetings
>
>    Pete
>
> "Isn't vi that text editor with two modes... one that beeps and one
> that corrupts your file?" -- Dan Jacobson, on comp.os.linux.advocacy

I get that sometimes to, it's probably unix vs dos line endings..
Usually I just do a replace-regexp on "^M"s for nothing.
Tip: To enter that ^M you have to type C-q C-m
Please try it and see if it helps you.
-weber

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-27 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 13:27 Emacs for VHDL editing mans
2007-04-25 15:07 ` Peter Dyballa
     [not found] ` <mailman.2517.1177514001.7795.help-gnu-emacs@gnu.org>
2007-04-27 16:20   ` weber

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.