From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: $EDITOR to open at file end? Date: Thu, 5 Mar 2015 00:29:28 -0700 Message-ID: <20150305002027882961376@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1425540587 29078 80.91.229.3 (5 Mar 2015 07:29:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2015 07:29:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 05 08:29:47 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YTQE7-0001h3-3k for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2015 08:29:47 +0100 Original-Received: from localhost ([::1]:48753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTQE6-0005mf-9H for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2015 02:29:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTQDu-0005mY-NG for help-gnu-emacs@gnu.org; Thu, 05 Mar 2015 02:29:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTQDq-000050-Nh for help-gnu-emacs@gnu.org; Thu, 05 Mar 2015 02:29:34 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:50643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTQDq-0008W3-HD for help-gnu-emacs@gnu.org; Thu, 05 Mar 2015 02:29:30 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 68375218D8 for ; Thu, 5 Mar 2015 00:29:28 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 2FE3D2DC42; Thu, 5 Mar 2015 00:29:28 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103030 Archived-At: With "the other editor" I can set editor to be "vi + file" and when opening the file it will automatically jump to the end of the file. With less there is "less +G file" and it will jump to the end of the file. (And also "less +/PATTERN" is useful too.) +[num] For the first file the cursor will be positioned on line "num". If "num" is missing, the cursor will be positioned on the last line. For emacs however there is only: +number Go to the line specified by number (do not insert a space between the "+" sign and the number). This applies only to the next file specified. I don't see a way to do this with emacs. I am hoping I am simply missing the obvious. The best I can come up with is to use a very large number larger than the number of lines. emacs +999999 file That works but feels like a hack. Is there another way to instruct emacs explicitly to open the file and go to the bottom of the file? Thanks, Bob