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

Re: following .txt link point at eob

In [emacs-w3m : No.11303] Katsumi Yamaoka wrote:
> I guess Emacs sees `inhibit-read-only' first and then
> `buffer-read-only' (iff the former is nil) to check if the buffer
> is writable.  So, the code that uses `inhibit-read-only' may be
> faster than the one using `buffer-read-only'.

I tried replacing `(let ((buffer-read-only nil)) ...)' with
`(let ((inhibit-read-only t)) ...)' all in emacs-w3m CVS.
No problem so far, but I don't feel it gets so fast either. ;-)

> I feel the use of `inhibit-read-only' reasonable if it is used
> for overriding the read-only'ness of a buffer temporarily.