# HG changeset patch # User Stefan Monnier # Date 1284826876 -7200 # Node ID 8a3552ec79341a29dfa6163f8ccfb77594e16e18 # Parent 0abc226eaa6642c83de66131fa7edf9d2e88018d * lisp/indent.el (indent-according-to-mode): Apply syntax-propertize. (indent-region): Use indent-according-to-mode. * test/indent/octave.m: Remove one more `fixindent'. Use `end'. diff -r 0abc226eaa66 -r 8a3552ec7934 lisp/ChangeLog --- a/lisp/ChangeLog Sat Sep 18 17:50:06 2010 +0200 +++ b/lisp/ChangeLog Sat Sep 18 18:21:16 2010 +0200 @@ -1,3 +1,8 @@ +2010-09-18 Stefan Monnier + + * indent.el (indent-according-to-mode): Apply syntax-propertize. + (indent-region): Use indent-according-to-mode. + 2010-09-18 Eli Zaretskii * fringe.el (fringe-mode): Doc fix. diff -r 0abc226eaa66 -r 8a3552ec7934 lisp/indent.el --- a/lisp/indent.el Sat Sep 18 17:50:06 2010 +0200 +++ b/lisp/indent.el Sat Sep 18 18:21:16 2010 +0200 @@ -68,6 +68,7 @@ but the functions `indent-relative' and `indent-relative-maybe' are special; we don't actually use them here." (interactive) + (syntax-propertize (line-end-position)) (if (memq indent-line-function '(indent-relative indent-relative-maybe)) ;; These functions are used for tabbing, but can't be used for @@ -418,7 +419,7 @@ (goto-char start) (while (< (point) end) (or (and (bolp) (eolp)) - (funcall indent-line-function)) + (indent-according-to-mode)) (forward-line 1)) (move-marker end nil)))) (setq column (prefix-numeric-value column)) diff -r 0abc226eaa66 -r 8a3552ec7934 test/ChangeLog --- a/test/ChangeLog Sat Sep 18 17:50:06 2010 +0200 +++ b/test/ChangeLog Sat Sep 18 18:21:16 2010 +0200 @@ -1,3 +1,7 @@ +2010-09-18 Stefan Monnier + + * indent/octave.m: Remove one more `fixindent'. Use `end'. + 2010-09-10 Stefan Monnier * indent/octave.m: Remove some `fixindent' not needed any more. diff -r 0abc226eaa66 -r 8a3552ec7934 test/indent/octave.m --- a/test/indent/octave.m Sat Sep 18 17:50:06 2010 +0200 +++ b/test/indent/octave.m Sat Sep 18 18:21:16 2010 +0200 @@ -6,7 +6,7 @@ if nargin ~= 1 print_usage() - endif + end data = dlmread(fn, 3, 0); @@ -1412,7 +1412,7 @@ for i = 1:length (lst) nam = fullfile (packdir, "inst", lst(i).name); fwrite (instfid, extract_pkg (nam, ['^[#%][#%]* *' nm ': *(.*)$'])); - endfor # fixindent + endfor ## Search all C++ source files for PKG commands. lst = dir (fullfile (packdir, "src", "*.cc"));