[Top][All Lists]

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

Re: toggle-read-only should not give compilation warnings

From: Chong Yidong
Subject: Re: toggle-read-only should not give compilation warnings
Date: Fri, 13 Jul 2012 21:47:49 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> Once we're sure that the remaining calls to toggle-read-only are all
> "correct", we should try to understand why that is and provide some
> alternative function for that (and make toggle-read-only use that
> function, of course).

It's not difficult to see why the remaining calls are correct: they want
to do the same thing as C-x C-q, either acting on a different buffer or
with a different interactive invocation.  Examples include
mode-line-toggle-read-only and Buffer-menu-toggle-read-only.

Adding another function, rather than simply using toggle-read-only, is
an unnecessary level of indirection.

reply via email to

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