From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: Misleading --help text Date: Wed, 27 Jun 2007 10:58:42 +0100 (BST) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii; format=flowed X-Trace: sea.gmane.org 1182956035 4998 80.91.229.12 (27 Jun 2007 14:53:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2007 14:53:55 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 16:53:51 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 1I3Ytz-0005Cz-Dt for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2007 16:53:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3Yty-0004F4-Uo for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2007 10:53:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3UIT-0003vV-FE for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2007 05:58:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3UIS-0003v8-Mq for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2007 05:58:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3UIS-0003v3-Hj for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2007 05:58:48 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I3UIS-0007wL-5b for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2007 05:58:48 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I3UIR-0007UA-TG for bug-emacs@gnu.org; Wed, 27 Jun 2007 05:58:47 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1I3UIR-0007wB-Et for bug-emacs@gnu.org; Wed, 27 Jun 2007 05:58:47 -0400 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3UIR-0007vt-2b for bug-emacs@gnu.org; Wed, 27 Jun 2007 05:58:47 -0400 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=7HdGg7oZdR/Awa6l05DpUTcOnkLbog64cN1lP38mIIFj/J6iBv3QvIeeXiJNFXFXflnDP7pkbndgw3eTn9xTkP6wbt2etwb/uny6IJNWWHn5oI66XHMGTy0pbIurGN3Va1IHDEbE1te4JHEqqxCULXmC+qCCSU5TEhsTR1OQ5tA= Original-Received: from [192.168.1.6] (cust49-dsl49.idnet.net [212.69.49.49]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id GPH87445 for ; Wed, 27 Jun 2007 05:58:45 -0400 X-X-Sender: rrt@localhost.localdomain X-detected-kernel: Windows 2000 SP4, XP SP1+ X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 27 Jun 2007 10:52:54 -0400 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:16010 Archived-At: 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. -- http://rrt.sc3d.org/ | The yak is slow but the earth is patient (LucasArts)