emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Need additional context 'protocol' for capture templates [8.3.2 (8.3.2-39-gd537a3-elpa @ /home/phil/.emacs.d/elpa/org-20151123/)]
@ 2015-12-10 17:04 Phil Hudson
  0 siblings, 0 replies; only message in thread
From: Phil Hudson @ 2015-12-10 17:04 UTC (permalink / raw)
  To: emacs-orgmode



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

I set my web capture template's context to w3m-mode. I expected it still
to be accessible via remote org-protocol invocation from Conkeror, but
found that it was not when I tried my previously-working Conkeror
command for bookmarking the current page in Org. Removing the context
restriction from my web capture template re-enabled the command.

I propose the addition of a 'protocol' context and code to handle it. I
envision being able to specify that access to my web capture template is
restricted to 'w3m-mode', 'eww-mode' or 'protocol', for example.

Emacs  : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2015-04-25 on quiz
Package: Org-mode version 8.3.2 (8.3.2-39-gd537a3-elpa @ /home/phil/.emacs.d/elpa/org-20151123/)

current state:
==============
(setq
    org-id-locations-file "~/.emacs.d/org-id-locations"
    org-hide-leading-stars t
    org-tab-first-hook '(org-hide-block-toggle-maybe
                            org-babel-hide-result-toggle-maybe
                            org-babel-header-arg-expand)
    org-mobile-files '(org-agenda-files "~/org/bookmarks.org"
                          "~/org/Cygwin-install-checklist.org"
                          "~/org/emacs-install-checklist.org"
                          "~/org/Handles.org" "~/org/Home-LAN.org"
                          "~/org/linux-install-checklist.org"
                          "~/org/Mac-install-checklist.org"
                          "~/org/Movies.org" "~/org/music.org" "~/org/Windows-install-checklist.org")
    org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
    org-agenda-diary-file "~/SpiderOak/diary.org"
    org-occur-hook '(org-first-headline-recenter)
    org-metaup-hook '(org-babel-load-in-session-maybe)
    org-log-done 'time
    org-confirm-shell-link-function 'yes-or-no-p
    org-finalize-agenda-hook '(ph/force-revert-google-calendar-org-buffer
                                  ph/un-mouse-highlight
                                  ph/org-agenda-to-appt)
    org-mobile-before-process-capture-hook '(ph/force-revert-google-calendar-org-buffers)
    org-special-ctrl-a/e t
    org-agenda-prefix-format '((agenda . "%-6:c%?-12t%-13s") (timeline . "% s")
                                  (todo . "%-12:c")
                                  (tags . "%-12:c") (search . "%-12:c"))
    org-agenda-custom-commands '(("n" "Agenda and all TODOs" ((agenda "" nil) (alltodo "" nil)) nil))
    org-mobile-pre-push-hook '(ph/force-revert-google-calendar-org-buffers)
    org-return-follows-link t
    org-default-notes-file "~/org/notes.org"
    org-capture-templates '(("w" "Capture from web browser such as Conkeror"
                                entry
                                (file+headline "~/org/bookmarks.org" "Web
                                capture")
                                "* %c %?\n  Sourced: %u\n\n  %i" :prepend t
                                :jump-to-captured t)
                               ("t" "Capture a task" entry (file+headline
                                                               "~/org/ToDo.org" "Incoming")
                                   "* TODO %?   %^G\n  SCHEDULED: %t\n
                                   %^{Effort}p\n  Created: %U"
                                   :prepend t :jump-to-captured t)
                               ("b" "Capture a purchasing task" entry
                                   (file+headline "~/org/ToDo.org" "Incoming")
                                   "* TODO Bought %?  %^G:buy:work:\n
                                   SCHEDULED: %t\n  :PROPERTIES:\n
                                   :DATE_ORDERED: %u\n  :END:  %^{PRICE}p\n
                                   Created: %U" :prepend t :jump-to-captured t)
                               ("h" "Capture a habit" entry (file+headline
                                                                "~/org/ToDo.org" "Incoming")
                                   "* TODO %?  %^G\n  SCHEDULED:
                                   <%(ph/current-date-and-day-for-habit)
                                   .+%^{Interval:|1d}>\n  :PROPERTIES:\n
                                   :STYLE:    habit\n  :REPEAT_TO_STATE: TODO\n
                                   :END:\n  Created: %U" :prepend t
                                   :jump-to-captured t)
                               ("c" "Capture a phone call to make" entry
                                   (file+headline "~/org/ToDo.org" "Incoming")
                                   "* TODO Called %(ph/capture-bbdb \"%a\"
                                   \"%:company\") on [[tel:%i][%i]] to %?
                                   %^G:@phone:\n  SCHEDULED: %t\n
                                   %^{Effort|0:10}p\n  Created: %U" :prepend t
                                   :jump-to-captured t)
                               ("x" "Capture an SMS text message to send" entry
                                   (file+headline "~/org/ToDo.org" "Incoming")
                                   "* TODO Texted %(ph/capture-bbdb \"%a\"
                                   \"%:company\") on [[tel:%i][%i]] to %?
                                   %^G:@phone:\n  SCHEDULED: %t\n
                                   %^{Effort|0:10}p\n  Created: %U" :prepend t
                                   :jump-to-captured t)
                               ("m" "Bookmark email" entry
                                   (file+headline "~/org/bookmarks.org" "Email
                                   capture")
                                   "* [[gnus:%(url-encode-url
                                   \"%:group\")#%:message-id][%:subject (%:date)
                                   %:fromname]]\n  Created: %U" :prepend t
                                   :jump-to-captured t)
                               ("e" "Bookmark ERC chat" entry
                                   (file+headline "~/org/bookmarks.org" "ERC
                                   capture")
                                   "* %T\n  %c\n  Created: %U" :prepend t
                                   :jump-to-captured t)
                          )
    org-agenda-include-diary t
    org-after-todo-state-change-hook '(ph/org-set-or-clear-next-tag-if-current org-clock-out-if-current)
    org-capture-mode-hook '(ph/cleanup-web-capture)
    org-todo-repeat-to-state "ITERATION"
    org-from-is-user-regexp "\\<Phil Hudson\\>"
    org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
    org-tags-column -106
    org-agenda-before-write-hook '(org-agenda-add-entry-text)
    org-babel-pre-tangle-hook '(save-buffer)
    org-global-properties '(("Effort_ALL" .
                                "0 0:10 0:20 0:30 0:45 1:00 1:30 2:00 3:00 4:00
                                5:00 6:00 7:00 8:00")
                          )
    org-agenda-dim-blocked-tasks 'invisible
    org-mode-hook '(ph/view-mode-if-gcal ph/diminish-buf-face ph/setup-org-keys
                       ph/recover-from-saveplace-folded
                       ph/enable-auto-revert-in-org-maybe
                       ph/disable-desktop-in-org-maybe
                       #[nil "\300\301\302\303\304$\207"
                            [org-add-hook change-major-mode-hook
                                org-show-block-all append local] 5]
                       #[nil "\300\301\302\303\304$\207"
                            [org-add-hook change-major-mode-hook
                                org-babel-show-result-all append local] 5]
                       org-babel-result-hide-spec org-babel-hide-all-hashes)
    org-refile-targets '((nil :maxlevel . 5) ("~/org/someday.org" :maxlevel . 5)
                            (org-agenda-files :maxlevel . 5)
                            ("~/org//home/phil/org/bookmarks.org" :maxlevel . 5))
    org-mobile-pre-pull-hook '(ph/force-revert-google-calendar-org-buffers)
    org-archive-hook '(org-attach-archive-delete-maybe)
    org-agenda-compact-blocks t
    org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
    org-refile-use-outline-path 'file
    org-enforce-todo-dependencies t
    org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                        org-cycle-show-empty-lines
                        org-optimize-window-after-visibility-change)
    org-agenda-tags-column -107
    org-archive-location "~/org/Archive/%s_done::"
    org-agenda-use-time-grid nil
    org-agenda-finalize-hook '(ph/force-revert-google-calendar-org-buffer
                                  ph/un-mouse-highlight
                                  ph/org-agenda-to-appt)
    org-enforce-todo-checkbox-dependencies t
    org-refile-allow-creating-parent-nodes 'confirm
    org-todo-keywords '((sequence "SOMEDAY(m)" "WAITING(w@)" "TODO(t)"
                            "STARTED(s!)" "|" "DONE(d!)"
                            "CANCELED(c@)")
                           (sequence "ITERATION(i)" "|" "NEXT(n)"))
    org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo
                     org-habit org-irc org-mew
                     org-mhe org-rmail org-vm org-wl org-w3m)
    org-capture-templates-contexts '(("m" "" ((in-mode . "gnus-article-mode")))
                                        ("c" "" ((in-mode . "bbdb-mode")))
                                        ("x" "" ((in-mode . "bbdb-mode")))
                                        ("e" "" ((in-mode . "erc-mode"))))
    org-agenda-window-setup 'current-window
    org-agenda-span 'day
    org-confirm-elisp-link-function 'yes-or-no-p
    org-metadown-hook '(org-babel-pop-to-session-maybe)
    org-mobile-post-push-hook '(ph/force-revert-google-calendar-org-buffers ph/mop-up-org-mobile-leak)
    org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent)
    org-mobile-directory "~/Dropbox/mobile"
    org-mobile-files-exclude-regexp "from-mobile\\.org"
    org-completion-use-ido t
    org-babel-load-languages '((emacs-lisp . t) (js . t))
    org-clock-in-hook '(ph/org-schedule-today ph/org-set-todo-state-started)
    org-habit-graph-column 55
    org-agenda-mode-hook '(ph/force-revert-google-calendar-org-buffer
                              ph/turn-off-filladapt-mode
                              ph/diminish-org-agenda-indicator ph/setup-org-agenda-keys)
    org-mobile-post-pull-hook '(ph/force-revert-google-calendar-org-buffers
                                   ph/notify-org-mobile-pull-new-items)
    org-agenda-files '("~/Dropbox/googlecalendar.org"
                          "~/Dropbox/reminderscalendar.org"
                          "~/org/Birthdays.org" "~/org/notes.org"
                          "~/org/ToSell.org" "~/org/Travel.org"
                          "~/org/Leisure.org" "~/org/ToDo.org" "~/org/ToGet.org" "~/org/from-mobile.org")
    org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
    org-refile-target-verify-function 'ph/org-refile-target-verify-not-done-state
    org-tag-alist '((:startgroup) ("@home" . 104) ("@office" . 111) ("@computer"
                                                                        . 99) ("@phone" . 112)
                       ("@online" . 79) ("@garden" . 103) (:endgroup) ("errands"
                                                                          . 69) ("work" . 119)
                       ("edu" . 92) ("email" . 64) ("hands_on" . 95)
                       ("paperwork" . 80) ("read" . 114)
                       ("buy" . 98) ("meeting" . 35) ("coding" . 42) ("travel" .
                                                                         84) ("leisure" . 76)
                       ("family" . 70) ("pets" . 96) ("health" . 72) ("finance"
                                                                         . 102) ("webapps" . 87)
                       ("mac" . 109) ("_n_x" . 117) ("research" . 63)
                       ("security" . 126) ("emacs" . 101)
                       ("screen" . 115) ("tcsh" . 116) ("lisp" . 108) ("shell" .
                                                                          83) ("vm" . 118)
                       ("ux" . 85) ("bug" . 66) ("rfe" . 82) ("db" . 68)
                       ("officialdom" . 60)
                       ("next" . 110) ("social" . 120) ("Android" . 97) ("scm" .
                                                                            47) ("testing" . 33)
                       ("debian" . 100) ("network" . 78) ("weekend" . 91))
    )
-- 
Phil Hudson                   http://hudson-it.ddns.net
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-10 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-10 17:04 Bug: Need additional context 'protocol' for capture templates [8.3.2 (8.3.2-39-gd537a3-elpa @ /home/phil/.emacs.d/elpa/org-20151123/)] Phil Hudson

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