Subject: bug#36703: closed (Re: bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 20 Jul 2019 16:07:03 +0000

Your bug report

#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
36703: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36703
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode
From: Stefan Monnier <[email-masked]>
To: Christian Ridderström<[email-masked]>
Cc: [email-masked]
Date: Sat, 20 Jul 2019 12:06:16 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: 25.2; Add support for MATLAB's keyword spmd to octave-mode
From: Christian Ridderström <[email-masked]>
To: [email-masked]
Date: Wed, 17 Jul 2019 10:46:00 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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

-- 
Christian Ridderström,     +46-70 687 39 44