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
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to