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: Re: $EDITOR to open at file end? Date: Sun, 8 Mar 2015 17:24:54 -0600 Message-ID: <20150308172114651227600@bob.proulx.com> References: <20150305002027882961376@bob.proulx.com> <87lhjbf0lj.fsf@debian.uxu> <87egp0zsrd.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1425857119 7278 80.91.229.3 (8 Mar 2015 23:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 23:25:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 09 00:25:14 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 1YUkZO-0007ex-4W for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Mar 2015 00:25:14 +0100 Original-Received: from localhost ([::1]:40863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUkZN-0003lF-7r for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 19:25:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUkZA-0003kr-FD for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 19:25:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUkZ7-0004yB-6R for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 19:25:00 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:40907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUkZ6-0004xx-VB for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 19:24:57 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 0986A2182B for ; Sun, 8 Mar 2015 17:24:55 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id BC7392DC45; Sun, 8 Mar 2015 17:24:54 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87egp0zsrd.fsf@debian.uxu> 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:103076 Archived-At: Emanuel Berg wrote: > Bob Proulx writes: > >> So: emacs FILE --eval "(goto-char (point-max))" > > ... This requires the configuration both before and > > after FILE. > > If that's a problem, I don't think the +99... hack was > bad. Maybe not so bad. I am unlikely to edit an email with more than 999999 lines. And if I do then I can deal with it on the fly. It is just a LARGENUMBER. > emacs +`perl -MPOSIX -le 'print INT_MAX'` FILE > which uses data in /usr/include/limits.h. That just swaps 999999 for a larger value of LARGENUMBER. I don't think it intrinsically changes the flavor of the issue. Upon reflection I think the +999999 wasn't so bad. Although I like the exactness of the solution for (goto-char (point-max)). Having implemented that already using a helper script I probably won't walk away from it. Thanks, Bob