1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(hexl-find-file): Bind default-major-mode' to fundamental-mode'.

This commit is contained in:
John Paul Wallington 2003-04-17 02:41:12 +00:00
parent 582a857ccc
commit 45e8e6e75e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-04-17 John Paul Wallington <jpw@gnu.org>
* hexl.el (hexl-find-file): Bind `default-major-mode' to
`fundamental-mode'.
2003-04-16 Kenichi Handa <handa@m17n.org>
* international/mule-cmds.el (describe-language-environment): At

View File

@ -297,7 +297,7 @@ Switch to a buffer visiting file FILENAME, creating one in none exists."
(let ((completion-ignored-extensions nil))
(read-file-name "Filename: " nil nil 'ret-must-match))))
;; Ignore the user's setting of default-major-mode.
(let ((default-major-mode 'hexl-mode))
(let ((default-major-mode 'fundamental-mode))
(find-file-literally filename))
(if (not (eq major-mode 'hexl-mode))
(hexl-mode)))