GNU bug report logs -
#14399
octave-mode bug
Previous Next
Reported by: Tom Olin <tom_olin <at> partech.com>
Date: Tue, 14 May 2013 17:09:02 UTC
Severity: normal
Done: Chong Yidong <cyd <at> gnu.org>
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 14399 in the body.
You can then email your comments to 14399 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 14 May 2013 17:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tom Olin <tom_olin <at> partech.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 14 May 2013 17:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The following code does not indent correctly (IMHO) with octave-mode:
vec = [...
one;...
two;...
three];
What I get is this:
vec = [...
one;...
two;...
three];
Emacs : GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, X toolkit, Xaw scroll bars)
of 2013-03-21 on alum.local
Package: Emacs version 24.3.1
current state:
==============
(setq
octave-blink-matching-block t
octave-block-offset 2
octave-comment-char 35
octave-continuation-offset 4
octave-continuation-string "..."
octave-send-echo-input t
octave-send-line-auto-forward t
octave-send-show-buffer t
)
--
Tom Olin
Senior Systems Engineer | PAR Government Systems Corporation
315.356.2142 | tom_olin <at> partech.com | http://pargovernment.com
[smime.p7s (application/pkcs7-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Wed, 15 May 2013 12:02:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14399 <at> debbugs.gnu.org (full text, mbox):
I have written to octave's maintainers' list:
http://article.gmane.org/gmane.comp.gnu.octave.maintainers/32441
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Fri, 17 May 2013 23:14:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14399 <at> debbugs.gnu.org (full text, mbox):
Hi Stefan,
On 2013-05-15 20:00 +0800, Leo Liu wrote:
> http://article.gmane.org/gmane.comp.gnu.octave.maintainers/32441
It seems the octave community's consensus is: ... should not introduce
extra indentation in (), [] or {}. Could you help fix this bug?
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Fri, 22 Nov 2013 02:12:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 14399 <at> debbugs.gnu.org (full text, mbox):
On 2013-05-18 07:13 +0800, Leo Liu wrote:
> It seems the octave community's consensus is: ... should not introduce
> extra indentation in (), [] or {}. Could you help fix this bug?
Hi Stefan,
I am unfamiliar with smie. I have been meaning to understand it but
haven't found time to. Could you help fix this indentation bug?
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Fri, 22 Nov 2013 14:29:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 14399 <at> debbugs.gnu.org (full text, mbox):
> I am unfamiliar with smie. I have been meaning to understand it but
> haven't found time to. Could you help fix this indentation bug?
I can't remember much of the syntax of Octave. What does ";..." mean?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Fri, 22 Nov 2013 14:59:01 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
On Friday 22 November 2013 09:27:57 Stefan Monnier wrote:
> > I am unfamiliar with smie. I have been meaning to understand it but
> > haven't found time to. Could you help fix this indentation bug?
>
> I can't remember much of the syntax of Octave. What does ";..." mean?
... introduces a continuation line. Similar to \ in other languages.
a = [ foo;...
bar ]
is the same as a = [ foo; bar ].
See (info "(octave) Continuation Lines")
Regards,
Rüdiger
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Fri, 22 Nov 2013 14:59:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Sat, 23 Nov 2013 02:04:02 GMT)
Full text and
rfc822 format available.
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
>> > I am unfamiliar with smie. I have been meaning to understand it but
>> > haven't found time to. Could you help fix this indentation bug?
>> I can't remember much of the syntax of Octave. What does ";..." mean?
> ... introduces a continuation line. Similar to \ in other languages.
> a = [ foo;...
> bar ]
> is the same as a = [ foo; bar ].
That's the part I knew already ;-)
But in which way is
a = [ foo;...
bar ]
different from
a = [ foo
bar ]
or
a = [ foo;
bar ]
-- Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Sat, 23 Nov 2013 02:04:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Thu, 28 Nov 2013 04:41:01 GMT)
Full text and
rfc822 format available.
Message #32 received at 14399 <at> debbugs.gnu.org (full text, mbox):
Ping?
>>>>> "Stefan" == Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>> > I am unfamiliar with smie. I have been meaning to understand it but
>>> > haven't found time to. Could you help fix this indentation bug?
>>> I can't remember much of the syntax of Octave. What does ";..." mean?
>> ... introduces a continuation line. Similar to \ in other languages.
>> a = [ foo;...
>> bar ]
>> is the same as a = [ foo; bar ].
> That's the part I knew already ;-)
> But in which way is
> a = [ foo;...
> bar ]
> different from
> a = [ foo
> bar ]
> or
> a = [ foo;
> bar ]
> -- Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Thu, 28 Nov 2013 07:39:01 GMT)
Full text and
rfc822 format available.
Message #35 received at submit <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier writes:
> That's the part I knew already ;-)
>
> But in which way is
>
> a = [ foo;...
> bar ]
>
> different from
>
> a = [ foo
> bar ]
> or
> a = [ foo;
> bar ]
For these three examples there is no difference because the newlines and
whitespace the continuation marker gobbles up wouldn't terminate or
alter the statement. On the other hand
a = [ foo ...
bar ]
_is_ different (introducing another column rather than a row).
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Sat, 30 Nov 2013 13:11:01 GMT)
Full text and
rfc822 format available.
Message #38 received at 14399 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
A semicolon separates rows; a comma or space separates columns. Thus [ foo bar ] or [ foo, bar ] is a 1x2 matrix. [ foo; bar ] is a 2x1 matrix.
--
Tom Olin
Senior Systems Engineer | PAR Government Systems Corporation
315.356.2142 | tom_olin <at> partech.com | http://pargovernment.com
On Nov 27, 2013, at 11:40 PM, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
> Ping?
>
>>>>>> "Stefan" == Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>>>>> I am unfamiliar with smie. I have been meaning to understand it but
>>>>> haven't found time to. Could you help fix this indentation bug?
>>>> I can't remember much of the syntax of Octave. What does ";..." mean?
>>> ... introduces a continuation line. Similar to \ in other languages.
>
>>> a = [ foo;...
>>> bar ]
>
>>> is the same as a = [ foo; bar ].
>
>> That's the part I knew already ;-)
>
>> But in which way is
>
>> a = [ foo;...
>> bar ]
>
>> different from
>
>> a = [ foo
>> bar ]
>> or
>> a = [ foo;
>> bar ]
>
>> -- Stefan
[smime.p7s (application/pkcs7-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Sat, 30 Nov 2013 17:20:01 GMT)
Full text and
rfc822 format available.
Message #41 received at 14399 <at> debbugs.gnu.org (full text, mbox):
>> That's the part I knew already ;-)
>>
>> But in which way is
>>
>> a = [ foo;...
>> bar ]
>>
>> different from
>>
>> a = [ foo
>> bar ]
>> or
>> a = [ foo;
>> bar ]
> For these three examples there is no difference because the newlines and
> whitespace the continuation marker gobbles up wouldn't terminate or
> alter the statement.
Thanks. So it begs the question: why would someone write
a = [ foo;...
bar ]
instead of one of the other two? I'm trying to understand what's the
intention behind it, to better understand how the code should behave.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Mon, 02 Dec 2013 14:52:01 GMT)
Full text and
rfc822 format available.
Message #44 received at 14399 <at> debbugs.gnu.org (full text, mbox):
On Saturday 30 November 2013 12:19:30 Stefan Monnier wrote:
> Thanks. So it begs the question: why would someone write
>
> a = [ foo;...
> bar ]
>
> instead of one of the other two? I'm trying to understand what's the
> intention behind it, to better understand how the code should behave.
I think it's just a matter of style. I thought it had something to do with
Matlab compatibility but a quick test showed that Matlab accepts both forms as
well.
Regards,
Rüdiger
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Mon, 02 Dec 2013 14:53:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Mon, 02 Dec 2013 15:17:01 GMT)
Full text and
rfc822 format available.
Message #50 received at 14399 <at> debbugs.gnu.org (full text, mbox):
>> It seems the octave community's consensus is: ... should not introduce
>> extra indentation in (), [] or {}. Could you help fix this bug?
> I am unfamiliar with smie. I have been meaning to understand it but
> haven't found time to. Could you help fix this indentation bug?
Looks like we've all been pretty dumb: not sure about the OP's real code
but at least his test case gets indented like this with Emacs's trunk:
vec = [...
one;...
two;...
three];
So it looks like the bug is already fixed.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Mon, 02 Dec 2013 15:59:02 GMT)
Full text and
rfc822 format available.
Message #53 received at 14399 <at> debbugs.gnu.org (full text, mbox):
On 2013-12-02 23:15 +0800, Stefan Monnier wrote:
> Looks like we've all been pretty dumb: not sure about the OP's real code
> but at least his test case gets indented like this with Emacs's trunk:
>
> vec = [...
> one;...
> two;...
> three];
>
> So it looks like the bug is already fixed.
I was able to reproduce the bug some time ago but indeed this seems
fixed in trunk. but
x = ...
12
doesn't indent the second line correctly.
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Mon, 02 Dec 2013 16:09:01 GMT)
Full text and
rfc822 format available.
Message #56 received at 14399 <at> debbugs.gnu.org (full text, mbox):
> x = ...
> 12
> doesn't indent the second line correctly.
That's simply for lack of a corresponding rule in octave-smie-rules.
Try M-x smie-edebug RET
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 14:57:06 GMT)
Full text and
rfc822 format available.
Message #59 received at 14399 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Just FWIW, I'm still seeing the problem. I get:
vec = [...
one;...
two;...
three];
I'm using:
GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, X toolkit, Xaw scroll bars) of 2013-03-21
from MacPorts. How far from HEAD is that?
--
Tom Olin
Senior Systems Engineer | PAR Government Systems Corporation
315.356.2142 | tom_olin <at> partech.com | http://pargovernment.com
On Dec 2, 2013, at 10:58 AM, Leo Liu <sdl.web <at> gmail.com> wrote:
> On 2013-12-02 23:15 +0800, Stefan Monnier wrote:
>> Looks like we've all been pretty dumb: not sure about the OP's real code
>> but at least his test case gets indented like this with Emacs's trunk:
>>
>> vec = [...
>> one;...
>> two;...
>> three];
>>
>> So it looks like the bug is already fixed.
>
> I was able to reproduce the bug some time ago but indeed this seems
> fixed in trunk. but
>
> x = ...
> 12
>
> doesn't indent the second line correctly.
>
> Leo
[smime.p7s (application/pkcs7-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 18:34:02 GMT)
Full text and
rfc822 format available.
Message #62 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Tuesday 03 December 2013 09:56:39 Tom Olin wrote:
> Just FWIW, I'm still seeing the problem. I get:
>
> vec = [...
> one;...
> two;...
> three];
>
> I'm using:
>
> GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, X toolkit, Xaw scroll bars) of
> 2013-03-21
>
> from MacPorts. How far from HEAD is that?
Very far. Thanks to Leo Octave mode was improved quite significantly since
the release of 24.3. It should be backward compatible to 24.3. If you want
to try it you could copy octave.el from bzr and load it in your Emacs.
Regards,
Rüdiger
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 18:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 18:46:02 GMT)
Full text and
rfc822 format available.
Message #68 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I will give that a try. Thanks.
--
Tom Olin
Senior Systems Engineer | PAR Government Systems Corporation
315.356.2142 | tom_olin <at> partech.com | http://pargovernment.com
On Dec 3, 2013, at 1:32 PM, Rüdiger Sonderfeld <ruediger <at> c-plusplus.de> wrote:
> On Tuesday 03 December 2013 09:56:39 Tom Olin wrote:
>> Just FWIW, I'm still seeing the problem. I get:
>>
>> vec = [...
>> one;...
>> two;...
>> three];
>>
>> I'm using:
>>
>> GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, X toolkit, Xaw scroll bars) of
>> 2013-03-21
>>
>> from MacPorts. How far from HEAD is that?
>
> Very far. Thanks to Leo Octave mode was improved quite significantly since
> the release of 24.3. It should be backward compatible to 24.3. If you want
> to try it you could copy octave.el from bzr and load it in your Emacs.
>
> Regards,
> Rüdiger
[smime.p7s (application/pkcs7-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 18:46:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 21:01:01 GMT)
Full text and
rfc822 format available.
Message #74 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've confirmed that the latest version of octave.el works correctly. Thanks!
--
Tom Olin
Senior Systems Engineer | PAR Government Systems Corporation
315.356.2142 | tom_olin <at> partech.com | http://pargovernment.com
On Dec 3, 2013, at 1:32 PM, Rüdiger Sonderfeld <ruediger <at> c-plusplus.de> wrote:
> On Tuesday 03 December 2013 09:56:39 Tom Olin wrote:
>> Just FWIW, I'm still seeing the problem. I get:
>>
>> vec = [...
>> one;...
>> two;...
>> three];
>>
>> I'm using:
>>
>> GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, X toolkit, Xaw scroll bars) of
>> 2013-03-21
>>
>> from MacPorts. How far from HEAD is that?
>
> Very far. Thanks to Leo Octave mode was improved quite significantly since
> the release of 24.3. It should be backward compatible to 24.3. If you want
> to try it you could copy octave.el from bzr and load it in your Emacs.
>
> Regards,
> Rüdiger
[smime.p7s (application/pkcs7-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14399
; Package
emacs
.
(Tue, 03 Dec 2013 21:01:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
14399 <at> debbugs.gnu.org and Tom Olin <tom_olin <at> partech.com>
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 21 Dec 2013 05:19:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 18 Jan 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.