emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: Bastien <bzg@gnu.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org,
	Sebastien Vauban
	<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Subject: Re: problems with org-protocol + capture templates
Date: Tue, 16 Apr 2013 22:16:24 +0200	[thread overview]
Message-ID: <CAFgFV9NC0GWZLy-nnnjfA4rCiwgVSTbQE_3es6aOW-vNu2GUNg@mail.gmail.com> (raw)
In-Reply-To: <87li8ioom0.fsf@bzg.ath.cx>

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

I use org-protocol with Chrome and Windows 8, emacs 24.3+ and some recent
Org mode.
I definitely can select the capture template.
I use emacsclientw.exe rather than emacs.exe to store the link.
It also means that emacs is already started and org-mode already loaded.

Fabrice



2013/4/16 Bastien <bzg@gnu.org>

> Hi Sébastien,
>
> "Sebastien Vauban"
> <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>
> > Alvar Maciel wrote:
> >> Hi to all,
> >> I'm using org-mode as personal day planner with almost all the
> >> configuration of http://doc.norang.ca/org-mode.html
> >> I try to use org-protocol to send links to emacs using the config of
> >> worg. But when  emacs open i can not select the template of the
> >> capture mode (it's weird months ago was working) and i don't  know
> >> were is my mistake.
> >>  this is my keybindidng
> >>
> >> var orgProtoString = 'org-protocol://capture://'+
> >>   encodeURIComponent(gBrowser.currentURI.spec) + '/' +
> >>   encodeURIComponent(gBrowser.contentWindow.document.title) + '/' +
> >>   encodeURIComponent(content.window.getSelection());
> >>
> >> gBrowser.loadURI(orgProtoString);
> >>
> >> my capture template
> >>
> >> (setq org-capture-templates
> >>       (quote (("t" "todo" entry (file "~/en uso/2013/org/refile.org")
> >>                "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
> >>               ("r" "respond" entry (file "~/en uso/2013/org/refile.org
> ")
> >>                "* NEXT Respond to %:from on %:subject\nSCHEDULED:
> >> %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
> >>               ("n" "note" entry (file "~/en uso/2013/org/refile.org")
> >>                "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)
> >>               ("j" "Journal" entry (file+datetree "~/Dropbox/en
> >> uso/2013/org/diary.org")
> >>                "* %?\n%U\n" :clock-in t :clock-resume t)
> >>               ("w" "org-protocol" entry (file "~/en uso/2013/org/
> refile.org")
> >>                "* TODO Review %c\n%U\n" :immediate-finish t)
> >>               ("p" "Phone call" entry (file "~/en uso/2013/org/
> refile.org")
> >>                "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
> >>               ("h" "Habit" entry (file "~/en uso/2013/org/refile.org")
> >>                "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string
> >> \"<%Y-%m-%d %a .+1d/3d>\")\n:PROPERTIES:\n:STYLE:
> >> habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"))))
> >
> > AFAIK, no, you can't dynamically select your template.
>
> I'm not using org-protocol anymore but I certainly *do* remember that
> you can dynamically select a capture template.
>
> So maybe Alvar's issue needs some investigation.
>
> --
>  Bastien
>
>
>


-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 4788 bytes --]

  parent reply	other threads:[~2013-04-16 20:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20 21:19 problems with org-protocol + capture templates Alvar Maciel
2013-03-20 21:54 ` Sebastien Vauban
2013-03-23 12:59   ` Alvar Maciel
2013-04-16  8:40   ` Bastien
2013-04-16 20:03     ` Rafael
2013-04-16 20:16     ` Fabrice Popineau [this message]
2013-04-17  4:04       ` Feng Shu

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=CAFgFV9NC0GWZLy-nnnjfA4rCiwgVSTbQE_3es6aOW-vNu2GUNg@mail.gmail.com \
    --to=fabrice.popineau@supelec.fr \
    --cc=bzg@gnu.org \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.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).