diff options
| author | Richard M. Stallman | 2003-04-03 23:01:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-04-03 23:01:12 +0000 |
| commit | 3db6aff67fc535dd38f0bfb25959b8ca3c6c2eb5 (patch) | |
| tree | c592283c9424f83510785ef690bf36060099471c | |
| parent | a0e74e7261cec4477a5be641424c77c441cd1b42 (diff) | |
| download | emacs-3db6aff67fc535dd38f0bfb25959b8ca3c6c2eb5.tar.gz emacs-3db6aff67fc535dd38f0bfb25959b8ca3c6c2eb5.zip | |
(hexl-find-file): Ignore user's value of default-major-mode.
| -rw-r--r-- | lisp/hexl.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el index 9330de1a600..f34c0f5dc49 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -296,7 +296,9 @@ Switch to a buffer visiting file FILENAME, creating one in none exists." | |||
| 296 | (list | 296 | (list |
| 297 | (let ((completion-ignored-extensions nil)) | 297 | (let ((completion-ignored-extensions nil)) |
| 298 | (read-file-name "Filename: " nil nil 'ret-must-match)))) | 298 | (read-file-name "Filename: " nil nil 'ret-must-match)))) |
| 299 | (find-file-literally filename) | 299 | ;; Ignore the user's setting of default-major-mode. |
| 300 | (let ((default-major-mode 'hexl-mode)) | ||
| 301 | (find-file-literally filename)) | ||
| 300 | (if (not (eq major-mode 'hexl-mode)) | 302 | (if (not (eq major-mode 'hexl-mode)) |
| 301 | (hexl-mode))) | 303 | (hexl-mode))) |
| 302 | 304 | ||