From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: ELPA submission: mathjax.el Date: Thu, 17 Oct 2024 06:27:44 +0200 Message-ID: <87sesv9wvz.fsf@gmail.com> References: <87ldytjso0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25725"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 17 06:28:46 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t1I7x-0006Vz-PW for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Oct 2024 06:28:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1I7A-0007Pc-4o; Thu, 17 Oct 2024 00:27:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1I77-0007PG-PU for emacs-devel@gnu.org; Thu, 17 Oct 2024 00:27:53 -0400 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1I76-0003ws-57; Thu, 17 Oct 2024 00:27:53 -0400 Original-Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2fb501492ccso5102061fa.2; Wed, 16 Oct 2024 21:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729139269; x=1729744069; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=JBw6Aer6ztZcXKcf3gYrXp3CEvUav6V3llx3kGHEX60=; b=W9vrpMXGmbbybdUjXhu8zm2hIDXuz38oG++u0ANLCCVJ/WK0GuBFHElFxq5xt1/j5O 2x3XXXiESwA1IfCM+box8TUS0l46isXtFzppM/L2T9PTLfjLdxto2yZGdKZ0p2NLETKH gCIFpKSzfznUQNjkjFeZeaNTKmlo5u+c0sJgqNIiwv7jfw3f4www4Ttbn0pTf27Qmy65 P/Opt+ukyAuGI1OH7kz9QLMPeMRIatT+s8eQvZGi9UI+DmdWQk27Mui4EBVV7DrIIm5+ 6rIfZ/ID+7EunGZHsxvPS7QDqql2yiqFZoMtV+DrID3qmoGeqKWvu96GIbCsSwT1G4pv h6kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729139269; x=1729744069; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JBw6Aer6ztZcXKcf3gYrXp3CEvUav6V3llx3kGHEX60=; b=ZrK1np176UVwNd50X3+3dPQUChWH5o1pIw+m7bQF8zDSZtAR+YEtXJYrQMoSVGC8Sc drendvwpgTvQ8muZWcGbqV9S7zvMYzmQtlmANMvtCMXe3baPQHChEkT06GHpeVCtXzPM Uu2nGCTLkG6tVwY3YFV5kZOo/s1EEozKGz8eiiUYhJRtihy3b0chcu0yiO/ja0LsJwYH TpQk/OxVVJrUwTflLwJquejed9MJl2rTaK8tij6fOAhrkAtpdsVx8XUm95kDGVfdTU/E aRmcSmQrXo1IZVuj7kaphNL4Y0o8uiMTM99OLlWGpvRa5Rt2Y02nHWrJt/uyG3xmugok K8cg== X-Gm-Message-State: AOJu0YzMCKbr3YTzpIshHTRIVzS1xIn1bviiTc5QmaMgLRUojYANqj/4 xL93zjii4Q70fH+KN3BzyRG+6vMKW94EE7i6b6YkYh3L33xt9zq/znVK/A== X-Google-Smtp-Source: AGHT+IF0dHOer8/CerG6yXokgRuLKTyqEeSeskuQkKyZRvzg9QbF1i0GBDL4hdF8tPMtyuGalWlAiA== X-Received: by 2002:a05:651c:b12:b0:2fb:54f7:bcd9 with SMTP id 38308e7fff4ca-2fb54f7c7b0mr69786301fa.31.1729139268451; Wed, 16 Oct 2024 21:27:48 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c98d50770fsm2262342a12.43.2024.10.16.21.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 21:27:46 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Wed, 16 Oct 2024 23:54:45 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=arstoffel@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324618 Archived-At: On Wed, 16 Oct 2024 at 23:54, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > I would like to add the package residing at the following location to > > ELPA: > > > https://github.com/astoff/mathjax.el > > As I recall, mathjax does a useful job, but depends on a browser to > run special Javascript code. It has been some years since I heard > about that -- is my memory right? If not, could you explain how > things really work? If it was years ago then it was probably right at the time. In the meanwhile, however, standalone JS environments have appeared. Apparently many people like JS and use it to develop regular programs. MathJax is just a JS library and it can run in those standalone JS interpreters to produce images from formulas (in TeX or MathML notation). So that's what my package does: it runs one of those standalone JS interpreter and loads the MathJax library in it. > This raises an issue which is one of the biggest issues in computing > and freedom: how to give users control over the Javascript programs > that run in their browsers. Just to emphasize: MathJax as well as its JS dependencies and the standalone JS interpreter are all free software. So for my package this is not an issue. > I have an idea for how perhaps to do that. I don't know enough > about web browsers and Javascript to be sure whether it can work. > Could you please work with me to explore the possibility? > > The first step is to think about how the Mathjax Javascript program > couples to and relates to the Emacs Lisp program. Could you please > explain how that coupling works now? The coupling is via good old pipes, with MathJax running as a subprocess of Emacs (like a non-interactive Comint, basically).