"Basil L. Contovounesios" writes: > Kévin Le Gouguec writes: > >> +(defun adaptive-wrap--prefix-face (fcp beg end) >> + (or (get-text-property 0 'face fcp) >> + >> + (when (= (char-before end) ?\n) >> + (let ((eol-face (get-text-property (1- end) 'face))) > > Is it guaranteed that (< (point-min) end (1+ (point-max)))? > Otherwise = and get-text-property will barf. I think I managed to convince myself that there's no risk; if I'm reading adaptive-wrap-prefix-function (and jit-lock.el) correctly, end is always strictly greater than beg (which is at least (point-min)), and never goes past (point-max). >> + (when (and eol-face (adaptive-wrap--face-extends eol-face)) >> + eol-face))))) > > Nit: Can't the when+and be replaced with a single and? Sure. >> + ?\ )))) > > Please change this to ?\s regardless of whether the second patch is > installed. Can do. > Apart from the redundant when, I think it's fine. If you really want > to shave off some forms you can write e.g. Thanks, I'll go with (cond …). Updated patches: