help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Disabling a mode based on the size of a buffer?


From: Stefan Monnier
Subject: Re: Disabling a mode based on the size of a buffer?
Date: Sun, 25 Aug 2013 09:52:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Not very sofisticate:

> (add-hook 'after-change-functions
>           (lambda (&rest _ignore)
>             (when (> (buffer-size) 1000000)
>               (fundamental-mode)))
>           nil t)

It's still just a workaround, and unless the buffer is really "too
large", this should be reported as a bug (ideally with an
easy-to-reproduce-recipe).


        Stefan


reply via email to

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