From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Info-mode's mode-hook isn't visible Date: Mon, 02 Feb 2004 13:55:53 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <401EB959.7040106@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1075756290 11670 80.91.224.253 (2 Feb 2004 21:11:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2004 21:11:30 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 22:11:17 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AnlLg-0002T3-00 for ; Mon, 02 Feb 2004 22:11:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AnlJW-0001bv-42 for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2004 16:09:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AnlJT-0001b8-DD for bug-gnu-emacs@prep.ai.mit.edu; Mon, 02 Feb 2004 16:08:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AnlIx-0001RY-5t for bug-gnu-emacs@prep.ai.mit.edu; Mon, 02 Feb 2004 16:08:58 -0500 Original-Received: from [132.239.1.59] (helo=mailbox7.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AnlIr-0001QO-EB for bug-gnu-emacs@prep.ai.mit.edu; Mon, 02 Feb 2004 16:08:21 -0500 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox7.ucsd.edu (8.12.10/8.12.9) with ESMTP id i12KtxUi027680 for ; Mon, 2 Feb 2004 12:56:00 -0800 (PST) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 2 Feb 2004 21:55:59 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 2 Feb 2004 21:55:59 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 60 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1075755358 31128238 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox7.ucsd.edu (v1.4 Oct 30 2003 22:20:52, 1.4/5.0 2.60) X-MailScanner: PASSED (v1.2.8 98221 i12KtxUi027680 mailbox7.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6862 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6862 mace wrote: > On "GNU Emacs 21.2.1 (alpha-debian-linux-gnu, X toolkit, Xaw3d scroll > bars) of 2002-03-27 on escher, modified by Debian" from a standard > Debian package, i'm getting this minor bug: > > I noticed that the Info mode doesn't make it's "Info-mode-hook" visible > with C-h v Info-mode-hook or such. It is evaluated however, on Info > startup, so it works just fine if defined. *** emacs-21.3/lisp/info.el.orig Fri Dec 21 12:08:17 2001 --- emacs-21.3/lisp//info.el Mon Feb 2 13:53:32 2004 *************** *** 963,968 **** --- 963,973 ---- (defvar Info-header-line nil "If the info node header is hidden, the text of the header.") + (defcustom Info-selection-hook nil + "Normal hook run by `Info-select-node'." + :type 'hook + :group 'info) + (defun Info-select-node () "Select the info node that point is in. Bind this in case the user sets it to nil." *************** *** 2232,2237 **** --- 2237,2247 ---- ;; Info mode is suitable only for specially formatted data. (put 'Info-mode 'mode-class 'special) + (defcustom Info-mode-hook nil + "Normal hook run by `Info-mode-node'." + :type 'hook + :group 'info) + (defun Info-mode () "Info mode provides commands for browsing through the Info documentation tree. Documentation in Info is divided into \"nodes\", each of which discusses *************** *** 2333,2338 **** --- 2343,2353 ---- ;; Info-edit mode is suitable only for specially formatted data. (put 'Info-edit-mode 'mode-class 'special) + (defcustom Info-edit-mode-hook nil + "Normal hook run by `Info-edit-mode-node'." + :type 'hook + :group 'info) + (defun Info-edit-mode () "Major mode for editing the contents of an Info node. Like text mode with the addition of `Info-cease-edit' -- Kevin Rodgers