From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 09:36:10 2019 Received: (at submit) by debbugs.gnu.org; 17 Jul 2019 13:36:10 +0000 Received: from localhost ([127.0.0.1]:51716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnk6K-0005TZ-Tu for submit@debbugs.gnu.org; Wed, 17 Jul 2019 09:36:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:56528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnfa3-0006jR-Tj for submit@debbugs.gnu.org; Wed, 17 Jul 2019 04:46:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51152) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnfa1-00070F-LR for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 04:46:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnfa0-0000JF-8v for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 04:46:29 -0400 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]:37102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnfa0-0000H8-0l for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 04:46:28 -0400 Received: by mail-io1-xd31.google.com with SMTP id q22so44498336iog.4 for ; Wed, 17 Jul 2019 01:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GruadL9BEYQTi8zbaH4sgnQnvmQLoZRWBnq+ybYJLNw=; b=GNhfogjntKvwyLR9bfVZvGy7ES3TQOZOxqFmb5pqV92z8iqhCfrODqW0qsw3qmBJbb H9/iccHDDnCJGnJss9ctW2ObE5GqQJlfin7Uu1z84fIhpwdCpFWbHSMPrrIYHVomF98m TWWCKTzFia4TOw3MQ1CU/4r/OeE9/xiBztXqp6JY74SeLHn6hrvmZs7yZGweq9oAnhWk m0NbrXJzO2gJJRE/7J599YnjAAOPqj3dx9+5rwNn8u74LAfA9P74eUzmMrYlUY++KMOb 8+SlP8CFKo584JUOIninkMZO+imxFYvbcWqPGThAszknqWxXk6VxOhGnMR/mjyZB8kNy HnFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GruadL9BEYQTi8zbaH4sgnQnvmQLoZRWBnq+ybYJLNw=; b=k+wR/Vx1ZMOLIM58p8ksJ38Eq2ZyHjlEa5p+kSLxUa2f0oVxkhHGJD9JBCKk1Pj7ZO tLKNrtBmaiPTl64uVmMBw8FGjPYFchk6BJcSSlBr0oUXK3ObCbTcYY4/oK9r4wZZVcdl bRj9kS03Bw7maHr56kEyZBmazcPvrQ+s9ftr+nyp12cI0Eg2AP6X+BHJQZtnqGe60g3v IRdku8Dbr9oDNHPGCpY5oqoW5ZUtoX4e9ThfwsS3/ci805jk2YDAcbnNsqKXuFo97FyV yDXS9DfpbFheClm486SqZ9V49mT2eXbCk7UgS311gDlsr/+uOks46IuqcKZRUolWSP0s rqRA== X-Gm-Message-State: APjAAAVIGj54gwL3Z62vRbP21X7k7uGtlKCrU2HUU3lMmy+jX85XgLXo 6dHQ+cOPyohb1e7WTCmNakA25MXbcAU1nMv9MCc5foNq X-Google-Smtp-Source: APXvYqzeEVbXD0+SfIT0iE+lVV6cNub0DhGzyBol1iNGUsZ1hNXdd5vkPuPszvGoUJ5Pwiq+bfAE2oChLfoQvK862pI= X-Received: by 2002:a05:6638:cf:: with SMTP id w15mr40777769jao.136.1563353186175; Wed, 17 Jul 2019 01:46:26 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Christian_Ridderstr=C3=B6m?= Date: Wed, 17 Jul 2019 10:46:00 +0200 Message-ID: Subject: 25.2; Add support for MATLAB's keyword spmd to octave-mode To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000520e22058ddc87e2" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d31 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 17 Jul 2019 09:36:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000520e22058ddc87e2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please consider adding support for octave-mode to recognise the (MATLAB) keyword 'spmd'. This should include that the 'spmd' keyword can match a corresponding 'end'. Problem: When using octave-mode to edit MATLAB code that uses the keyword 'spmd', the indentation becomes incorrect. This keyword can be used with the following syntax (see https://se.mathworks.com/help/parallel-computing/spmd.html): spmd statements end Since octave-mode doesn't understand that the 'end' is supposed to match the 'spmd', later code blocks get incorrect indentation as octave-mode thinks there's an extra 'end' in the code. Cheers, Christian In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian built on lgw01-amd64-050 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.2 LTS Major mode: Octave --=20 Christian Ridderstr=C3=B6m, +46-70 687 39 44 --000000000000520e22058ddc87e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Please consider adding support for octave-mode to recognise th= e (MATLAB) keyword 'spmd'. This should include that the 'spmd&#= 39; keyword can match a corresponding 'end'.

Problem:
Whe= n using octave-mode to edit MATLAB code that uses the keyword 'spmd'= ;, the indentation becomes incorrect.
This keyword can be used with the = following syntax (see https://se.mathworks.com/help/parallel-computing/spmd.htm= l):

=C2=A0 =C2=A0 spmd
=C2=A0 =C2=A0 =C2=A0 =C2=A0 statements=
=C2=A0 =C2=A0 end

Since octave-mode doesn't understand that = the 'end' is supposed to match the 'spmd', later code block= s get incorrect indentation as
octave-mode thinks there's an extra &= #39;end' in the code.

Cheers,
Christian

In GNU Ema= cs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
=C2=A0of 2017-09-2= 2, modified by Debian built on lgw01-amd64-050
Windowing system distribu= tor 'The X.Org Foundation', version 11.0.11906000
System Descrip= tion: Ubuntu 18.04.2 LTS

Major mode: Octave

--
Chr= istian Ridderstr=C3=B6m, =C2=A0 =C2=A0 +46-70 687 39 44
--000000000000520e22058ddc87e2-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 20 12:06:28 2019 Received: (at 36703-done) by debbugs.gnu.org; 20 Jul 2019 16:06:28 +0000 Received: from localhost ([127.0.0.1]:57816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1horsS-0001Ze-BM for submit@debbugs.gnu.org; Sat, 20 Jul 2019 12:06:28 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1horsP-0001Ys-L7 for 36703-done@debbugs.gnu.org; Sat, 20 Jul 2019 12:06:26 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CE49180E0B; Sat, 20 Jul 2019 12:06:19 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CDCF480041; Sat, 20 Jul 2019 12:06:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563638778; bh=vC+7cVWjXeZKTCmFKHj6HJqCauChQ4ZFAmWeFofhPc0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BN8B3zOBo9uC16B30tAvVMr7qFJ9joKn05nzVLLYhT1F9L9GuVbAbMEPYmY7Cgkv7 FkvFk1DkR6L2Q3Ku42YmzfJzuo3bmgVo/pXNH3DtZdUoXTb3A3XxVzOwfptSGry4C3 nML1BvztukwCFS3hbDZJkG0aHxzoGzcwMOW6q4lB07tBCYDAJw26UBtb5i/d6VVu8f rEZFDkqHqrNG6Bukwbe2hOk/F1mXJNW6aMkkul2mBhcSeaWVCeMR2i5V6kvEfOPxF3 vB2EXdV+k7Lvko7DwhVP94GdxUhZgx7OIL1CtRUppT4nGNVvy3a9gNjL794VzK6s9P GFr1KeKbUZUSQ== Received: from pastel (unknown [216.154.19.233]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 42914120B84; Sat, 20 Jul 2019 12:06:18 -0400 (EDT) From: Stefan Monnier To: Christian =?windows-1252?Q?Ridderstr=F6m?= Subject: Re: bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode Message-ID: References: Date: Sat, 20 Jul 2019 12:06:16 -0400 In-Reply-To: ("Christian \=\?windows-1252\?Q\?Ridderstr\=F6m\=22's\?\= message of "Wed, 17 Jul 2019 10:46:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.035 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36703-done Cc: 36703-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Version:27.1 > Please consider adding support for octave-mode to recognise the (MATLAB) > keyword 'spmd'. This should include that the 'spmd' keyword can match a > corresponding 'end'. Should be fixed in master, thank you, Stefan From unknown Sat Jun 14 19:05:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Aug 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator