emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string.
@ 2010-08-09  3:32 Jambunathan K
  2010-08-09  5:35 ` Noorul Islam K M
  2010-08-12  9:05 ` [PATCH] " Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Jambunathan K @ 2010-08-09  3:32 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: org-bbdb: Be lenient. Ignore case in anniv class string.
  2010-08-09  3:32 [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string Jambunathan K
@ 2010-08-09  5:35 ` Noorul Islam K M
  2010-08-12  9:05 ` [PATCH] " Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Noorul Islam K M @ 2010-08-09  5:35 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> 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.

I always use the default one for emacs-lisp.

Thanks and Regards
Noorul

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string.
  2010-08-09  3:32 [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string Jambunathan K
  2010-08-09  5:35 ` Noorul Islam K M
@ 2010-08-12  9:05 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2010-08-12  9:05 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> Permit bbdb entries like '1973-06-22 Birthday'. i.e., Ignore the case of
> anniv class.

I have applied a slightly modified version of this patch, since
`assoc-ignore-case' is obsolete.  

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-12  9:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09  3:32 [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string Jambunathan K
2010-08-09  5:35 ` Noorul Islam K M
2010-08-12  9:05 ` [PATCH] " Bastien

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).