From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rahguzar Newsgroups: gmane.emacs.devel Subject: SageMath and Emacs Date: Thu, 09 May 2024 12:35:37 +0200 Message-ID: <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="32821"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 29.3 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 09 12:40:04 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 1s51Bx-0008Al-Qi for ged-emacs-devel@m.gmane-mx.org; Thu, 09 May 2024 12:40:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s51BW-0003aA-UM; Thu, 09 May 2024 06:39:34 -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 1s518y-0003CZ-7h for emacs-devel@gnu.org; Thu, 09 May 2024 06:36:56 -0400 Original-Received: from sender-pp-o91.zoho.eu ([136.143.169.91]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s518v-00009J-5Y for emacs-devel@gnu.org; Thu, 09 May 2024 06:36:55 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1715251005; cv=none; d=zohomail.eu; s=zohoarc; b=AI/jkELmbf+4dGobgVU3qoSN0gsoJmal7eqMIq5uD+xsWyuECxnSbxG1TuYj9sWmGhkMOs/kuwD+pTgBaiGZ/Qe6/YNZDk3hA6CPA8IOnKqokGc0Ee++MDy0BSXSQ+d4J3HU2B1FHzAlgUroVXsvJIiX+A4uUhgFf6qwZ8R+7Gs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1715251005; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=WX2QZOIYYKWva2w8HOq1qIRmvflBUEFDONqSXGSXU6s=; b=Xb0bjpxu2pza607e+88+TeyYNFSXb8KZXxrzFePWZxlL05S4339Pm3UVX22RYRuLFrlKOysA1n7a/GQEXO4YDvrrrG6tJOUR4k3TbDevVHXKvSwJCbsCRBXChNqLtggyg6ZsyGHVDGa+HJx8VuqAb4TlF8JY1fWO7qaqYSkKbLg= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1715251005; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=WX2QZOIYYKWva2w8HOq1qIRmvflBUEFDONqSXGSXU6s=; b=ML8D/rEPoiesiLm8SRB/CcLKPzXXJPO/Iqv4A2AGXOFcmLHLW5CfpjSpX8aPdxp3 BCpYABob7SqriwT6of17iTOHufRLu4li+m31KOUIHZmWSRVVI1eFo7Cwu5FAUbMaBBb R+m+KdSdPnwPNrbnOIbMeNO1m42+tH5in/5qMatQ= Original-Received: by mx.zoho.eu with SMTPS id 1715250938780511.59007529948383; Thu, 9 May 2024 12:35:38 +0200 (CEST) X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.91; envelope-from=rahguzar@zohomail.eu; helo=sender-pp-o91.zoho.eu 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 09 May 2024 06:39:33 -0400 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:319065 Archived-At: 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