home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from bug-lucid-emacs to alt.lucid-emacs.bug; Sat, 14 Nov 1992 00:48:17 EST
- Message-ID: <9211140545.AA01984@lucid.com>
- Date: Sat, 14 Nov 1992 00:38:23 EST
- From: Arup.Mukherjee@KALI.FTM.CS.CMU.EDU
- Subject: Fix for autosave bug in lucid emacs 19.3 ...
- Newsgroups: alt.lucid-emacs.bug
- Path: sparky!uunet!wendy-fate.uu.net!bug-lucid-emacs
- Sender: bug-lucid-emacs-request@lucid.com
- Lines: 18
-
- In the function auto_save_1 (line 2673, fileio.c), there should be a check
- to make sure that current_buffer->filename is not actually nil before
- attempting to go and stat() it. (Otherwise lemacs crashes when attempting
- to autosave a buffer that doesn't have a filename associated with it,
- such as in the case of "*mail*"!).
-
- The if statement in auto_save_1 should be fixed to say:
-
- /* Get visited file's mode to become the auto save file's mode. */
- if (!NILP (current_buffer->filename) &&
- stat ((char *)XSTRING (current_buffer->filename)->data, &st) >= 0)
- /* But make sure we can overwrite it later! */
- auto_save_mode_bits = st.st_mode | 0600;
- else
- auto_save_mode_bits = 0666;
-
-
- -Arup Mukherjee (arup@cmu.edu)
-