From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Misleading --help text Date: Wed, 27 Jun 2007 23:25:48 -0600 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183008395 7999 80.91.229.12 (28 Jun 2007 05:26:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2007 05:26:35 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 28 07:26:33 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I3mWU-0002F4-Ty for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jun 2007 07:26:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3mWU-0004F5-1D for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jun 2007 01:26:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3mWR-0004DN-PI for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2007 01:26:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3mWP-0004DB-Dc for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2007 01:26:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3mWP-0004D8-B9 for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2007 01:26:25 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3mWO-0004Xp-W4 for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2007 01:26:25 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I3mW7-0001Eg-Pi for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2007 07:26:07 +0200 Original-Received: from c-67-162-159-170.hsd1.co.comcast.net ([67.162.159.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jun 2007 07:26:07 +0200 Original-Received: from kevin.d.rodgers by c-67-162-159-170.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jun 2007 07:26:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-67-162-159-170.hsd1.co.comcast.net User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) In-Reply-To: X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16018 Archived-At: Reuben Thomas wrote: > I'm not sure whether this applies to current CVS (sorry, I only use > emacs from my GNU/Linux distribution), but emacs 21.4 --help says: > > Action options: > > FILE visit FILE using find-file > +LINE FILE visit FILE using find-file, then go to line LINE > +LINE:COLUMN FILE visit FILE using find-file, then go to line LINE, > column COLUMN > > Reading this, I would expect that > > emacs +5 +5 foo > > would visit a file called "+5", then go to line 5, and also visit a file > called "foo" but it doesn't, it visits "foo", then goes to line 5. > That's fine by me, but it does mean the documentation is misleading. > > I suggest the following stanza instead: > > Action options: > > FILE visit FILE using find-file > +LINE go to line LINE in the next file visited > +LINE:COLUMN go to line LINE, column COLUMN in the next file > visited > > Then it's fairly obvious that if you give two successive +LINE[:COLUMN] > options, the second will override the first. Actually, I think it's misleading to mention visited files: the +LINE and +LINE:COLUMN options act within the current buffer whether it is visiting a file or not. -- Kevin Rodgers Denver, Colorado, USA