Skip to content

Greedy org-protocol handler #72

@vzaliva

Description

@vzaliva

When trying to campute link from the browser I am getting the following error message in my emacs console:

Greedy org-protocol handler.  Killing client.
No server buffers remain to edit

I am testing on URL of this git repository: https://github.com/sprig/org-capture-extension/

GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian. Running Chrome on Ubuntu using i3 window manager. My org-mode init as follows:

(use-package org
  :ensure t
  :init
  (progn
    (setq org-log-done 'time)
    (setq org-directory "~/Dropbox/Notes"))
  (use-package org-bullets
    :ensure t
    :init (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
  (add-hook 'org-mode-hook
            (lambda ()
              (progn
                (define-key org-mode-map [(control tab)] nil) ; release C-tab
                (define-key org-mode-map "\C-cb" 'org-iswitchb)
                (setq org-hide-emphasis-markers t)
                (if (image-type-available-p 'imagemagick)
                    (setq org-image-actual-width 500))
                
                ;; Capture templates for links to pages having [ and ]
                ;; characters in their page titles - notably ArXiv
                ;; From https://github.com/sprig/org-capture-extension
                (defun transform-square-brackets-to-round-ones(string-to-transform)
                  "Transforms [ into ( and ] into ), other chars left unchanged."
                  (concat 
                   (mapcar #'(lambda (c) (if (equal c ?[) ?\( (if (equal c ?]) ?\) c))) string-to-transform)))
                (setq org-capture-templates `(
                                              ("p" "Protocol" entry (file+headline ,(concat org-directory "notes.org") "Inbox")
                                               "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?")	
                                              ("L" "Protocol Link" entry (file+headline ,(concat org-directory "notes.org") "Inbox")
                                               "* %? [[%:link][%(transform-square-brackets-to-round-ones \"%:description\")]]\n")
                                              ))

                ))))

;; TODO: move inside "use-package org" section above
(require 'org-protocol)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions