]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove workaround for XEmacs bug in ediff-util.el
authorStefan Kangas <stefan@marxist.se>
Sun, 7 Aug 2022 11:43:47 +0000 (13:43 +0200)
committerStefan Kangas <stefan@marxist.se>
Sun, 7 Aug 2022 12:50:05 +0000 (14:50 +0200)
* lisp/vc/ediff-util.el (ediff-make-empty-tmp-file): Remove
workaround for XEmacs bug.

lisp/vc/ediff-util.el

index 1bfab508f8c6f99b36831869fc60f19f37567291..97dfc02201253f8f144411991a7d4a9a25f8bc86 100644 (file)
@@ -3197,13 +3197,7 @@ Hit \\[ediff-recenter] to reset the windows afterward."
                (progn
                 (if (or (file-exists-p file) (not keep-proposed-name))
                     (setq file (make-temp-name proposed-name)))
-                ;; the with-temp-buffer thing is a workaround for an XEmacs
-                ;; bug: write-region complains that we are trying to visit a
-                ;; file in an indirect buffer, failing to notice that the
-                ;; VISIT flag is unset and that we are actually writing from a
-                ;; string and not from any buffer.
-                (with-temp-buffer
-                  (write-region "" nil file nil 'silent nil 'excl))
+                 (write-region "" nil file nil 'silent nil 'excl)
                  nil)
             (file-already-exists t))
       ;; the file was somehow created by someone else between