Article View: gnu.emacs.help
Article #189653Re: How do I force emacs to read from disc? (fwd)
From: Michael Meissner
Date: Thu, 27 Dec 1990 03:31
Date: Thu, 27 Dec 1990 03:31
34 lines
2262 bytes
2262 bytes
In article <9012220305.AA13444@wubios.wustl.edu> david@WUBIOS.WUSTL.EDU (David J. Camp) writes: | In Reply to this Note From: <Peter Craft> | >If I spawn a shell from within emacs, and copy a file over one of the files | >that I already have an emacs buffer open, and then return to that emacs | >buffer, I will still be editing the original file. If I then write the | >buffer, I will overwrite the file that I just copied. (did that make sence?) | > | >Anyway, my question is: How do I tell emacs to reread from disc, rather than | >visiting the buffer that it already has open? | > | | Type "C-X k" to kill the buffer. Then type "C-X C-F" to reopen the file. Or alternatively, M-x revert-buffer <CR>. Quoting from the FM: revert-buffer: Replace the buffer text with the text of the visited file on disk. This undoes all changes since the file was visited or saved. If latest auto-save file is more recent than the visited file, asks user whether to use that instead. First argument (optional) non-nil means don't offer to use auto-save file. This is the prefix arg when called interactively. If first argument is '(16) (C-u C-u when called interactively), or second argument (optional) non-nil, don't ask for confirmation at all. If revert-buffer-function's value is non-nil, it is called to do the work. -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Considering the flames and intolerance, shouldn't USENET be spelled ABUSENET?
Technical Details
Message-ID:
<MEISSNER.90Dec26223122@curley.osf.org>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!think.com!paperboy!meissnerReferences:
<9012220305.AA13444@wubios.wustl.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,31ee263a610326a3 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-12-26 20:16:56 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!think.com!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: gnu.emacs.help Subject: Re: How do I force emacs to read from disc? (fwd) Message-ID: <MEISSNER.90Dec26223122@curley.osf.org> Date: 27 Dec 90 03:31:22 GMT References: <9012220305.AA13444@wubios.wustl.edu> Sender: news@OSF.ORG Followup-To: gnu.emacs.help Organization: Open Software Foundation Lines: 34 In-reply-to: david@WUBIOS.WUSTL.EDU's message of 22 Dec 90 03:05:48 GMT