From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Subject: Re: problems with org-protocol + capture templates Date: Tue, 16 Apr 2013 15:03:42 -0500 Message-ID: <8738uq6y5d.fsf@gmail.com> References: <86boadu485.fsf@somewhere.org> <87li8ioom0.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USC6Y-0001e9-Ki for emacs-orgmode@gnu.org; Tue, 16 Apr 2013 16:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USC6W-0004M6-Sc for emacs-orgmode@gnu.org; Tue, 16 Apr 2013 16:03:50 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:51856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USC6W-0004Lf-Mt for emacs-orgmode@gnu.org; Tue, 16 Apr 2013 16:03:48 -0400 Received: by mail-pd0-f182.google.com with SMTP id 3so470947pdj.13 for ; Tue, 16 Apr 2013 13:03:47 -0700 (PDT) In-Reply-To: <87li8ioom0.fsf@bzg.ath.cx> (Bastien's message of "Tue, 16 Apr 2013 10:40:07 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > Hi S=C3=A9bastien, > > "Sebastien Vauban" > 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 =3D '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.o= rg") >>> "* 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.=20 > > I'm not using org-protocol anymore but I certainly *do* remember that > you can dynamically select a capture template.=20=20 > > So maybe Alvar's issue needs some investigation. I just had a problem with org-protocol not working. After plenty of googling, reinstalling and fussing, I think that I solved it and I believe that the problem was related that I was playing with different Emacs versions in Ubuntu and momentarily I had no emacsclient. See for example http://ubuntuforums.org/showthread.php?t=3D2092293