emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember
@ 2009-08-20 14:33 Gaizka Villate
  2009-08-21 19:24 ` Samuel Wales
  2009-08-23 13:45 ` Carsten Dominik
  0 siblings, 2 replies; 4+ messages in thread
From: Gaizka Villate @ 2009-08-20 14:33 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi there!

I have added a couple of customization variables to org-annotation-helper:

    Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember
    
    - org-annotation-helper-template-shortcut : So you can choose which
      shortcut to use with org-annotation (I already use ?w for "work"
      template)
    
    - org-annotation-helper-auto-finalize-remember:
      Set to true if you want org-annotation-helper to call org-remember-finalize after filling the template.


Maybe somebody is interested in applying the patch.

¡¡Thanks for org-mode!! ¡¡It's awesome!!

-- Gaizka

[-- Attachment #2: 0001-Add-2-customizations-to-org-annotation-helper-templ.patch --]
[-- Type: text/x-diff, Size: 2294 bytes --]

From 072fdb4c5377b9c0151963f24095bb2949b3be64 Mon Sep 17 00:00:00 2001
From: Gaizka Villate <gaizkav@gmail.com>
Date: Thu, 20 Aug 2009 16:28:09 +0200
Subject: [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember

- org-annotation-helper-template-shortcut : So you can choose which
  shortcut to use with org-annotation (I already use ?w for "work"
  template)

- org-annotation-helper-auto-finalize-remember:
  Set to true if you want org-annotation-helper to call org-remember-finalize after filling the template.
---
 contrib/lisp/org-annotation-helper.el |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-annotation-helper.el b/contrib/lisp/org-annotation-helper.el
index c90233f..e71ba2e 100644
--- a/contrib/lisp/org-annotation-helper.el
+++ b/contrib/lisp/org-annotation-helper.el
@@ -265,6 +265,23 @@
 
 (autoload 'url-unhex-string "url")
 
+(defgroup org-annotation nil
+  "Org annotation helper customization."
+  :tag "Org Annotation"
+  :group 'org)
+
+(defcustom org-annotation-helper-template-shortcut ?w
+  "Character shortcut for the remember template you want to use."
+  :group 'org-annotation
+  :type 'character)
+
+(defcustom org-annotation-helper-auto-finalize-remember nil
+  "Set to true if you want org-annotation-helper to call org-remember-finalize
+  after filling the template.
+  I use it that way, so I can create tasks automatically without human interaction"
+  :group 'org-annotation
+  :type 'boolean)
+
 (defun bzg/org-annotation-helper (info)
   "Process an externally passed remember:// style url.
 
@@ -307,8 +324,10 @@ annotation://   squirrel away a link of the form [[url][title]] that can
 	       (set-mark (point))
 	       (insert region)
                (exchange-point-and-mark t) ;; activate region.. not always on by default
-               (org-remember nil ?w)
-               (kill-buffer b)       
+               (org-remember nil org-annotation-helper-template-shortcut)
+               (kill-buffer b)
+			   (if org-annotation-helper-auto-finalize-remember
+				   (org-remember-finalize))
                )
               ((equal proto "annotation")
                (message "Copied '%s' to the kill-ring." orglink)
-- 
1.6.1.3


[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: 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] 4+ messages in thread

* Re: [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember
  2009-08-20 14:33 [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember Gaizka Villate
@ 2009-08-21 19:24 ` Samuel Wales
  2009-08-23 13:45 ` Carsten Dominik
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Wales @ 2009-08-21 19:24 UTC (permalink / raw)
  To: Gaizka Villate; +Cc: emacs-orgmode

Org is a perfect place to store annotations.  It's good to see work on
annotation things.

Since people are using org-annotation-helper, org-protocol,
org-mac-protocol, and fireforg, with org-registry, org-annotate-file,
bookmarks, ipa.el, org-pua, and org-browser as possibly similar
things, it's getting a little complicated.  :)

-- 
Myalgic encephalomyelitis causes death (Jason et al. 2006)
and severe suffering.  Conflicts of interest are destroying
research. What people "know" is wrong. Silence = death.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

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

* Re: [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember
  2009-08-20 14:33 [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember Gaizka Villate
  2009-08-21 19:24 ` Samuel Wales
@ 2009-08-23 13:45 ` Carsten Dominik
  2009-08-23 14:44   ` Sebastian Rose
  1 sibling, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2009-08-23 13:45 UTC (permalink / raw)
  To: Gaizka Villate; +Cc: emacs-orgmode


Hi

It is my feeling that org-annotation-helper is largely a subset
of what org-protocol does.  Would it not be useful to merge this
new functionality into org-protocol.el?

- Carsten

On Aug 20, 2009, at 3:33 PM, Gaizka Villate wrote:

> Hi there!
>
> I have added a couple of customization variables to org-annotation- 
> helper:
>
>    Add 2 customizations to org-annotation-helper: template-shortcut,  
> auto-finalize-remember
>
>    - org-annotation-helper-template-shortcut : So you can choose which
>      shortcut to use with org-annotation (I already use ?w for "work"
>      template)
>
>    - org-annotation-helper-auto-finalize-remember:
>      Set to true if you want org-annotation-helper to call org- 
> remember-finalize after filling the template.
>
>
> Maybe somebody is interested in applying the patch.
>
> ¡¡Thanks for org-mode!! ¡¡It's awesome!!
>
> -- Gaizka
> <0001-Add-2-customizations-to-org-annotation-helper- 
> templ.patch>_______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember
  2009-08-23 13:45 ` Carsten Dominik
@ 2009-08-23 14:44   ` Sebastian Rose
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Rose @ 2009-08-23 14:44 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Gaizka Villate, emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:
> Hi
>
> It is my feeling that org-annotation-helper is largely a subset
> of what org-protocol does.  Would it not be useful to merge this
> new functionality into org-protocol.el?


org-annotation-helper is part of org-protocol.el - that's why the
authors of org-annotation-helper.el are mentioned in the head of
org-protocol.el. It was what I started from actually.

The functionality is included there (unless I missed something).

 
  Sebastian

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

end of thread, other threads:[~2009-08-23 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 14:33 [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember Gaizka Villate
2009-08-21 19:24 ` Samuel Wales
2009-08-23 13:45 ` Carsten Dominik
2009-08-23 14:44   ` Sebastian Rose

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