[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102128: * test/indent/octave.m: Add
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102128: * test/indent/octave.m: Add a test to ensure indentation is local. |
Date: |
Wed, 27 Oct 2010 10:48:05 -0400 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102128
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Wed 2010-10-27 10:48:05 -0400
message:
* test/indent/octave.m: Add a test to ensure indentation is local.
modified:
test/ChangeLog
test/indent/octave.m
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog 2010-10-23 19:51:14 +0000
+++ b/test/ChangeLog 2010-10-27 14:48:05 +0000
@@ -1,8 +1,12 @@
+2010-10-27 Stefan Monnier <address@hidden>
+
+ * indent/octave.m: Add a test to ensure indentation is local.
+
2010-10-23 Glenn Morris <address@hidden>
* comint-testsuite.el
- (comint-testsuite--test-comint-password-prompt-regexp): Add
- "Please enter the password". (Bug#7224)
+ (comint-testsuite--test-comint-password-prompt-regexp):
+ Add "Please enter the password". (Bug#7224)
2010-09-20 Stefan Monnier <address@hidden>
=== modified file 'test/indent/octave.m'
--- a/test/indent/octave.m 2010-09-18 16:21:16 +0000
+++ b/test/indent/octave.m 2010-10-27 14:48:05 +0000
@@ -17,15 +17,21 @@
cnty = repmat(x(:,1)(:), 10, 1);
pop = x(:,1:10)(:);
- bir = x(:,11:20)(:);
- dth = x(:,21:30)(:);
- imig = x(:,31:40)(:);
- dmig = x(:,41:50)(:);
- gq = x(:,51:60)(:);
-
- yrs = repmat(2000:2009, 39, 1)(:);
-
- res = [yrs, cnty, pop, bir, dth, imig, dmig, gq];
+ ## Here and below, we test if the indentation aligns with a previous
+ ## fixindented line. This is important so as to make it easier for the
+ ## user to verride some indentation somewhere, and also because it
+ ## reflects the fact that the indentation decision is taken with a minimum
+ ## amount of work (i.e. in the present case, without having to walk back
+ ## until the `function' line).
+ bir = x(:,11:20)(:); # fixindent
+ dth = x(:,21:30)(:);
+ imig = x(:,31:40)(:);
+ dmig = x(:,41:50)(:);
+ gq = x(:,51:60)(:);
+
+ yrs = repmat(2000:2009, 39, 1)(:);
+
+ res = [yrs, cnty, pop, bir, dth, imig, dmig, gq];
endfunction
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102128: * test/indent/octave.m: Add a test to ensure indentation is local.,
Stefan Monnier <=