GNU bug report logs -
#7292
Inappropriate uses of toggle-read-only?
Previous Next
Reported by: Ryan Twitchell <metatheorem <at> gmail.com>
Date: Thu, 28 Oct 2010 00:12:01 UTC
Severity: minor
Fixed in version 24.0.92
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
A number of speedbar's bindings, such as 'n' and 'p', do not work with
view-mode enabled in the speedbar buffer (which makes no sense anyway).
This is relevant when view-read-only is set, causing speedbar-mode to
implicitly enable view-mode.
For my part, I have redefined speedbar-mode in my .emacs file as follows:
(require 'speedbar)
(defvar real-speedbar-mode #'speedbar-mode)
(defun speedbar-mode ()
(let ((view-read-only nil))
(funcall #'real-speedbar-mode)))
This appears to solve the problem. speedbar-mode calls
toggle-read-only; binding view-read-only to nil around that call should
be a more permanent fix.
M-x emacs-version
GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of
2010-09-26 on falconsrevenge
Thanks,
Ryan Twitchell
This bug report was last modified 13 years and 196 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.