diff options
Diffstat (limited to 'lisp/progmodes/make-mode.el')
| -rw-r--r-- | lisp/progmodes/make-mode.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index be718135f99..20673866bc4 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1304,6 +1304,12 @@ Fill comments, backslashed lines, and variable definitions specially." | |||
| 1304 | (save-restriction | 1304 | (save-restriction |
| 1305 | (narrow-to-region beginning end) | 1305 | (narrow-to-region beginning end) |
| 1306 | (makefile-backslash-region (point-min) (point-max) t) | 1306 | (makefile-backslash-region (point-min) (point-max) t) |
| 1307 | ;; Backslashed newlines are marked as punctuation, so when | ||
| 1308 | ;; fill-delete-newlines turns the LF into SPC, we end up with spaces | ||
| 1309 | ;; which back-to-indentation (called via fill-newline -> | ||
| 1310 | ;; fill-indent-to-left-margin -> indent-line-to) thinks are real code | ||
| 1311 | ;; (bug#13179). | ||
| 1312 | (remove-text-properties (point-min) (point-max) '(syntax-table)) | ||
| 1307 | (let ((fill-paragraph-function nil) | 1313 | (let ((fill-paragraph-function nil) |
| 1308 | ;; Adjust fill-column to allow space for the backslash. | 1314 | ;; Adjust fill-column to allow space for the backslash. |
| 1309 | (fill-column (- fill-column 1))) | 1315 | (fill-column (- fill-column 1))) |