diff options
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index ff47462f9ca..8042707e137 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1078,8 +1078,12 @@ that are visiting the various files." (setq buffer-read-only read-only))) (setq buffer-file-read-only read-only)) - (when (not (eq (not (null rawfile)) - (not (null find-file-literally)))) + (when (and (not (eq (not (null rawfile)) + (not (null find-file-literally)))) + ;; It is confusing to ask whether to visit + ;; non-literally if they have the file in + ;; hexl-mode. + (not (eq major-mode 'hexl-mode))) (if (buffer-modified-p) (if (y-or-n-p (if rawfile "Save file and revisit literally? " |
