* lisp/textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Aug 2013 15:31:45 +0000 (11:31 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Aug 2013 15:31:45 +0000 (11:31 -0400)
text-properties.

Fixes: debbugs:15155

lisp/ChangeLog
lisp/textmodes/fill.el

index bef5c61..df9fce7 100644 (file)
@@ -1,5 +1,8 @@
 2013-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
+       text-properties (bug#15155).
+
        * calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't
        exist any more.
        (calc-keypad-redraw): Remove unused var `pad'.
index 5b6d5f3..119b4b0 100644 (file)
@@ -220,7 +220,7 @@ Remove indentation from each line."
   (let ((str (or
               (and adaptive-fill-function (funcall adaptive-fill-function))
               (and adaptive-fill-regexp (looking-at adaptive-fill-regexp)
-                   (match-string-no-properties 0)))))
+                   (match-string 0)))))
     (if (>= (+ (current-left-margin) (length str)) (current-fill-column))
         ;; Death to insanely long prefixes.
         nil