]> git.eshelyaron.com Git - emacs.git/commitdiff
(basic-save-buffer): if selective-display is t, file may end in CR instead of
authorKarl Heuer <kwzh@gnu.org>
Fri, 15 Apr 1994 22:39:31 +0000 (22:39 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 15 Apr 1994 22:39:31 +0000 (22:39 +0000)
LF.

lisp/files.el

index f36dc409e467b4b6be424e0f70777cb838f814d8..389139b8f8d80941b4835882c2e5ae2b984b22a5 100644 (file)
@@ -1515,6 +1515,8 @@ the last real save, but optional arg FORCE non-nil means delete anyway."
          (widen)
          (and (> (point-max) 1)
               (/= (char-after (1- (point-max))) ?\n)
+              (not (and (eq selective-display t)
+                        (= (char-after (1- (point-max))) ?\r)))
               (or (eq require-final-newline t)
                   (and require-final-newline
                        (y-or-n-p