From: Shakthi Kannan <shakthimaan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: npm control characters in compilation output
Date: Mon, 6 Jul 2015 16:13:44 +0530 [thread overview]
Message-ID: <CABG-yt2WdOUE8HCpi-CyOoTKH0h6f=Su5Q-wihXaTzzvRJZFEQ@mail.gmail.com> (raw)
Hi,
I am currently testing the following code snippet:
=== ~/.emacs ===
(setq inferior-js-mode-hook
(lambda ()
;; We like nice colors
(ansi-color-for-comint-mode-on)
;; Deal with some prompt nonsense
(add-to-list
'comint-preoutput-filter-functions
(lambda (output)
(replace-regexp-in-string "\033\\[[0-9]+[GK]" "" output)))))
;; for displaying ANSI escape sequences correctly
(eval-after-load 'compile
'(add-hook 'compilation-filter-hook
(lambda () (ansi-color-process-output nil))))
(defun npm-test ()
(interactive)
(let ((root (locate-dominating-file default-directory "package.json")))
(unless root
(error "Here is not npm package"))
(let ((default-directory root))
(compile "npm run test"))))
=== END ===
After evaluating the above functions, and running 'npm-test', I still
see control characters in the *Compilation* buffer. What could I be
missing?
The detailed issue is available at:
https://github.com/defunkt/coffee-mode/issues/306
Appreciate any help in this regard,
Thanks!
SK
--
Shakthi Kannan
http://www.shakthimaan.com
reply other threads:[~2015-07-06 10:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABG-yt2WdOUE8HCpi-CyOoTKH0h6f=Su5Q-wihXaTzzvRJZFEQ@mail.gmail.com' \
--to=shakthimaan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.