# Emacs, rdebug, and ^M

**URL:** <https://www.ruby-forum.com/t/emacs-rdebug-and-m/166120>\
**Category:** Ruby\
**Created:** [April 22, 2009, 2:04am UTC](https://www.ruby-forum.com/t/emacs-rdebug-and-m/166120 "2009-04-22T02:04:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [April 22, 2009, 2:04am UTC](https://www.ruby-forum.com/t/emacs-rdebug-and-m/166120/1 "2009-04-22T02:04:03Z")

</div>

This is hopefully a simple issue, but google has not found me an answer  
yet.

I’m just starting to learn Ruby, and my IDE of choice is Emacs. I’ve  
installed the emacs extensions, and can run “rdebug” within a ruby  
buffer and it does the right thing, but all of the RDEBUG frames display  
‘^M’ at the end of the lines. While not a big issue, it does clutter  
the spaces unnecessarily.

How can I disable/remove/hide the ^M in these buffers?

Thanks!

---

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [April 22, 2009, 2:23am UTC](https://www.ruby-forum.com/t/emacs-rdebug-and-m/166120/2 "2009-04-22T02:23:01Z")

</div>

Ted Beatie wrote:

> Thanks!

this is indicative of dos line endings… Don’t know how to sort it  
out, but it’s a starting point

# ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.

---

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [April 22, 2009, 2:27am UTC](https://www.ruby-forum.com/t/emacs-rdebug-and-m/166120/3 "2009-04-22T02:27:33Z")

</div>

Michael M. wrote:

> this is indicative of dos line endings… Don’t know how to sort it  
> out, but it’s a starting point

I figure it’s some sort of translation issue, but it only appears in the  
RDEBUG emacs frames, and doesn’t appear in the Ruby or Debugger frames.  
Googling gives various hits for search-and-replacing in text files, but  
turns up nothing about debugging buffers.
