From 30dccb04bf7377167cf1ab88f1f649d1d948497e Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 26 Jul 2011 12:09:50 +0200 Subject: [PATCH] Add key and documentation for `org-copy-visible'. * lisp/org.el (org-org-menu): Add `org-copy-visible' to the menu. * doc/org.texi (Visibility cycling): Document `org-copy-visible'. * doc/orgcard.tex: Document `org-copy-visible'. --- doc/org.texi | 2 ++ doc/orgcard.tex | 1 + lisp/org.el | 3 +++ 3 files changed, 6 insertions(+) diff --git a/doc/org.texi b/doc/org.texi index 8c6b13737..738fbd2fe 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -1216,6 +1216,8 @@ but without affecting visibility in that buffer.}. With a numeric prefix argument N, go up to level N and then take that tree. If N is negative then go up that many levels. With a @kbd{C-u} prefix, do not remove the previously used indirect buffer. +@orgcmd{C-c C-x v,org-copy-visible} +Copy the @i{visible} text in the region into the kill ring. @end table @vindex org-startup-folded diff --git a/doc/orgcard.tex b/doc/orgcard.tex index b55f02407..5c72c62ce 100644 --- a/doc/orgcard.tex +++ b/doc/orgcard.tex @@ -309,6 +309,7 @@ are preserved on all copies. \metax{move subtree/list item up/down}{M-S-UP/DOWN} \metax{sort subtree/region/plain-list}{C-c \^{}} \metax{clone a subtree}{C-c C-x c} +\metax{copy visible text}{C-c C-x v} \metax{kill/copy subtree}{C-c C-x C-w/M-w} \metax{yank subtree}{C-c C-x C-y or C-y} \metax{narrow buffer to subtree / widen}{C-x n s/w} diff --git a/lisp/org.el b/lisp/org.el index 06b77f5be..5a4517a18 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16810,6 +16810,7 @@ BEG and END default to the buffer boundaries." (org-defkey org-mode-map "\C-c\C-m" 'org-ctrl-c-ret) (org-defkey org-mode-map "\M-\C-m" 'org-insert-heading) (org-defkey org-mode-map "\C-c\C-xc" 'org-clone-subtree-with-time-shift) +(org-defkey org-mode-map "\C-c\C-xv" 'org-copy-visible) (org-defkey org-mode-map [(control return)] 'org-insert-heading-respect-content) (org-defkey org-mode-map [(shift control return)] 'org-insert-todo-heading-respect-content) (org-defkey org-mode-map "\C-c\C-x\C-n" 'org-next-link) @@ -18298,6 +18299,8 @@ See the individual commands for more information." "--" ["Clone subtree, shift time" org-clone-subtree-with-time-shift t] "--" + ["Copy visible text" org-copy-visible t] + "--" ["Promote Heading" org-metaleft (not (org-at-table-p))] ["Promote Subtree" org-shiftmetaleft (not (org-at-table-p))] ["Demote Heading" org-metaright (not (org-at-table-p))]