From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#397: 23.0.60; T in Info when in (dir) Date: Wed, 27 Apr 2016 11:09:54 -0700 (PDT) Message-ID: References: <<007c01c8cca4$686e6fb0$c2b22382@us.oracle.com> <87eg9rhvzy.fsf@gnus.org> <285bd041-cb56-4d42-a085-88605bd08f44@default> <87twingfso.fsf@gnus.org> <72369d48-65c7-4468-9d49-21dcb045cdf2@default> <8760v3gdkm.fsf@gnus.org>> <<5a64ed8a-d9c7-4b33-b63a-11d83b7dab99@default>> <<83vb33x7b6.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461780686 32341 80.91.229.3 (27 Apr 2016 18:11:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2016 18:11:26 +0000 (UTC) Cc: larsi@gnus.org, 397@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 20:11:12 2016 Return-path: Envelope-to: geb-bug-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 1avTvc-0002mG-Fk for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 20:11:12 +0200 Original-Received: from localhost ([::1]:44600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTvb-0005NA-NG for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 14:11:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTvX-0005EW-H3 for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 14:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avTvS-0002nY-Hb for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 14:11:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTvS-0002nU-EG for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 14:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avTvS-0000jt-9R for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 14:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Apr 2016 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 397-submit@debbugs.gnu.org id=B397.14617806062772 (code B ref 397); Wed, 27 Apr 2016 18:11:02 +0000 Original-Received: (at 397) by debbugs.gnu.org; 27 Apr 2016 18:10:06 +0000 Original-Received: from localhost ([127.0.0.1]:50487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avTuY-0000ie-DA for submit@debbugs.gnu.org; Wed, 27 Apr 2016 14:10:06 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:45000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avTuW-0000i5-1s for 397@debbugs.gnu.org; Wed, 27 Apr 2016 14:10:04 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3RI9vlS023769 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Apr 2016 18:09:58 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u3RI9vZ3030795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Apr 2016 18:09:57 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u3RI9uNl032253; Wed, 27 Apr 2016 18:09:56 GMT In-Reply-To: <<83vb33x7b6.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116946 Archived-At: > > `Info-toc' should raise an error immediately, if the current node > > is the top. Something like this, perhaps: > > > > (defun Info-toc () > > "@@@@@@@@@" > > (interactive) > > (when (equal Info-current-file "dir") (error "@@@@@@@@@@@@@@@@@")) >=20 > So, from now on, no Info manual can be called "dir" or "dir.info", or > suchlikes? Does dimming an option in a rarely-used menu really > justify this? I don't think so. It was a quick-and-dirty implementation suggestion. I don't argue for that implementation. If we put the "real" code for this into an :enable menu guard then that guard would be (Info-find-node "dir" "*TOC*"). And in the case of your hypothetical manual named "dir", there could be such a *TOC* node, and in that case the menu item would be correctly enabled. > We should look for a better solution, if one exists. If it doesn't, > then it isn't a catastrophe to have that option be available and fail > if invoked where it cannot work. No one who knows something about > Info will invoke that function in this situation, anyway. Fair enough. Someone might actually try it: use the :enable guard (Info-find-node "dir" "*TOC*") and see whether it is in fact onerous. If it is then I agree with (both of) you: we can do without disabling the menu item. > > But probably not. `Info-index' does only this: > > (equal Info-current-file "dir") >=20 > Bad, bad Info-index! ;-)