From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeff Miller Newsgroups: gmane.emacs.help Subject: Re: Email diary appointment reminders Date: 26 Apr 2007 19:46:25 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177634086 26051 80.91.229.12 (27 Apr 2007 00:34:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 00:34:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 02:34:44 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HhEQ4-0005wz-HQ for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2007 02:34:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhEVr-0002vs-58 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2007 20:40:39 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news4.google.com!out03a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx01.iad01.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.cablespeedmd.com!news.cablespeedmd.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 26 Apr 2007 18:46:25 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Double Solitaire) Original-Lines: 36 Original-NNTP-Posting-Host: 24.35.83.53 Original-X-Trace: sv3-HgSg7ayPL7j0vgFQ1BhWWhBcuA9nfo+P1PW46eivpu2uzXWZ+p6VWY1KSOg7NNaEoKxDGmFOhvGXP1A!5vuVjdoA3AJbDdqG7ZjfMBJqm0OI+wnnndTXMzW3giEPwpTIFfKOSXIabNdcnKI4uaW0L8N+KbUb!Mw== Original-X-Complaints-To: abuse@cablespeedmd.com X-DMCA-Complaints-To: abuse@cablespeedmd.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:147638 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43241 Archived-At: "Denis Bueno" writes: > All- > > I am using the diary to keep track of appointments, and in > particular I use the fancy diary display, and appt-make-list as a > diary-display-hook, so that I get reminders in emacs of upcoming > appointments. But I want email reminders. > > I'm a bit disappointed that there is nothing like > "appt-display-hook", so that I could just email myself the > appointment whenever emacs decides to display it. Is there a way to > get this behavior? Make use of appt-disp-window-function. Here's some code that does that. It's pretty damn crude, but it works and if nothing else, will get you started. :) (defun appt-mail-appt (min-to-app new-time appt-msg) (compose-mail diary-mail-addr "Appt notification") (insert (concat min-to-app " minutes to appointment\n" appt-msg "\n")) (call-interactively (get mail-user-agent 'sendfunc))) (defun jdm-appt-disp (min-to-app new-time appt-msg) (appt-mail-appt min-to-app new-time appt-msg) (appt-disp-window min-to-app new-time appt-msg)) (setq appt-disp-window-function 'jdm-appt-disp) -- Jeff Miller jmiller@cablespeed.com