(find-file-noselect): Don't consider a buffer as
visiting a file literally if it is in hexl-mode.
This commit is contained in:
parent
95014d6265
commit
ef59dd3bb8
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
2002-01-12 Eli Zaretskii <eliz@is.elta.co.il>
|
||||
|
||||
* files.el (find-file-noselect): Don't consider a buffer as
|
||||
visiting a file literally if it is in hexl-mode.
|
||||
|
||||
* faces.el (minibuffer-prompt): A better face definition for MS-DOS.
|
||||
|
||||
2002-01-11 Richard M. Stallman <rms@gnu.org>
|
||||
|
|
|
@ -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? "
|
||||
|
|
Loading…
Add table
Reference in a new issue