* lisp/align.el (align-areas): When given a callback function and
JUSTIFY, pick out the correct parameters (bug#30139). Suggested
by "John Wiegley" <johnw@gnu.org>.
(when area
(if func
(funcall func
- (marker-position (car area))
- (marker-position (cdr area))
- change)
+ (marker-position (car area))
+ (marker-position (if (and justify
+ (consp (cdr area)))
+ (cadr area)
+ (cdr area)))
+ change)
(if (not (and justify
(consp (cdr area))))
(goto-char (cdr area))