GNU bug report logs - #36703
25.2; Add support for MATLAB's keyword spmd to octave-mode

Previous Next

Package: emacs;

Reported by: Christian Ridderström <christian.ridderstrom <at> gmail.com>

Date: Wed, 17 Jul 2019 13:37:02 UTC

Severity: minor

Found in version 25.2

Fixed in version 27.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36703 in the body.
You can then email your comments to 36703 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36703; Package emacs. (Wed, 17 Jul 2019 13:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Ridderström <christian.ridderstrom <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 17 Jul 2019 13:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian Ridderström <christian.ridderstrom <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; Add support for MATLAB's keyword spmd to octave-mode
Date: Wed, 17 Jul 2019 10:46:00 +0200
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Sat, 20 Jul 2019 16:07:02 GMT) Full text and rfc822 format available.

Notification sent to Christian Ridderström <christian.ridderstrom <at> gmail.com>:
bug acknowledged by developer. (Sat, 20 Jul 2019 16:07:02 GMT) Full text and rfc822 format available.

Message #10 received at 36703-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Christian Ridderström
 <christian.ridderstrom <at> gmail.com>
Cc: 36703-done <at> debbugs.gnu.org
Subject: Re: bug#36703: 25.2; Add support for MATLAB's keyword spmd to
 octave-mode
Date: Sat, 20 Jul 2019 12:06:16 -0400
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





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 18 Aug 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.