|
|
|
|
|
by barrkel
4285 days ago
|
|
Emacs has a bunch of jargon that takes some getting used to. A buffer is a file opened in the editor. The cursor is called the point, the text selection is called the region and is the text between mark and point. You open files by "finding" them. A pane in the editor is called a window. Cut is called kill, paste is called yank, and there is no single simple jargon for copy - it's killing without deleting the text. |
|
When coding elisp, you often use the (with-temp-buffer …) macro to do more or less the same thing :-)
Also, several buffers can correspond to one file: "C-x 4 c" runs clone-indirect-buffer-other-window which creates two views on one and the same file. This is not the same as splitting the window: The two buffers can each have their own, different narrowings applied. Say you have two functions defined in one file, they're almost the same, so you want to compare them. Now, clone the buffer, narrow the first buffer to the first function, the second to the second, and now you can run ediff on the two buffers :-) Or you can even open the same file in different major modes at the same time …