From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: [ELPA] Re: SageMath and Emacs Date: Thu, 09 May 2024 12:24:03 +0000 Message-ID: <87o79f18d8.fsf@posteo.net> References: <87pltv9ssm.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5155"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Rahguzar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 09 14:25:18 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 1s52pq-0001Am-C9 for ged-emacs-devel@m.gmane-mx.org; Thu, 09 May 2024 14:25:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s52p1-0000T9-6A; Thu, 09 May 2024 08:24:27 -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 1s52or-0000SF-Ku for emacs-devel@gnu.org; Thu, 09 May 2024 08:24:22 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s52oi-0004Uj-PL for emacs-devel@gnu.org; Thu, 09 May 2024 08:24:13 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B69C8240103 for ; Thu, 9 May 2024 14:24:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715257444; bh=U5AYnpfpsySZ9rBi7Tts5MjNw7uMjTHixLm5lum6ORQ=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=gVoraiC1IvW7zvI5HS9HV3Vqjckx6XrD7YXFgj8Opy40TTk1TvHaKWhrDKRP3vfPv mRCXv29bzD4ENPyGjFHp/Hohxzlsw99Vw1/SS7yJTO04pUtRiQ8obBHbMWEBYYKgxL CKZVYIIX4XI2UrOg2iERdbAq3YpY0pMyloCcSrgxPwIzv5D+w23hK2qyl/LuSHLRA/ wjwFdDW6SVdDYeTSIv01etvOtE3joo6DtE9p0CPKohyTs9HtbUk8B1EROG8qWyZFTs 9Yb6L27sJQ+eTmQm47f+7DZvS155VBEBFMphhCoKemXmCvFGif5YMuai8XM3px/WBH qJyVrFV9I/+8A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VZrm40FKPz9rxF; Thu, 9 May 2024 14:24:03 +0200 (CEST) In-Reply-To: <87pltv9ssm.fsf@zohomail.eu> (rahguzar@zohomail.eu's message of "Thu, 09 May 2024 12:35:37 +0200") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:319071 Archived-At: Rahguzar writes: > 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). It certainly can be added to ELPA, but I guess it would be easier to discuss the matter if you could provide a patch for emacs.git, if that is not too much work. > Thanks, > Rahguzar > > -- Philip Kaludercic on peregrine