From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: diff-mode-hook (was Re: minor bug in next-error-follow-minor-mode?) Date: Mon, 15 Aug 2005 11:32:16 -0700 Message-ID: <200508151832.j7FIWIKE029681@scanner2.ics.uci.edu> References: <87k6in9ni9.fsf@cenderis.demon.co.uk> <200508151750.j7FHoMKE027188@scanner2.ics.uci.edu> <87hddr5al1.fsf_-_@cenderis.demon.co.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124131071 1803 80.91.229.2 (15 Aug 2005 18:37:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 18:37:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 15 20:37:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4jo0-0006MB-Az for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 20:35:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4jrN-0002uK-Hb for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 14:38:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4jqu-0002oV-Q3 for emacs-devel@gnu.org; Mon, 15 Aug 2005 14:38:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4jqn-0002kw-NB for emacs-devel@gnu.org; Mon, 15 Aug 2005 14:38:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4jqn-0002jj-IF for emacs-devel@gnu.org; Mon, 15 Aug 2005 14:38:21 -0400 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E4k0e-0005Ky-Rz for emacs-devel@gnu.org; Mon, 15 Aug 2005 14:48:33 -0400 Original-Received: from vino.ics.uci.edu (dann@vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.12.10/8.12.10) with ESMTP id j7FIWIKE029681; Mon, 15 Aug 2005 11:32:19 -0700 (PDT) Original-To: Bruce Stephens In-Reply-To: <87hddr5al1.fsf_-_@cenderis.demon.co.uk> (Bruce Stephens's message of "Mon, 15 Aug 2005 19:17:14 +0100") Original-Lines: 27 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-99.4, required 5, J_CHICKENPOX_62, USER_IN_WHITELIST) 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:42083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42083 Bruce Stephens writes: > Dan Nicolaescu writes: > > > Bruce Stephens writes: > > [...] > > > > and indeed found that C-c C-f switched it off (and another C-c C-f > > > switched it on). However, now I look at the code, I think it's just a > > > minor bug, where ":init-value" ought to be ":lighter", in simple.el. > > > (" Fol" is presumably a valid non-nil value, but it looks suspiciously > > > like something meant for the modeline.) > > > > You are right, I fixed this. > > Yes, I just noticed. Thanks for that. > > While investigating that, I tried switching on > next-error-follow-minor-mode explicitly: > > (add-hook 'diff-mode-hook (function () (next-error-follow-minor-mode t))) (add-hook 'diff-mode-hook (lambda () (next-error-follow-minor-mode t))) should work.