From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: New version of todo-mode.el (announcement + user guide) Date: Fri, 14 Jun 2013 21:49:35 -0400 Message-ID: References: <87k3m2275u.fsf@rosalinde.fritz.box> <8761xmxfnx.fsf@bzg.ath.cx> <87txl6ghjq.fsf@rosalinde.fritz.box> <87a9myggr7.fsf@wanadoo.es> <87sj0p8z99.fsf@rosalinde.fritz.box> <87mwqwpk98.fsf@rosalinde.fritz.box> <6emwqvxmpo.fsf@fencepost.gnu.org> <8761xjdn7t.fsf@rosalinde.fritz.box> <87txl1bula.fsf@rosalinde.fritz.box> <87obb874ru.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371260984 8245 80.91.229.3 (15 Jun 2013 01:49:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Jun 2013 01:49:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 15 03:49:43 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Unfcd-0002sn-8K for ged-emacs-devel@m.gmane.org; Sat, 15 Jun 2013 03:49:43 +0200 Original-Received: from localhost ([::1]:59009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Unfcc-0007eG-Ui for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2013 21:49:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnfcZ-0007ah-4l for emacs-devel@gnu.org; Fri, 14 Jun 2013 21:49:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnfcX-0001d4-4p for emacs-devel@gnu.org; Fri, 14 Jun 2013 21:49:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:44173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnfcX-0001cz-08; Fri, 14 Jun 2013 21:49:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZVy/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFFpZVy/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="16439930" Original-Received: from 69-165-149-114.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Jun 2013 21:49:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7780562D1F; Fri, 14 Jun 2013 21:49:35 -0400 (EDT) In-Reply-To: <87obb874ru.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Fri, 14 Jun 2013 23:37:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160440 Archived-At: > But it works when it's added at top-level. Moreover, it turns out that > using :around isn't right, at least not without making it much more > complicated AFAICT. It's much more straightforward to use :override. I don't see why, but it doesn't matter. > ! (defvar diary-goto-entry-function 'diary-goto-entry > ! "Function called to jump to a diary entry. > ! Modes that require special handling of the included file > ! containing the diary entry can assign a suitable function to this > ! variable.") > ! > ! (define-button-type 'diary-entry > ! 'action (lambda (button) (funcall diary-goto-entry-function button)) Fine by me, Stefan