aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorKen Raeburn <[email protected]>2000-04-05 17:29:31 +0000
committerKen Raeburn <[email protected]>2000-04-05 17:29:31 +0000
commit7c752c8099915f10ec6e99d60ea20196111a94a1 (patch)
tree088139e64875a53f21320d85709678589babf883 /src/fileio.c
parentc407c570006300c2a520c89aa118e798a5e3589b (diff)
make_number/XINT/XUINT conversions; EQ/== fixes; ==Qnil -> NILP
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b68ebfc5b7..3af7816fd5 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4461,7 +4461,7 @@ This does code conversion according to the value of\n\
filename = Fexpand_file_name (filename, Qnil);
- if (! NILP (mustbenew) && mustbenew != Qexcl)
+ if (! NILP (mustbenew) && !EQ (mustbenew, Qexcl))
barf_or_query_if_file_exists (filename, "overwrite", 1, 0, 1);
if (STRINGP (visit))
@@ -4600,7 +4600,7 @@ This does code conversion according to the value of\n\
S_IREAD | S_IWRITE);
#else /* not DOS_NT */
desc = emacs_open (fn, O_WRONLY | O_TRUNC | O_CREAT
- | (mustbenew == Qexcl ? O_EXCL : 0),
+ | (EQ (mustbenew, Qexcl) ? O_EXCL : 0),
auto_saving ? auto_save_mode_bits : 0666);
#endif /* not DOS_NT */
#endif /* not VMS */