]> git.eshelyaron.com Git - emacs.git/commitdiff
(gdb-send): Bind inhibit-read-only to t
authorNick Roberts <nickrob@snap.net.nz>
Mon, 24 Oct 2005 08:54:18 +0000 (08:54 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Mon, 24 Oct 2005 08:54:18 +0000 (08:54 +0000)
in case comint-prompt-read-only is set to t.

lisp/progmodes/gdb-ui.el

index bf09669083ddf16c0ec96f0085462d3aed91a5ea..9b48f7403b3c172024ba4164e7584d0a0143bef3 100644 (file)
@@ -802,7 +802,8 @@ The key should be one of the cars in `gdb-buffer-rules-assoc'."
   "A comint send filter for gdb.
 This filter may simply queue input for a later time."
   (with-current-buffer gud-comint-buffer
-    (remove-text-properties (point-min) (point-max) '(face)))
+    (let ((inhibit-read-only t))
+      (remove-text-properties (point-min) (point-max) '(face))))
   (let ((item (concat string "\n")))
     (if gud-running
       (progn