Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a728aa90
Commit
a728aa90
authored
Jan 15, 1996
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(tar-summarize-buffer): Speed-up for large files.
parent
e852d58d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
lisp/tar-mode.el
lisp/tar-mode.el
+9
-4
No files found.
lisp/tar-mode.el
View file @
a728aa90
...
...
@@ -461,11 +461,16 @@ is visible (and the real data of the buffer is hidden)."
(
message
"Warning: premature EOF parsing tar file"
)))
(
save-excursion
(
goto-char
(
point-min
))
(
let
((
buffer-read-only
nil
))
(
let
((
buffer-read-only
nil
)
(
summaries
nil
))
;; Collect summary lines and insert them all at once since tar files
;; can be pretty big.
(
tar-dolist
(
tar-desc
tar-parse-info
)
(
insert-string
(
tar-header-block-summarize
(
tar-desc-tokens
tar-desc
)))
(
insert-string
"\n"
))
(
setq
summaries
(
cons
(
tar-header-block-summarize
(
tar-desc-tokens
tar-desc
))
(
cons
"\n"
summaries
))))
(
insert
(
apply
'concat
summaries
))
(
make-local-variable
'tar-header-offset
)
(
setq
tar-header-offset
(
point
))
(
narrow-to-region
1
tar-header-offset
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment