diff options
| author | Daniel Colascione | 2013-12-30 15:16:34 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2013-12-30 15:16:34 -0800 |
| commit | e63ace374ce30dbc4660edc696596d116ce9f3f2 (patch) | |
| tree | 3b90adf0782ea7d04df4d5af1aab82982d946a14 | |
| parent | 2db9da01bd31b9840ff859486bb4820dc7a837aa (diff) | |
| download | emacs-e63ace374ce30dbc4660edc696596d116ce9f3f2.tar.gz emacs-e63ace374ce30dbc4660edc696596d116ce9f3f2.zip | |
Fix infloop in indentation code
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/sh-script.el | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 910d35afc4b..30634f79b14 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-12-30 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * progmodes/sh-script.el | ||
| 4 | (sh-smie-sh-forward-token,sh-smie-rc-forward-token): Fix infloop | ||
| 5 | in indentation code. (Bug#16233) | ||
| 6 | |||
| 1 | 2013-12-28 João Távora <joaotavora@gmail.com> | 7 | 2013-12-28 João Távora <joaotavora@gmail.com> |
| 2 | 8 | ||
| 3 | * elec-pair.el (electric-pair-post-self-insert-function): Don't | 9 | * elec-pair.el (electric-pair-post-self-insert-function): Don't |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 5f2f70cf32a..5475cccabf7 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -1844,7 +1844,7 @@ Does not preserve point." | |||
| 1844 | ";") | 1844 | ";") |
| 1845 | (let ((semi (sh-smie--newline-semi-p))) | 1845 | (let ((semi (sh-smie--newline-semi-p))) |
| 1846 | (forward-line 1) | 1846 | (forward-line 1) |
| 1847 | (if semi ";" | 1847 | (if (or semi (eobp)) ";" |
| 1848 | (sh-smie-sh-forward-token)))) | 1848 | (sh-smie-sh-forward-token)))) |
| 1849 | (forward-comment (point-max)) | 1849 | (forward-comment (point-max)) |
| 1850 | (cond | 1850 | (cond |
| @@ -2070,7 +2070,7 @@ Point should be before the newline." | |||
| 2070 | ";") | 2070 | ";") |
| 2071 | (let ((semi (sh-smie--rc-newline-semi-p))) | 2071 | (let ((semi (sh-smie--rc-newline-semi-p))) |
| 2072 | (forward-line 1) | 2072 | (forward-line 1) |
| 2073 | (if semi ";" | 2073 | (if (or semi (eobp)) ";" |
| 2074 | (sh-smie-rc-forward-token)))) | 2074 | (sh-smie-rc-forward-token)))) |
| 2075 | (forward-comment (point-max)) | 2075 | (forward-comment (point-max)) |
| 2076 | (cond | 2076 | (cond |