comparison src/fileio.c @ 18744:1718bdf566fd

(Fwrite_region): Fix call2 argument. (Fread_file_name): Convert Fcons argument to Lisp_Integer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jul 1997 06:43:08 +0000
parents 554594d88cd3
children 2ef1d8539441
comparison
equal deleted inserted replaced
18743:1c1a002339a5 18744:1718bdf566fd
1 /* File IO for GNU Emacs. 1 /* File IO for GNU Emacs.
2 Copyright (C) 1985,86,87,88,93,94,95,96 Free Software Foundation, Inc. 2 Copyright (C) 1985,86,87,88,93,94,95,96,1997 Free Software Foundation, Inc.
3 3
4 This file is part of GNU Emacs. 4 This file is part of GNU Emacs.
5 5
6 GNU Emacs is free software; you can redistribute it and/or modify 6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
3907 if (!auto_saving) 3907 if (!auto_saving)
3908 { 3908 {
3909 /* If we've locked this file for some other buffer, 3909 /* If we've locked this file for some other buffer,
3910 query before proceeding. */ 3910 query before proceeding. */
3911 if (!visiting && EQ (Ffile_locked_p (lockname), Qt)) 3911 if (!visiting && EQ (Ffile_locked_p (lockname), Qt))
3912 call2 (intern ("ask-user-about-lock"), fn, Vuser_login_name); 3912 call2 (intern ("ask-user-about-lock"), filename, Vuser_login_name);
3913 3913
3914 lock_file (lockname); 3914 lock_file (lockname);
3915 } 3915 }
3916 #endif /* CLASH_DETECTION */ 3916 #endif /* CLASH_DETECTION */
3917 3917
4851 insdef1 = double_dollars (insdef); 4851 insdef1 = double_dollars (insdef);
4852 } 4852 }
4853 else if (STRINGP (initial)) 4853 else if (STRINGP (initial))
4854 { 4854 {
4855 insdef = initial; 4855 insdef = initial;
4856 insdef1 = Fcons (double_dollars (insdef), 0); 4856 insdef1 = Fcons (double_dollars (insdef), make_number (0));
4857 } 4857 }
4858 else 4858 else
4859 insdef = Qnil, insdef1 = Qnil; 4859 insdef = Qnil, insdef1 = Qnil;
4860 4860
4861 #ifdef VMS 4861 #ifdef VMS