Subject: Re: bug#7292: view-mode clobbers speedbar bindings

From: Ryan Twitchell <[email-masked]>
Date: Wed, 27 Oct 2010 23:11:37 -0400

On 10/27/2010 11:01 PM, Glenn Morris wrote:
> Ryan Twitchell wrote:
>
>> speedbar-mode calls toggle-read-only;
> Why does it do this, as opposed to `(setq buffer-read-only t)'?
>
> (I notice a few other files call toggle-read-only as well. Seems odd.)

A fair question.  I suppose this is just caution: toggle-read-only will
always "do the right thing" to make sure the buffer is read-only, though
setting buffer-read-only should be sufficient.

Ryan Twitchell