GNU bug report logs - #46193
Enabling Auto Fill mode

Previous Next

Package: emacs;

Reported by: jai-bholeki <at> gmx.com

Date: Sat, 30 Jan 2021 16:14:02 UTC

Severity: normal

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 46193 <at> debbugs.gnu.org (full text, mbox):

From: jai-bholeki <at> gmx.com
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 46193 <at> debbugs.gnu.org
Subject: Re: bug#46193: Enabling Auto Fill mode
Date: Sat, 30 Jan 2021 20:55:20 +0100
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)




> Sent: Sunday, January 31, 2021 at 6:31 AM
> From: "Philipp Stephani" <p.stephani2 <at> gmail.com>
> To: jai-bholeki <at> gmx.com
> Cc: 46193 <at> debbugs.gnu.org
> Subject: bug#46193: Enabling Auto Fill mode
>
> Am Sa., 30. Jan. 2021 um 17:14 Uhr schrieb <jai-bholeki <at> gmx.com>:
> >
> >
> > In the documentation for (auto-fill-mode &optional ARG), it says that
> > if called from Lisp, enable the mode if ARG is omitted or nil.
> >
> > Enabling a mode using nil seems counter-intuitive to me.
> >
>
>
> Maybe, but it's the universal convention for minor modes. See "Minor
> mode conventions" in the ELisp manual.
>
>
>
>




This bug report was last modified 4 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.