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
7c24fbd2
Commit
7c24fbd2
authored
Jul 21, 1997
by
Richard M. Stallman
Browse files
(find-file-literally): Temporarily remove tar-mode and
archive-mode from auto-mode-alist.
parent
824974df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lisp/files.el
lisp/files.el
+11
-1
No files found.
lisp/files.el
View file @
7c24fbd2
...
...
@@ -954,9 +954,19 @@ Automatic uncompression is also disabled."
(interactive "FFind file literally: ")
(let ((coding-system-for-read 'no-conversion)
(coding-system-for-write 'no-conversion)
(auto-mode-alist (copy-sequence auto-mode-alist))
(jka-compr-compression-info-list nil)
(format-alist nil)
(after-insert-file-functions nil))
(after-insert-file-functions nil)
tail)
;; Turn off use of tar-mode and archive-mode
;; for this one file. (We copied auto-mode-alist above
;; so as not to alter it permanently.)
(setq tail auto-mode-alist)
(while tail
(if (memq (cdr (car tail)) '(tar-mode archive-mode))
(setq auto-mode-alist (delq (car tail) auto-mode-alist)))
(setq tail (cdr tail)))
(prog1
(find-file filename)
(setq enable-multibyte-characters nil))))
...
...
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