From: Shakthi Kannan <shakthimaan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Filename clickable in npm error output (coffeescript)
Date: Sun, 8 Mar 2015 09:12:22 +0530 [thread overview]
Message-ID: <CABG-yt2RHCeXx7r7W_=GWsR1eXot=HDx7o1OWrTLtBEKUWeerg@mail.gmail.com> (raw)
Hi,
I want to be able to click on a file in the error output of npm
(coffeescript files), and open the file in an Emacs buffer.
I have loaded js-config.el, installed js-comint (using Cask), and
jshint (npm install -g). I am trying to test the following test.coffee
code in Emacs 24.3.1 on Fedora 20 (x86_64):
for i in [0..5]
consoleee.log "Hello #{i}"
It loads in the coffee REPL with the output when using C-c C-b:
------> for i in [0..5]
....... consolee.log "Hello #{i}"
.......
....... ReferenceError: consolee is not defined
at repl:5:19
at repl:8:3
at REPLServer.replDefaults.eval
(/usr/share/coffee-script/lib/coffee-script/repl.js:33:28)
at repl.js:239:12
at Interface.<anonymous>
(/usr/share/coffee-script/lib/coffee-script/repl.js:62:9)
at Interface.emit (events.js:117:20)
at ReadStream.<anonymous>
(/usr/share/coffee-script/lib/coffee-script/repl.js:85:13)
at ReadStream.emit (events.js:117:20)
at emitKey (readline.js:1095:12)
at readline.js:1080:7
The filenames in the output are not clickable. From the js-config.el,
shouldn't the " at" be stripped, and the js-hint should produce an
output where the filenames can be opened in a new Emacs buffer? How is
it possible to achieve this? Hitting C-c C-u says it is undefined.
What could I be missing?
If anyone can share their Emacs coffeescript configuration, that will
be helpful too.
Thanks!
SK
--
Shakthi Kannan
http://www.shakthimaan.com
reply other threads:[~2015-03-08 3:42 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-yt2RHCeXx7r7W_=GWsR1eXot=HDx7o1OWrTLtBEKUWeerg@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.