emacs-devel
[Top][All Lists]
Advanced

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

Re: eshell ansi colors, copyright q


From: Mark A. Hershberger
Subject: Re: eshell ansi colors, copyright q
Date: Sun, 11 Mar 2007 17:36:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux)

Richard Stallman <address@hidden> writes:

> The question is how much new or changed text you got from that snippet.
> Can you show us?

On the wiki (http://www.emacswiki.org/cgi-bin/wiki/EshellColor):

    (defun eshell-handle-ansi-color ()
      (ansi-color-apply-on-region eshell-last-output-start
                                  eshell-last-output-end))
    (add-to-list 'eshell-output-filter-functions 'eshell-handle-ansi-color)

In my diff:

   (defun eshell-handle-ansi-color ()
     (ansi-color-apply-on-region eshell-last-output-start
                                 eshell-last-output-end))

   (custom-add-option 'eshell-output-filter-functions
                      'eshell-handle-ansi-color)

So, 3 identical lines and 1ish different one.  I'm not sure how the code
could be done differently, unless I was to change the name of the
function.

Mark.

-- 
http://hexmode.com/
GPG Fingerprint: 7E15 362D A32C DFAB E4D2  B37A 735E F10A 2DFC BFF5

The most beautiful experience we can have is the mysterious.
    -- Albert Einstein, The World As I See it





reply via email to

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