diff options
| author | Stefan Monnier | 2010-08-21 11:19:38 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-08-21 11:19:38 +0200 |
| commit | 8f081e96dec8821ecf3452237b74cfc7ee6a315b (patch) | |
| tree | a4de2beb1c91aa905e4f734ca5c617844434cc24 | |
| parent | 3ff786247389f0eb280defb0389d690ee3610bf8 (diff) | |
| download | emacs-8f081e96dec8821ecf3452237b74cfc7ee6a315b.tar.gz emacs-8f081e96dec8821ecf3452237b74cfc7ee6a315b.zip | |
* progmodes/make-mode.el (makefile-fill-paragraph): Account for the
extra backslash added to each line.
Fixes: debbugs:6890
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2403ab0491c..f6aa59c2db5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-08-21 Kirk Kelsey <kirk.kelsey@0x4b.net> (tiny change) | ||
| 2 | Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 3 | |||
| 4 | * progmodes/make-mode.el (makefile-fill-paragraph): Account for the | ||
| 5 | extra backslash added to each line (bug#6890). | ||
| 6 | |||
| 1 | 2010-08-21 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2010-08-21 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * subr.el (read-key): Don't echo keystrokes (bug#6883). | 9 | * subr.el (read-key): Don't echo keystrokes (bug#6883). |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 594462d5125..d45ecd47907 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1324,7 +1324,9 @@ definition and conveniently use this command." | |||
| 1324 | (save-restriction | 1324 | (save-restriction |
| 1325 | (narrow-to-region beginning end) | 1325 | (narrow-to-region beginning end) |
| 1326 | (makefile-backslash-region (point-min) (point-max) t) | 1326 | (makefile-backslash-region (point-min) (point-max) t) |
| 1327 | (let ((fill-paragraph-function nil)) | 1327 | (let ((fill-paragraph-function nil) |
| 1328 | ;; Adjust fill-column to allow space for the backslash. | ||
| 1329 | (fill-column (- fill-column 1))) | ||
| 1328 | (fill-paragraph nil)) | 1330 | (fill-paragraph nil)) |
| 1329 | (makefile-backslash-region (point-min) (point-max) nil) | 1331 | (makefile-backslash-region (point-min) (point-max) nil) |
| 1330 | (goto-char (point-max)) | 1332 | (goto-char (point-max)) |
| @@ -1338,7 +1340,9 @@ definition and conveniently use this command." | |||
| 1338 | ;; resulting region. | 1340 | ;; resulting region. |
| 1339 | (save-restriction | 1341 | (save-restriction |
| 1340 | (narrow-to-region (point) (line-beginning-position 2)) | 1342 | (narrow-to-region (point) (line-beginning-position 2)) |
| 1341 | (let ((fill-paragraph-function nil)) | 1343 | (let ((fill-paragraph-function nil) |
| 1344 | ;; Adjust fill-column to allow space for the backslash. | ||
| 1345 | (fill-column (- fill-column 1))) | ||
| 1342 | (fill-paragraph nil)) | 1346 | (fill-paragraph nil)) |
| 1343 | (makefile-backslash-region (point-min) (point-max) nil)) | 1347 | (makefile-backslash-region (point-min) (point-max) nil)) |
| 1344 | ;; Return non-nil to indicate it's been filled. | 1348 | ;; Return non-nil to indicate it's been filled. |