changeset 23083:2dea437fe88a

(speedbar-with-writable): remove `toggle-read-only'. (speedbar-mode): Set buffer to read only.
author Eric M. Ludlam <zappo@gnu.org>
date Mon, 24 Aug 1998 00:37:22 +0000
parents 910740dcedb5
children e1613f1c52f8
files lisp/speedbar.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/speedbar.el	Fri Aug 21 06:34:13 1998 +0000
+++ b/lisp/speedbar.el	Mon Aug 24 00:37:22 1998 +0000
@@ -5,7 +5,7 @@
 ;; Author: Eric M. Ludlam <zappo@gnu.org>
 ;; Version: 0.7.2a
 ;; Keywords: file, tags, tools
-;; X-RCS: $Id: speedbar.el,v 1.9 1998/08/19 01:43:37 zappo Exp done $
+;; X-RCS: $Id: speedbar.el,v 1.10 1998/08/19 21:43:56 done Exp zappo $
 
 ;; This file is part of GNU Emacs.
 
@@ -1174,6 +1174,7 @@
 						       speedbar-buffer)
 						   (speedbar-frame-mode -1)))))
 	      t t)
+    (toggle-read-only 1)
     (speedbar-set-mode-line-format)
     (if speedbar-xemacsp
 	(progn
@@ -1810,7 +1811,6 @@
 (defmacro speedbar-with-writable (&rest forms)
   "Allow the buffer to be writable and evaluate FORMS."
   (list 'let '((inhibit-read-only t))
-	'(toggle-read-only -1)
 	(cons 'progn forms)))
 (put 'speedbar-with-writable 'lisp-indent-function 0)