From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: [patch] follow mode for occur, compilation and diff Date: 29 Aug 2004 12:29:07 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200408290200.i7T20ZGK020594@scanner2.ics.uci.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093796995 30451 80.91.224.253 (29 Aug 2004 16:29:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2004 16:29:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 18:29:47 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C1SYt-0005x6-00 for ; Sun, 29 Aug 2004 18:29:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C1Sdf-0008Cp-0G for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2004 12:34:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C1SdX-0008Ca-Rv for emacs-devel@gnu.org; Sun, 29 Aug 2004 12:34:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C1SdV-0008CO-1i for emacs-devel@gnu.org; Sun, 29 Aug 2004 12:34:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C1SdU-0008CL-TX for emacs-devel@gnu.org; Sun, 29 Aug 2004 12:34:33 -0400 Original-Received: from [206.47.199.165] (helo=simmts7-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C1SYH-0005ld-Uy for emacs-devel@gnu.org; Sun, 29 Aug 2004 12:29:10 -0400 Original-Received: from empanada-wifi.home ([67.68.217.250]) by simmts7-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040829162717.PTAB1960.simmts7-srv.bellnexxia.net@empanada-wifi.home>; Sun, 29 Aug 2004 12:27:17 -0400 Original-Received: by empanada-wifi.home (Postfix, from userid 502) id 9BB7C2B306A; Sun, 29 Aug 2004 12:29:07 -0400 (EDT) Original-To: Dan Nicolaescu In-Reply-To: <200408290200.i7T20ZGK020594@scanner2.ics.uci.edu> Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26601 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26601 > + (define-minor-mode next-error-follow-minor-mode I wouldn't bother with the "-minor". > + (defun toggle-next-error-follow-mode () > + "Toggles `next-error-follow-minor-mode'. " > + (interactive) > + (next-error-follow-minor-mode (not next-error-follow-minor-mode))) What is this for? Toggling is almost never ever used when called from Lisp anyway. And M-x next-error-follow-minor-mode RET will do the toggling just fine, as happens for all minor modes. I.e. just bind C-c C-f to next-error-follow-minor-mode. Stefan