mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(tar-pad-to-blocksize): Bind inhibit-read-only, not buffer-read-only.
This commit is contained in:
parent
c72344c70d
commit
628d6cef6e
1 changed files with 2 additions and 2 deletions
|
|
@ -608,7 +608,7 @@ save your changes to disk."
|
|||
|
||||
|
||||
(defun tar-extract (&optional other-window-p)
|
||||
"*In Tar mode, extract this entry of the tar file into its own buffer."
|
||||
"In Tar mode, extract this entry of the tar file into its own buffer."
|
||||
(interactive)
|
||||
(let* ((view-p (eq other-window-p 'view))
|
||||
(descriptor (tar-current-descriptor))
|
||||
|
|
@ -1087,7 +1087,7 @@ Leaves the region wide."
|
|||
(data-end (+ start size))
|
||||
(bbytes (ash tar-anal-blocksize 9))
|
||||
(pad-to (+ bbytes (* bbytes (/ (1- data-end) bbytes))))
|
||||
(buffer-read-only nil) ; ##
|
||||
(inhibit-read-only t) ; ##
|
||||
)
|
||||
;; If the padding after the last data is too long, delete some;
|
||||
;; else insert some until we are padded out to the right number of blocks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue