Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!sdd.hp.com!decwrl!nsc!csi!sono!holley From: holley@sono.UUCP (Greg Holley) Newsgroups: comp.emacs Subject: Re: %% vs. @@ Message-ID: <793@sono.UUCP> Date: 5 Jul 90 23:09:29 GMT References: <87.P022y01JM01@JUTS.ccc.amdahl.com> <1990Jun27.145013.29422@talos.pm.com> <8fbY022v01fw01@JUTS.ccc.amdahl.com> Reply-To: holley@sono.UUCP (Greg Holley) Organization: ACUSON, Mountain View, CA Lines: 15 Note: This stream (with its rather unintuitive title) concernt a possible EMACS mode that would allow editing of a buffer, but never write changes to a file. This is different from the current read-only mode, which doesn't allow the buffer to be changed. It seems to me that the best way to implement this would be via write-file-hooks. Simply write a routine that checks a boolean variable to see if the buffer in question is non-writeable, and return t if non-writeable. Then call that routine via write-file-hooks. -- --Greg Holley sun!sono!holley holley%sono@sun.com "My tale is so strange that, were it written with needles on the interior corner of an eye, yet would it prove a lesson to the circumspect."