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

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

Re: those strange characters


From: Baloff
Subject: Re: those strange characters
Date: Tue, 26 Jul 2005 05:59:50 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

Baloff wrote:

Hello
I did
$script somefile
$ls
$exit
$cat somefile
shows the output of $ls

in emacs, C-x C-f somefile
the output of $ls, each item is listed between ^[[0m group of charactres on both sided of each item.

so if I have an item like myFile, it would look ^[[0mmyFile^[[0m

thanks
I have in my /.emacs
(global-set-key [f5] 'cut-ctrlM)
(defun cut-ctrlM()
(interactive)
(beginning-of-buffer)
(while (search-forward "\r" nil t)
(replace-match "" nil t)))

but when I hit [f5]
the minibuffer shows "Mark set" and nothing  happens in the buffer.
the same results happens when I M-x cut-ctrlM, "Mark set" and nothing else.

thanks


reply via email to

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