[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Derived modes and mode hooks
From: |
Eli Zaretskii |
Subject: |
Re: Derived modes and mode hooks |
Date: |
Sat, 09 Mar 2013 18:43:33 +0200 |
> Date: Sat, 9 Mar 2013 17:25:09 +0100
> From: Sebastian Wiesner <address@hidden>
> Cc: emacs-devel <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".
See fill-nobreak-predicate. You can use that, and then automatic
filling will work correctly for HTML.
> I cannot do so now, but instead have to burden the user with the
> responsibility to get the customization right for my mode.
No, you don't, see above.
> > If the user doesn't want auto-fill-mode in foo-mode, she can add to
> > foo-mode-hook to turn auto-fill-mode off, or she can change her
> > text-mode-hook to test (derived-mode-p 'foo-mode) before enabling
> > auto-fill-mode.
>
> I am not talking about users here, I am talking about the needs of
> major mode *authors*, who may wish to disable dangerous settings in
> their modes, even if that includes overruling some of the user's
> customizations for *more generic* modes.
It is not any bloody business of a mode author to override
customizations of users.
- Derived modes and mode hooks, Sebastian Wiesner, 2013/03/09
- Re: Derived modes and mode hooks, Xue Fuqiao, 2013/03/09
- 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 <=
- 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, 2013/03/10