From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: could matlab-mode be in ELPA or the GNU emacs tree (like auctex and org-mode)? Date: Sun, 21 Nov 2021 10:39:31 +0200 Message-ID: <834k85sy0s.fsf@gnu.org> References: <878rxiu323.fsf@mat.ucm.es> <87v90mrkvu.fsf@mat.ucm.es> <837dd1syt9.fsf@gnu.org> <87k0h1syd1.fsf@mat.ucm.es> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30129"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 21 09:40:48 2021 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 1moiP2-0007dg-8f for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Nov 2021 09:40:48 +0100 Original-Received: from localhost ([::1]:40550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moiP1-0003do-7o for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Nov 2021 03:40:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moiNo-0001l6-D1 for emacs-devel@gnu.org; Sun, 21 Nov 2021 03:39:32 -0500 Original-Received: from [2001:470:142:3::e] (port=45020 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moiNn-0000RU-It; Sun, 21 Nov 2021 03:39:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UBxG2l53pmhm3TVuOp7qPETWLaOcfF2a9kf57cMlmBg=; b=e29gHFUjfPU2 HZpy8xrgVV9lhd44MyuifS4o6ZQgao5vKN2XDXdY3SabloXSWt9XJt+IhtZDD10uOuJCofDKBqjTc qBIOwxhOjwZ/L4gZ6HXUgJMchZs7GqLSx+NwuMX3o3zlOyXKoWan/BGoq3KqYSdiRYipFWRtzrENw KODvOy3sNUYN2cL0Nw0N4NCo0KnW7VS9+1w9NPTnBA6gX9Qfo06CRGdYNEpuQyDugjmrwbeW7RcGQ zDPwjMjhj0DJw/5PXN58hiKGLxtqMEoNUU95waaK1qE1+8Muiy6p/03nW/7ysNY3tvQ6QS+ARKGWX i7BoeZ3/TiLTT4wCfZOybg==; Original-Received: from [87.69.77.57] (port=4988 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moiNj-0007UU-O1; Sun, 21 Nov 2021 03:39:31 -0500 In-Reply-To: <87k0h1syd1.fsf@mat.ucm.es> (message from Uwe Brauer on Sun, 21 Nov 2021 09:32:10 +0100) 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" Xref: news.gmane.io gmane.emacs.devel:279829 Archived-At: > From: Uwe Brauer > Date: Sun, 21 Nov 2021 09:32:10 +0100 > > 1. You can use your favorite editor for writing code. The Matlab code editor is IMNSHO vastly superior, as it has code completion, links to the Matlab documentation, etc. Emacs can at best be a dumb text editor in this regard. > 2. Matlab-mode has a specific syntax support (like auctex does) that concerns keyword expansion, fontification and these sorts of things. That could be easily merged into Octave mode, I think. the syntax is similar, right? > 3. It has a function matlab-shell that does allow you execute code, either the whole part or just parts of it (you have a similar feature using org mode, the python kernel, and jupyter, however not all commands are supported using org mode, plotting for example is not, debugging neither). Again a similarity with auctex > > 4. You can debug code, although that worked better in the past, but it is still quite reasonable Don't these work much better in the Matlab interpreter? > > I'm asking because I never understood why people who use Matlab would > > like to use Emacs in conjunction with Matlab, since the Matlab > > interactive mode provides so many features that are practically > > necessary for any reasonable use of Matlab. So what can Emacs > > possibly add to that? > > I am not sure what you mean by interactive mode here? Where you get the ">>" prompt and can examine data, run code fragments, etc. The REPL. > If this is the case, then, you cannot debug, and you cannot execute code from emacs, it is more of a one way thing. Given the above, I still don't understand why you'd want to have Emacs support for it. Why not use the Matlab facilities, which AFAIK are significantly more powerful and flexible than anything Emacs can reasonably provide?