summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/disass.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2019-12-26 08:35:01 +0100
committerAndrea Corallo <akrl@sdf.org>2020-01-01 11:38:17 +0100
commit92e285fdf0821d8a01db598c4e2ac7e2e0fbb3cf (patch)
tree83f6ce4d79916cc021e788fd710d0a6c2448c165 /lisp/emacs-lisp/disass.el
parentfdb31d6a2709bff751c2ad240c41b30db1848b44 (diff)
downloademacs-92e285fdf0821d8a01db598c4e2ac7e2e0fbb3cf.tar.gz
emacs-92e285fdf0821d8a01db598c4e2ac7e2e0fbb3cf.tar.bz2
emacs-92e285fdf0821d8a01db598c4e2ac7e2e0fbb3cf.zip
set disassemble buffer in read only
Diffstat (limited to 'lisp/emacs-lisp/disass.el')
-rw-r--r--lisp/emacs-lisp/disass.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
index c23dbe1e068..82c8de6e133 100644
--- a/lisp/emacs-lisp/disass.el
+++ b/lisp/emacs-lisp/disass.el
@@ -103,6 +103,7 @@ redefine OBJECT if it is a symbol."
(when (re-search-forward "^.*<.*>:" nil t 2)
(delete-region (match-beginning 0) (point-max)))
(asm-mode)
+ (setq buffer-read-only t)
(cl-return-from disassemble-internal))
(error "Can't disassemble #<subr %s>" name)))
(if (eq (car-safe obj) 'macro) ;Handle macros.