Glenn Morris wrote: > Daniel wrote: > >> 1. Create a file with permission of 444 (read-only) file. > > OK: > > touch 1 > chmod 444 1 > >> 2. Open the file using emacs. > > OK: > > emacs-21.3 -q --no-site-file 1 > >> My emacs open the read-only file as writable buffer. > > Mine doesn't: "Note: file is write protected" > >> Also, I can modify it and save it. > > I can't: "Buffer is read-only: #<buffer 1>". > > > I can if I do M-x toggle-read-only, but then when I go to save the > file I am prompted "File 1 is write-protected; try to save anyway?". > This all seems pretty robust.
However, if you then choose yes, it will allow you to save if you have permissions to give yourself write access. Moreover, the file will go back to being read-only afterwards, which is a bit strange. Matthew Flaschen _______________________________________________ gNewSense-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/gnewsense-users
