Modified comments.
authorshuhei <shuhei>
Tue, 20 May 2003 12:04:40 +0000 (12:04 +0000)
committershuhei <shuhei>
Tue, 20 May 2003 12:04:40 +0000 (12:04 +0000)
ChangeLog
poe.el

index c381cd2..4d7226f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-20  Shuhei KOBAYASHI  <shuhei@aqua.ocn.ne.jp>
+
+       * poe.el (make-temp-file) [no make-temp-file, multi-user system]:
+       Modified comments.
+
 2003-05-19  Shuhei KOBAYASHI  <shuhei@aqua.ocn.ne.jp>
 
        * poe.el (make-temp-file) [no make-temp-file, multi-user system]:
diff --git a/poe.el b/poe.el
index ecdaa5a..94a192f 100644 (file)
--- a/poe.el
+++ b/poe.el
@@ -1709,13 +1709,12 @@ If SUFFIX is non-nil, add that at the end of the file name."
                                ;; `make-directory' returns nil for success,
                                ;; otherwise signals an error.
                                (make-directory dir))
-                           (file-already-exists t))
-                    ;; the dir was somehow created by someone else
-                    ;; between `make-temp-name' and `make-directory',
-                    ;; let's try again.
-                    )
+                           ;; the dir was somehow created by someone else
+                           ;; between `make-temp-name' and `make-directory',
+                           ;; let's try again.
+                           (file-already-exists t)))
                   dir)
-              ;; Create a temporary file.
+              ;; Create a new empty file.
               (let (tempdir tempfile)
                 (unwind-protect
                     (let (file)
@@ -1728,9 +1727,8 @@ If SUFFIX is non-nil, add that at the end of the file name."
                                                    "DIR")))
                                    ;; return nil or signal an error.
                                    (make-directory tempdir))
-                               (file-already-exists t))
-                        ;; let's try again.
-                        )
+                               ;; let's try again.
+                               (file-already-exists t)))
                       ;; Second, create a temporary file in the tempdir.
                       ;; There *is* a race condition between `make-temp-name'
                       ;; and `write-region', but we don't care it since we are
@@ -1745,9 +1743,8 @@ If SUFFIX is non-nil, add that at the end of the file name."
                                        (setq file (concat file suffix)))
                                    ;; return nil or signal an error.
                                    (add-name-to-file tempfile file))
-                               (file-already-exists t))
-                        ;; let's try again.
-                        )
+                               ;; let's try again.
+                               (file-already-exists t)))
                       file)
                   ;; Cleanup the tempfile.
                   (and tempfile