Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c533a7e2
Commit
c533a7e2
authored
May 09, 2001
by
Eli Zaretskii
Browse files
(tar-extract): Pay attention to the value of
coding-system-for-read, if it is non-nil.
parent
f3d6f4ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/tar-mode.el
lisp/tar-mode.el
+5
-4
No files found.
lisp/ChangeLog
View file @
c533a7e2
2001-05-09 Eli Zaretskii <eliz@is.elta.co.il>
* tar-mode.el (tar-extract): Pay attention to the value of
coding-system-for-read, if it is non-nil.
* calendar/holidays.el (holidays): Add an autoload cookie. From
Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
...
...
lisp/tar-mode.el
View file @
c533a7e2
...
...
@@ -716,10 +716,11 @@ appear on disk when you save the tar-file's buffer."
;; We need to mimic the parts of insert-file-contents
;; which determine the coding-system and decode the text.
(
let
((
coding
(
and
set-auto-coding-function
(
save-excursion
(
funcall
set-auto-coding-function
name
(
-
(
point-max
)
(
point
))))))
(
or
coding-system-for-read
(
and
set-auto-coding-function
(
save-excursion
(
funcall
set-auto-coding-function
name
(
-
(
point-max
)
(
point
)))))))
(
multibyte
enable-multibyte-characters
)
(
detected
(
detect-coding-region
1
(
min
16384
(
point-max
))
t
)))
...
...
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