* org-capture-kill uses the kill ring
@ 2017-10-20 3:27 Allen Li
2017-10-20 3:56 ` Kaushal Modi
0 siblings, 1 reply; 2+ messages in thread
From: Allen Li @ 2017-10-20 3:27 UTC (permalink / raw)
To: emacs-orgmode
org-capture-kill (C-c C-k) used to abort capturing puts the contents
of the capture buffer into the kill ring.
This is obstructive when the user wants to abort a capture, but save a
portion of the text into the kill ring to yank elsewhere. The aborted
capture contents will replace the desired content.
Aborting capture should act transparently like killing a buffer. It
shouldn't affect the kill ring. If the user wants to keep the capture
contents, he can trivially run C-x h mark-whole-buffer M-w
kill-ring-save
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-capture-kill uses the kill ring
2017-10-20 3:27 org-capture-kill uses the kill ring Allen Li
@ 2017-10-20 3:56 ` Kaushal Modi
0 siblings, 0 replies; 2+ messages in thread
From: Kaushal Modi @ 2017-10-20 3:56 UTC (permalink / raw)
To: Allen Li, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
On Thu, Oct 19, 2017 at 11:28 PM Allen Li <vianchielfaura@gmail.com> wrote:
> org-capture-kill (C-c C-k) used to abort capturing puts the contents
> of the capture buffer into the kill ring.
>
> This is obstructive when the user wants to abort a capture, but save a
> portion of the text into the kill ring to yank elsewhere. The aborted
> capture contents will replace the desired content.
>
I believe that's a good fail-safe mechanism. Imagine the joy when you
realize that Org simply saved your incomplete capture in the event you kill
it by mistake!
FWIW, I have never needed to make use of that failsafe mechanism, nor have
I ever needed to copy something from my capture and then kill it. The use
case you mention seems to be very rare IMO.
> Aborting capture should act transparently like killing a buffer. It
> shouldn't affect the kill ring. If the user wants to keep the capture
> contents, he can trivially run C-x h mark-whole-buffer M-w
> kill-ring-save
>
You can always C-y M-y to yank your second-last kill, C-y M-y M-y for the
third-last kill, and so on ..
To summarize:
- Current behavior helps users lose their incomplete captures by mistake.
- In the event you want to copy something and deliberately kill the capture
buffer, you can always paste it with C-y M-y.
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1938 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-20 3:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-20 3:27 org-capture-kill uses the kill ring Allen Li
2017-10-20 3:56 ` Kaushal Modi
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.