From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string.
Date: Mon, 09 Aug 2010 09:02:07 +0530 [thread overview]
Message-ID: <814of4wjew.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
Permit bbdb entries like '1973-06-22 Birthday'. i.e., Ignore the case of
anniv class.
ps: Have I mixed up tabs/spaces and/or indentations? Kindly point me to
the emacs settings for editing org elisp files.
[-- Attachment #2: org-bbdb.patch --]
[-- Type: text/plain, Size: 1189 bytes --]
From 8ca5dcf3dbc8fed1cdba105f0f15513c04e289a2 Mon Sep 17 00:00:00 2001
From: Jambunathan K <kjambunathan@gmail.com>
Date: Mon, 9 Aug 2010 08:44:44 +0530
Subject: [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string.
2010-08-09 Jambunathan K <kjambunathan@gmail.com>
* org-bbdb.el (org-bbdb-anniversaries): Ignore case while looking up
org-bbdb-anniversary-format-alist.
TINYCHANGE
---
lisp/org-bbdb.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org-bbdb.el b/lisp/org-bbdb.el
index a86091e..59cec32 100644
--- a/lisp/org-bbdb.el
+++ b/lisp/org-bbdb.el
@@ -322,8 +322,8 @@ This is used by Org to re-create the anniversary hash table."
(when rec
(let* ((class (or (nth 2 rec)
org-bbdb-default-anniversary-format))
- (form (or (cdr (assoc class
- org-bbdb-anniversary-format-alist))
+ (form (or (cdr (assoc-ignore-case
+ class org-bbdb-anniversary-format-alist))
class)) ; (as format string)
(name (nth 1 rec))
(years (- y (car rec)))
--
1.7.0.4
[-- Attachment #3: Type: text/plain, Size: 16 bytes --]
Jambunathan K.
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2010-08-09 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 3:32 Jambunathan K [this message]
2010-08-09 5:35 ` org-bbdb: Be lenient. Ignore case in anniv class string Noorul Islam K M
2010-08-12 9:05 ` [PATCH] " 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=814of4wjew.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--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).