]> git.eshelyaron.com Git - emacs.git/commitdiff
set disassemble buffer in read only
authorAndrea Corallo <akrl@sdf.org>
Thu, 26 Dec 2019 07:35:01 +0000 (08:35 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:17 +0000 (11:38 +0100)
lisp/emacs-lisp/disass.el

index c23dbe1e06860b29d8385b402a2e3f4169b86d20..82c8de6e133fdd482432604c0abc3870ae0cfb0c 100644 (file)
@@ -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.