diff options
| author | Stefan Monnier | 2010-09-18 18:21:16 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-18 18:21:16 +0200 |
| commit | f5632fb6c2392305e3a6f5231d219d5a72363734 (patch) | |
| tree | 6692bd8a3dddf6f4926fad1112b6cbfff4ee3164 | |
| parent | f816790bfbda2b22bd6b6b317549a15a65edd560 (diff) | |
| download | emacs-f5632fb6c2392305e3a6f5231d219d5a72363734.tar.gz emacs-f5632fb6c2392305e3a6f5231d219d5a72363734.zip | |
* 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'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/indent.el | 3 | ||||
| -rw-r--r-- | test/ChangeLog | 4 | ||||
| -rw-r--r-- | test/indent/octave.m | 4 |
4 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a3c89717837..0914fa82d87 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent.el (indent-according-to-mode): Apply syntax-propertize. | ||
| 4 | (indent-region): Use indent-according-to-mode. | ||
| 5 | |||
| 1 | 2010-09-18 Eli Zaretskii <eliz@gnu.org> | 6 | 2010-09-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * fringe.el (fringe-mode): Doc fix. | 8 | * fringe.el (fringe-mode): Doc fix. |
diff --git a/lisp/indent.el b/lisp/indent.el index 7116b705aff..e57d6068ef5 100644 --- a/lisp/indent.el +++ b/lisp/indent.el | |||
| @@ -68,6 +68,7 @@ The buffer-local variable `indent-line-function' determines how to do this, | |||
| 68 | but the functions `indent-relative' and `indent-relative-maybe' are | 68 | but the functions `indent-relative' and `indent-relative-maybe' are |
| 69 | special; we don't actually use them here." | 69 | special; we don't actually use them here." |
| 70 | (interactive) | 70 | (interactive) |
| 71 | (syntax-propertize (line-end-position)) | ||
| 71 | (if (memq indent-line-function | 72 | (if (memq indent-line-function |
| 72 | '(indent-relative indent-relative-maybe)) | 73 | '(indent-relative indent-relative-maybe)) |
| 73 | ;; These functions are used for tabbing, but can't be used for | 74 | ;; These functions are used for tabbing, but can't be used for |
| @@ -418,7 +419,7 @@ column to indent to; if it is nil, use one of the three methods above." | |||
| 418 | (goto-char start) | 419 | (goto-char start) |
| 419 | (while (< (point) end) | 420 | (while (< (point) end) |
| 420 | (or (and (bolp) (eolp)) | 421 | (or (and (bolp) (eolp)) |
| 421 | (funcall indent-line-function)) | 422 | (indent-according-to-mode)) |
| 422 | (forward-line 1)) | 423 | (forward-line 1)) |
| 423 | (move-marker end nil)))) | 424 | (move-marker end nil)))) |
| 424 | (setq column (prefix-numeric-value column)) | 425 | (setq column (prefix-numeric-value column)) |
diff --git a/test/ChangeLog b/test/ChangeLog index 12238560dc9..0f4d4d044a6 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-09-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent/octave.m: Remove one more `fixindent'. Use `end'. | ||
| 4 | |||
| 1 | 2010-09-10 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2010-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * indent/octave.m: Remove some `fixindent' not needed any more. | 7 | * indent/octave.m: Remove some `fixindent' not needed any more. |
diff --git a/test/indent/octave.m b/test/indent/octave.m index 61db73b91e8..dc6f8448152 100644 --- a/test/indent/octave.m +++ b/test/indent/octave.m | |||
| @@ -6,7 +6,7 @@ function res = tcomp (fn) | |||
| 6 | 6 | ||
| 7 | if nargin ~= 1 | 7 | if nargin ~= 1 |
| 8 | print_usage() | 8 | print_usage() |
| 9 | endif | 9 | end |
| 10 | 10 | ||
| 11 | data = dlmread(fn, 3, 0); | 11 | data = dlmread(fn, 3, 0); |
| 12 | 12 | ||
| @@ -1412,7 +1412,7 @@ function create_pkgadddel (desc, packdir, nm, global_install) | |||
| 1412 | for i = 1:length (lst) | 1412 | for i = 1:length (lst) |
| 1413 | nam = fullfile (packdir, "inst", lst(i).name); | 1413 | nam = fullfile (packdir, "inst", lst(i).name); |
| 1414 | fwrite (instfid, extract_pkg (nam, ['^[#%][#%]* *' nm ': *(.*)$'])); | 1414 | fwrite (instfid, extract_pkg (nam, ['^[#%][#%]* *' nm ': *(.*)$'])); |
| 1415 | endfor # fixindent | 1415 | endfor |
| 1416 | 1416 | ||
| 1417 | ## Search all C++ source files for PKG commands. | 1417 | ## Search all C++ source files for PKG commands. |
| 1418 | lst = dir (fullfile (packdir, "src", "*.cc")); | 1418 | lst = dir (fullfile (packdir, "src", "*.cc")); |