From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: switch out of view mode Date: Sat, 20 Feb 2010 10:25:54 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1266802467 14091 80.91.229.12 (22 Feb 2010 01:34:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 01:34:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Neal Becker Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 20 16:26:48 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NirEF-0004xs-45 for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Feb 2010 16:26:47 +0100 Original-Received: from localhost ([127.0.0.1]:57462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NirEE-0004sP-EA for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Feb 2010 10:26:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NirDo-0004rQ-Cc for help-gnu-emacs@gnu.org; Sat, 20 Feb 2010 10:26:20 -0500 Original-Received: from [140.186.70.92] (port=35541 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NirDm-0004qa-7Z for help-gnu-emacs@gnu.org; Sat, 20 Feb 2010 10:26:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NirDj-00021Q-Li for help-gnu-emacs@gnu.org; Sat, 20 Feb 2010 10:26:18 -0500 Original-Received: from mail-yx0-f175.google.com ([209.85.210.175]:64008) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NirDj-00021I-IS for help-gnu-emacs@gnu.org; Sat, 20 Feb 2010 10:26:15 -0500 Original-Received: by yxe5 with SMTP id 5so1267046yxe.24 for ; Sat, 20 Feb 2010 07:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=BvsA65dIRMeVQcftsVNVlRYYLNWlheTjpufVe3qVPl4=; b=rrinIHNz5+P3Yrc2LeHzd9ayKEC8/TRhylaHE+xJguGbZ1Ica23TC5xRn1s808iYTq Lr6qBS/PxGYFaRhTJ0rFE3IShq4DDyZ4OMFqzvRli8237A0aTGu+f4wNMX9ZdT86ooCq NsnxTMIzqRwHScuej1PIu8PDrZhjqNVj8fUuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=vs49O21yfRCGfY1qmtSY2fg+XhHMs3BFnTiuhBf8/ZeBtyhlxtyNnCvPH/n0P+ZlfL 0uu2+dMHY4FCEl4TmuNGDTgZv6E+lkAICZIjSClDCmH1/2sSS22Karr/gpya4pIK2rn3 +oLLW0U5Un03UKPOR9Wi3XVhAkGPP0l9AaBp8= Original-Received: by 10.101.180.21 with SMTP id h21mr5913483anp.26.1266679574160; Sat, 20 Feb 2010 07:26:14 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71980 Archived-At: On Sat, Feb 20, 2010 at 10:17 AM, Neal Becker wrote: > Any way to switch from view mode on a file, to normal editing, without > closing the file and using C-x C-f to reopen? As per the docs (24.3): `M-x view-buffer' is much like `M-x view-file' (*note Misc File Ops::) except that it examines an already existing Emacs buffer. View mode provides commands for scrolling through the buffer conveniently but not for changing it. When you exit View mode with `q', that switches back to the buffer (and the position) which was previously displayed in the window. Alternatively, if you exit View mode with `e', the buffer and the value of point that resulted from your perusal remain in effect. So `q' to quit and return to where you started or `e' to turn off view mode but leave point intact. -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail