Subject: Re: bug#46193: Enabling Auto Fill mode

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 01 Feb 2021 10:20:15 +0100

[email-masked] writes:

> I have noticed that enabling a minor-mode using texinfo-mode-hook fails after
> setting auto-fill comments using a hook.
>
> (add-hook 'texinfo-mode-hook
> 	  (lambda () ((set (make-local-variable
> 'comment-auto-fill-only-comments) t)))
> (auto-fill-mode)
>
> ;; crucible-mode not enabled after setting comment-auto-fill-only-comments
> (add-hook 'texinfo-mode-hook 'crucible-mode)

(add-hook 'texinfo-mode-hook
	  (lambda () ((set (make-local-variable 'comment-auto-fill-only-comments) t)))

That's not valid syntax -- you have one extra pair of () around the
`set' function call.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no