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

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

Re: ^M chars in *Async Command Output*


From: Sebastian Tennant
Subject: Re: ^M chars in *Async Command Output*
Date: Sat, 24 Jan 2009 06:35:33 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Quoth Sebastian Tennant <address@hidden>:
> A function; (comint-carriage-motion), and a variable;
> comint-inhibit-carriage-motion, exist precisely for this purpose.
>
> How best to apply them to buffer *Async Command Output* is something I'm
> still working on.

And it turns out neither of these are any help!

The best (shortest) solution I can find is this:

 (add-hook 'shell-mode-hook
           (lambda ()
             (when (equal (buffer-name (current-buffer)) "*Async Shell 
Command*")
               (set-process-filter proc 'comint-output-filter))))

It's ugly, (proc is a local variable!), but short of patching
shell-command it does the trick for now.

Sebastian
-- 
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap





reply via email to

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