From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Emacs's handling of line numbers [from bug#5042] Date: Mon, 19 Apr 2010 00:29:21 +0300 Organization: JURTA Message-ID: <87wrw4o3p2.fsf@mail.jurta.org> References: <83wrw5bxkc.fsf@gnu.org> <83tyr9bgid.fsf@gnu.org> <87aat1b2sr.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271626639 13444 80.91.229.12 (18 Apr 2010 21:37:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Apr 2010 21:37:19 +0000 (UTC) Cc: Eli Zaretskii , mark.lillibridge@hp.com, monnier@iro.umontreal.ca, Drew Adams , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 18 23:37:16 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O3cB1-0004Lp-IY for ged-emacs-devel@m.gmane.org; Sun, 18 Apr 2010 23:37:15 +0200 Original-Received: from localhost ([127.0.0.1]:53627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3cB1-000189-1r for ged-emacs-devel@m.gmane.org; Sun, 18 Apr 2010 17:37:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3cAs-00015c-Gs for emacs-devel@gnu.org; Sun, 18 Apr 2010 17:37:06 -0400 Original-Received: from [140.186.70.92] (port=60689 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3cAq-00014j-P6 for emacs-devel@gnu.org; Sun, 18 Apr 2010 17:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3cAp-0003ki-5f for emacs-devel@gnu.org; Sun, 18 Apr 2010 17:37:04 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:50767 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3cAk-0003jy-Bl; Sun, 18 Apr 2010 17:36:58 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.28.93.cable.starman.ee [82.131.28.93]) by mx2.starman.ee (Postfix) with ESMTP id 6F8D03F4100; Mon, 19 Apr 2010 00:36:52 +0300 (EEST) In-Reply-To: (Juanma Barranquero's message of "Sun, 18 Apr 2010 19:03:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123856 Archived-At: >> IMO Juri did, by saying that user narrowing and widening commands >> should not go beyond the current Info node. > > Again, user commands in the C-x n prefix map. And I would agree with > that. Even if it is sometimes (how often?) useful to be able to widen > the restriction in an Info buffer, that restriction is a programming > convenience for Info-mode (that it uses narrowing is an implementation > detail), so Info-mode should offer the way to deactivate it. Yes, this is what I meant. The primitive function `widen' should remove narrowing from the whole buffer completely as it currently does. But a new user command `widen-command' bound to `C-x n w' should not remove narrowing that was created programmatically, not by a user command like `C-x n n'. When authors of some mode decide that users should be able to remove narrowing from the whole buffer completely then this mode should provide a special command to do that. And indeed, Info mode already has such a command. It is `g * RET' that is documented in (info "(info) Go to node") as: The node name `*' specifies the whole file. So you can look at all of the current file by typing `g*' or all of any other file with `g(FILENAME)*'. -- Juri Linkov http://www.jurta.org/emacs/