[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Derived modes and mode hooks
From: |
Sebastian Wiesner |
Subject: |
Re: Derived modes and mode hooks |
Date: |
Sun, 10 Mar 2013 16:34:05 +0100 |
2013/3/10 Stefan Monnier <address@hidden>:
>> To give a concrete example for such a case: The phpbb forum software
>> translates line breaks in the BB Code markup of posts into line breaks
>> in the HTML rendering, i.e. line breaks in the markup of a posting
>> directly affect its visual representation. Hence, automatic filling
>> is a no-go, and I want to disable by default in this mode, even if the
>> user has enabled it generically by the common way of adding it to
>> "text-mode-hook".
>
> Yes, that's unfortunate.
>
> You're going to need to be inventive in order to reconcile the fact that
> you want to derive from text-mode while at the same time writing a mode
> that behaves differently from what text-mode expects.
>
> Eli's suggestion might work, tho it's admittedly crude.
> Maybe you can set normal-auto-fill-function buffer-locally.
> Or you can set auto-fill-mode-hook buffer-locally.
> Or you can set the fill-column to a very large number.
> Or (as mentioned) you can set phpbb-mode-hook's default to disable
> auto-fill-mode.
> There are probably other options.
Much thanks for your help. I think I'll just add "turn-off-auto-fill"
to the mode hook.
Sebastian Wiesner
- Re: Derived modes and mode hooks, (continued)
- Re: Derived modes and mode hooks, Stefan Monnier, 2013/03/09
- Re: Derived modes and mode hooks, Sebastian Wiesner, 2013/03/09
- Re: Derived modes and mode hooks, Eli Zaretskii, 2013/03/09
- Re: Derived modes and mode hooks, Sebastian Wiesner, 2013/03/09
- Re: Derived modes and mode hooks, Eli Zaretskii, 2013/03/09
- Re: Derived modes and mode hooks, Sebastian Wiesner, 2013/03/09
- Re: Derived modes and mode hooks, Eli Zaretskii, 2013/03/09
- Re: Derived modes and mode hooks, Sebastian Wiesner, 2013/03/09
- Re: Derived modes and mode hooks, chad, 2013/03/09
- Re: Derived modes and mode hooks, Stefan Monnier, 2013/03/10
- Re: Derived modes and mode hooks,
Sebastian Wiesner <=