From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Stephens Newsgroups: gmane.emacs.devel Subject: minor bug in next-error-follow-minor-mode? Date: Mon, 15 Aug 2005 17:24:30 +0100 Message-ID: <87k6in9ni9.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 1124123565 11176 80.91.229.2 (15 Aug 2005 16:32:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 16:32:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 15 18:32:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4hrN-0007v9-EU for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 18:30:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4huk-0006qN-B3 for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 12:34:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4huS-0006ny-4L for emacs-devel@gnu.org; Mon, 15 Aug 2005 12:34:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4huP-0006n6-Ot for emacs-devel@gnu.org; Mon, 15 Aug 2005 12:33:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4huP-0006mM-Ih for emacs-devel@gnu.org; Mon, 15 Aug 2005 12:33:57 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E4i4I-0005HE-GL for emacs-devel@gnu.org; Mon, 15 Aug 2005 12:44:10 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E4hnK-00079w-5t for emacs-devel@gnu.org; Mon, 15 Aug 2005 18:26:38 +0200 Original-Received: from cenderis.demon.co.uk ([62.49.17.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2005 18:26:38 +0200 Original-Received: from bruce by cenderis.demon.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2005 18:26:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cenderis.demon.co.uk User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:i+O5qaVuiHAFPT70Lp6DdzYsNx4= 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:42076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42076 I was confused by the behaviour of next-error-follow-minor-mode in the current emacs CVS. I vaguely remembered that it was on by default, 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.) (define-minor-mode next-error-follow-minor-mode "Minor mode for compilation, occur and diff modes. When turned on, cursor motion in the compilation, grep, occur or diff buffer causes automatic display of the corresponding source code location." :group 'next-error :init-value " Fol" (if (not next-error-follow-minor-mode) (remove-hook 'post-command-hook 'next-error-follow-mode-post-command-hook t) (add-hook 'post-command-hook 'next-error-follow-mode-post-command-hook nil t) (make-local-variable 'next-error-follow-last-line)))