emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [PATCH] replace function name in org-bbdb
Date: Sat, 30 Mar 2013 14:17:11 +0100	[thread overview]
Message-ID: <87k3opuiw8.fsf@pank.eu> (raw)

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

Hi,

org-bbdb-anniversary was not working on my system before using bbdb3
from package.el (probably from MELPA...).  This fixes this by renaming
a function which has been changed upstream.

I hope the patch is OK.

–Rasmus

-- 
Dung makes an excellent fertilizer

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Org-bbdb-fix-for-renamed-function-in-bbdb3.patch --]
[-- Type: text/x-patch, Size: 1509 bytes --]

From 3ce26475161fb532cd4a4eedfba298acc9055a48 Mon Sep 17 00:00:00 2001
From: "Rasmus (T60p)" <rasmus@pank.eu>
Date: Sat, 30 Mar 2013 04:12:22 +0100
Subject: [PATCH] Org-bbdb: fix for renamed function in bbdb3

* lisp/org-bbdb.el: `bbdb-record-note' is now
`bbdb-record-xfield' in bbdb3 (changelog 2012-12-25 by Roland
Winkler).

See e.g. http://permalink.gmane.org/gmane.emacs.bbdb.user/3424

TINYCHANGE
---
 lisp/org-bbdb.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org-bbdb.el b/lisp/org-bbdb.el
index a45a26f..1f71345 100644
--- a/lisp/org-bbdb.el
+++ b/lisp/org-bbdb.el
@@ -116,8 +116,8 @@
 (declare-function bbdb-search-name "ext:bbdb-com" (regexp &optional layout))
 (declare-function bbdb-search-organization "ext:bbdb-com" (regexp &optional layout))
 
-;; `bbdb-record-note' is part of BBDB v3.x
-(declare-function bbdb-record-note "ext:bbdb" (record label))
+;; `bbdb-record-xfield' is part of BBDB v3.x
+(declare-function bbdb-record-xfield "ext:bbdb" (record label))
 
 (declare-function calendar-leap-year-p "calendar" (year))
 (declare-function diary-ordinal-suffix "diary-lib" (n))
@@ -312,7 +312,7 @@ The anniversaries are assumed to be stored `org-bbdb-anniversary-field'."
       (when (setq annivs (if old-bbdb
 			     (bbdb-record-getprop
 			      rec org-bbdb-anniversary-field)
-			   (bbdb-record-note
+			   (bbdb-record-xfield
 			    rec org-bbdb-anniversary-field)))
         (setq annivs (if old-bbdb
 			 (bbdb-split annivs "\n")
-- 
1.8.2


             reply	other threads:[~2013-03-30 13:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-30 13:17 Rasmus [this message]
2013-03-30 14:45 ` [PATCH] replace function name in org-bbdb Bastien
2013-03-30 15:51   ` Rasmus
2013-04-03 11:55     ` Bastien
2013-04-03 14:38       ` Rasmus
2013-04-03 14:46         ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3opuiw8.fsf@pank.eu \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).