diff options
| author | Eli Zaretskii | 2002-01-12 13:28:48 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-01-12 13:28:48 +0000 |
| commit | ef59dd3bb89839f8480e2c5eb91edc6c55bebad8 (patch) | |
| tree | d76e19bbd5926aec55d4e5eda1c2c2e8c3ede452 | |
| parent | 95014d6265035d78e8ab6c18dcb7949f2b92d64c (diff) | |
| download | emacs-ef59dd3bb89839f8480e2c5eb91edc6c55bebad8.tar.gz emacs-ef59dd3bb89839f8480e2c5eb91edc6c55bebad8.zip | |
(find-file-noselect): Don't consider a buffer as
visiting a file literally if it is in hexl-mode.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/files.el | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c800bc49080..5da6e4816c9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2002-01-12 Eli Zaretskii <eliz@is.elta.co.il> | 1 | 2002-01-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 2 | 2 | ||
| 3 | * files.el (find-file-noselect): Don't consider a buffer as | ||
| 4 | visiting a file literally if it is in hexl-mode. | ||
| 5 | |||
| 3 | * faces.el (minibuffer-prompt): A better face definition for MS-DOS. | 6 | * faces.el (minibuffer-prompt): A better face definition for MS-DOS. |
| 4 | 7 | ||
| 5 | 2002-01-11 Richard M. Stallman <rms@gnu.org> | 8 | 2002-01-11 Richard M. Stallman <rms@gnu.org> |
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." | |||
| 1078 | (setq buffer-read-only read-only))) | 1078 | (setq buffer-read-only read-only))) |
| 1079 | (setq buffer-file-read-only read-only)) | 1079 | (setq buffer-file-read-only read-only)) |
| 1080 | 1080 | ||
| 1081 | (when (not (eq (not (null rawfile)) | 1081 | (when (and (not (eq (not (null rawfile)) |
| 1082 | (not (null find-file-literally)))) | 1082 | (not (null find-file-literally)))) |
| 1083 | ;; It is confusing to ask whether to visit | ||
| 1084 | ;; non-literally if they have the file in | ||
| 1085 | ;; hexl-mode. | ||
| 1086 | (not (eq major-mode 'hexl-mode))) | ||
| 1083 | (if (buffer-modified-p) | 1087 | (if (buffer-modified-p) |
| 1084 | (if (y-or-n-p (if rawfile | 1088 | (if (y-or-n-p (if rawfile |
| 1085 | "Save file and revisit literally? " | 1089 | "Save file and revisit literally? " |