unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thomas Fitzsimmons <fitzsim@fitzsim.org>
To: emacs-devel@gnu.org
Subject: [ELPA] New package: firefox-javascript-repl
Date: Sat, 27 May 2023 10:57:40 -0400	[thread overview]
Message-ID: <m3edn1akkb.fsf@fitzsim.org> (raw)

Hi,

I just published a new package:

https://git.sr.ht/~fitzsim/firefox-javascript-repl/tree/main/item/firefox-javascript-repl.el

I think it may be useful to others, so I'm proposing it for GNU ELPA.

From the commentary:

    REPL into a new Firefox instance's JavaScript engine.  A new
    throwaway Firefox profile directory is created before each run, so
    you won't need to modify your existing profiles.  This mode takes
    care of starting the new Firefox process in debugging mode, which
    may be tedious to do by hand.
    
    This `comint' mode is barebones and unstructured, meant for quick
    JavaScript experiments.  On newer versions of Emacs with
    `comint-indirect-buffer' support, syntax highlighting happens on
    the current statement.
    
    Paste each statement from `example.js' into the REPL to try it out.

I will try to keep the current base functionality working with the
latest Firefox and Firefox ESR releases.  Past attempts at such REPLs
like jsSlime have not kept up with the evolution of the Firefox Remote
Debugging Protocol.  I could not get skewer-mode or dap-mode working;
there was so much compatibility debugging that it made more sense to
write my own minimal REPL -- again, only for the purposes of quick
JavaScript experimentation.

Thomas



                 reply	other threads:[~2023-05-27 14:57 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3edn1akkb.fsf@fitzsim.org \
    --to=fitzsim@fitzsim.org \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).