Note that there are some explanatory texts on larger screens.

plurals
  1. POemacs, how to invoke kill-region several times?
    primarykey
    data
    text
    <p>it is said in the manual that if you use kill-region sequentially, the texts you kill will be concatenated into one in the kill-ring.<br> I'm just confused how this works. So I tried to eval this in the <em>scratch</em> buffer: </p> <pre><code>(progn (kill-region 1 5) ; this kills ";; T" (kill-region 1 5)); this kills "his " </code></pre> <p>what I expect is that, since I use kill-region 2 times, the killed texts should be concatenated as one in the kill-ring.<br> but when I use C-y, I get only "his ".<br> So I have 2 questions here: </p> <ul> <li><p>in lisp, how to invoke kill-region several times so that the killed texts are concatenated? </p></li> <li><p>using keyboard C-w, how to invoke kill-region several times so that the killed texts are concatenated? since the typical workflow is kill-region(C-w), then move-cursor, then kill-region again. </p></li> </ul> <p>here is the doc string of kill region. isn't the 2nd paragraph and the last paragraph contradictory? </p> <pre><code>"Kill (\"cut\") text between point and mark. This deletes the text from the buffer and saves it in the kill ring. The command \\[yank] can retrieve it from there. \(If you want to save the region without killing it, use \\[kill-ring-save].) If you want to append the killed region to the last killed text, use \\[append-next-kill] before \\[kill-region]. If the buffer is read-only, Emacs will beep and refrain from deleting the text, but put the text in the kill ring anyway. This means that you can use the killing commands to copy text from a read-only buffer. Lisp programs should use this function for killing text. (To delete text, use `delete-region'.) Supply two arguments, character positions indicating the stretch of text to be killed. Any command that calls this function is a \"kill command\". If the previous command was also a kill command, the text killed this time appends to the text killed last time to make one entry in the kill ring." </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload