From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: $EDITOR to open at file end? Date: Thu, 05 Mar 2015 07:59:34 +0000 Message-ID: References: <20150305002027882961376@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425542395 24769 80.91.229.3 (5 Mar 2015 07:59:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2015 07:59:55 +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:59:55 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 1YTQhH-0002wj-1p for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2015 08:59:55 +0100 Original-Received: from localhost ([::1]:49177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTQhB-0004tT-7i for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2015 02:59:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTQh0-0004tJ-7i for help-gnu-emacs@gnu.org; Thu, 05 Mar 2015 02:59:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTQgz-000246-8v for help-gnu-emacs@gnu.org; Thu, 05 Mar 2015 02:59:38 -0500 Original-Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:42761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTQgz-00023v-1n for help-gnu-emacs@gnu.org; Thu, 05 Mar 2015 02:59:37 -0500 Original-Received: by lbjb6 with SMTP id b6so14372366lbj.9 for ; Wed, 04 Mar 2015 23:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=HskTCDob5q1oHyJB3jBChZraV8iljWgExB6Bdc9W558=; b=0IrVpUtjXekOUc71VuDtt6IjOrK57opgNcvCpCcsKMBVlEjBYK2XRHwsBSYgbOrIhT mjSQcb4O86ix4QyxDOgPZO692KWETLG2BTW+DqpPtVYZHnHffp/qTMSNV7+7gx4k16dR jD66s4J+3cpueeqAdx/H3BbxKeLbnpPZvVqNLgjcpN7uJvTy+5N/kLJkaRFGdAUZ0O73 3RWEwkmnnqRwzR02U85xXOdn8mS1Lk63yb5mClXZfFD0Pk4aG2AdctiNhEOfjE+I2tTi ihy6YBjpesWjdA9N3I4E9PpGz884/wwhm9QAO1TvJXZ3d3JkrdXsSGwTnKl+3KuE/hXT JGgg== X-Received: by 10.152.88.71 with SMTP id be7mr6493140lab.119.1425542375255; Wed, 04 Mar 2015 23:59:35 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:103032 Archived-At: Bob Proulx schrieb am Do., 5. M=C3=A4rz 2015 um 08:29 Uhr: > 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 position= ed > 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. > It shouldn't be too hard to add the vi behavior to startup.el. That won't solve your current problem, but it would at least obviate the need for workarounds in the future.