unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* SageMath and Emacs
@ 2024-05-09 10:35 Rahguzar
  2024-05-09 10:46 ` Eli Zaretskii
  2024-05-09 12:24 ` [ELPA] " Philip Kaludercic
  0 siblings, 2 replies; 8+ messages in thread
From: Rahguzar @ 2024-05-09 10:35 UTC (permalink / raw)
  To: emacs-devel

Dear Emacs developers,

I want to ask opinions about including support for SageMath in Emacs or
GNU ELPA.

SageMath is a niche software but I think the niche is a very important
one. It is also the best computer algebra system which is also free
software and hence important to advance free software in a field
dominated proprietary software. (This dominance is especially sad since
proprietary software is a very shaky foundation for scientific
research.)

The SageMath project project provides Emacs modes both for source files
and repl. They code can be found at
https://github.com/sagemath/sage-shell-mode

It is a large code base but looking at it a year or so ago, I realized
that most of the code was implementing functionality that is by now
included in the python.el in Emacs. SageMath is a thin wrapper around Python
and as a result basic support for it can be provided by setting some
variables provided by python.el appropriately.

I wrote such a wrapper around python.el which is hosted at
https://codeberg.org/rahguzar/sage-mode

There is more code there than needed because I wanted to change some
behaviors of python.el but now I think those deviations should be
removed. As a result I think basic functionality can be provided by
addition of 200-300 lines in python.el (or a separate file requiring
it). If there is an interest in providing out of box support for
SageMath I can prepare such a patch.

I have been meaning to send this email for a while but never came around
to it. I am sending this now because I saw Eli's message about a pretest
for Emacs 30 being imminent. It might be already too late for Emacs 30
but if the pretest is a week or two away there might be time.

If inclusion in Emacs core is not considered a good option, I will like
to contribute support to ELPA. I would like to hear opinions of the
people maintaining the current SageMath support and opened an issue at
https://github.com/sagemath/sage-shell-mode/issues/80 but I haven't
heard from them (it has only been a few days).

Thanks,
Rahguzar



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-21 17:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 10:35 SageMath and Emacs Rahguzar
2024-05-09 10:46 ` Eli Zaretskii
2024-05-09 13:01   ` Rahguzar
2024-05-09 12:24 ` [ELPA] " Philip Kaludercic
2024-05-20  7:03   ` Philip Kaludercic
2024-05-20 15:47     ` Rahguzar
2024-05-21  9:54       ` Augusto Stoffel
2024-05-21 17:52         ` Rahguzar

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).