]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/make-mode.el
* files.el (basic-save-buffer-1): Don't set buffer-file-coding-system-explicit.
[gnu-emacs] / lisp / progmodes / make-mode.el
index be718135f99fa227579e2e71f7ca6675546d95d9..20673866bc4f6dd331994b159414fd51e0d1ba0b 100644 (file)
@@ -1304,6 +1304,12 @@ Fill comments, backslashed lines, and variable definitions specially."
        (save-restriction
          (narrow-to-region beginning end)
          (makefile-backslash-region (point-min) (point-max) t)
+         ;; Backslashed newlines are marked as punctuation, so when
+         ;; fill-delete-newlines turns the LF into SPC, we end up with spaces
+         ;; which back-to-indentation (called via fill-newline ->
+         ;; fill-indent-to-left-margin -> indent-line-to) thinks are real code
+         ;; (bug#13179).
+         (remove-text-properties (point-min) (point-max) '(syntax-table))
          (let ((fill-paragraph-function nil)
                 ;; Adjust fill-column to allow space for the backslash.
                 (fill-column (- fill-column 1)))