diff options
| author | Chong Yidong | 2013-12-18 13:10:58 +0800 |
|---|---|---|
| committer | Chong Yidong | 2013-12-18 13:10:58 +0800 |
| commit | 50ff2e06756b2b0565d3a815efe52be1e7247d0b (patch) | |
| tree | 7893870f6d3bf9d36d6642b024145c267320fcd5 /lisp | |
| parent | 83c60f60bfa7a2f2c5d3e487e7e5c00732996815 (diff) | |
| download | emacs-50ff2e06756b2b0565d3a815efe52be1e7247d0b.tar.gz emacs-50ff2e06756b2b0565d3a815efe52be1e7247d0b.zip | |
* replace.el (occur-engine): Avoid infloop.
Fixes: debbugs:7593
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/replace.el | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aef7eb5cc5b..e106a763332 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-12-18 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * replace.el (occur-engine): Avoid infloop (Bug#7593). | ||
| 4 | |||
| 1 | 2013-12-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | 5 | 2013-12-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) |
| 2 | 6 | ||
| 3 | * progmodes/make-mode.el (makefile-fill-paragraph): Fix infloop | 7 | * progmodes/make-mode.el (makefile-fill-paragraph): Fix infloop |
diff --git a/lisp/replace.el b/lisp/replace.el index 061300c7829..2c6b02364b2 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -1457,7 +1457,9 @@ See also `multi-occur'." | |||
| 1457 | ;; so as to override faces copied from the buffer. | 1457 | ;; so as to override faces copied from the buffer. |
| 1458 | `(face ,match-face))) | 1458 | `(face ,match-face))) |
| 1459 | curstring) | 1459 | curstring) |
| 1460 | (setq start (match-end 0)))) | 1460 | ;; Avoid infloop (Bug#7593). |
| 1461 | (let ((end (match-end 0))) | ||
| 1462 | (setq start (if (= start end) (1+ start) end))))) | ||
| 1461 | ;; Generate the string to insert for this match | 1463 | ;; Generate the string to insert for this match |
| 1462 | (let* ((match-prefix | 1464 | (let* ((match-prefix |
| 1463 | ;; Using 7 digits aligns tabs properly. | 1465 | ;; Using 7 digits aligns tabs properly. |