[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enriched-mode and switching major modes.

From: Stefan
Subject: Re: enriched-mode and switching major modes.
Date: Sun, 12 Sep 2004 14:18:12 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin)

>    !       (add-to-list 'enriched-marked-buffers (current-buffer))))
>    !       (setq enriched-change-major-mode-flag t)
>    !       (enriched-mode 0)

> No, because enriched-mode sets enriched-change-major-mode-flag to nil,
> (It has to.)

Easy to fix.  BTW, why bother turning it off?
Just make sure that (enriched-mode 1) correctly sets up variables even if
the enriched-mode variable was already non-nil (that's good practice in
general anyway).

> Ayway, why try to find half-baked solutions to a completely _non-existent_
> problem?  `inhibit-quit' is only a problem around code that can take
> a non-trivial time to execute.

Right.  For example, code that calls encode-mode since encode-mode will run
the minor-mode hook which will run ...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]