From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dieter Faulbaum Subject: Sugesstion for a more fexible org-bbdb-anniversary-description Date: Mon, 30 Mar 2020 20:08:06 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIypd-0002nX-Io for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 14:08:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIypb-0001MS-Gt for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 14:08:17 -0400 Received: from einhorn-mail.in-berlin.de ([217.197.80.20]:59683) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIypY-0001DS-W6 for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 14:08:13 -0400 Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 02UI86Cc007992 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 30 Mar 2020 20:08:07 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmoe@gnu.org" I think it would be nice if this function would have some (customizable) variables. Here (in Germany) e.g. I like this: (defun org-bbdb-anniversary-description (agenda-date anniv-date) (let ((delta (- (calendar-absolute-from-gregorian anniv-date) (calendar-absolute-from-gregorian agenda-date)))) (cond ((= delta 0) "\\&") ((= delta 1) " (morgen)\\&") ((< delta org-bbdb-general-anniversary-description-after) (format " (in %d Tagen)\\&" delta)) ((pcase-let ((`(,month ,day ,year) anniv-date)) (format " (am %d.%d.)\\&" day month))) ) ) ) And I think others would have other preferences. Just an idea. I'm sorry but I can't program lisp good enough to implement my idea (without the shown hack).