New answers tagged

2 votes

Copy text at line N at point

(defun foo (n) "Copy line N to the kill-ring. N is the numeric prefix arg" (interactive "p") (save-excursion (goto-char (point-min)) (forward-line (1- n)) (kill-...
  • 72.6k
2 votes

Using Emacs to find and copy relevant database records

I am sharing my solution mainly for the comparison with AWK (see comments under NickD's answer), but also because it takes a slightly different approach than the solution by @orgtre: This solution '...
  • 4,960
1 vote

Using Emacs to find and copy relevant database records

Using Emacs for this problem is just not a good way to go about it. You can learn enough about awk in a few hours to deal with such problems and the advantage is a short program that runs relatively ...
  • 23.3k
3 votes
Accepted

Using Emacs to find and copy relevant database records

While, as others have pointed out, other tools might be more suitable for this job, it can certainly be done with Emacs. 1.9GB is not an unreasonably large file size for Emacs to handle on a somewhat ...
  • 598
1 vote

ctrl+backspace overwrites copy buffer

When you delete text with C-<backspace> it is added to the kill-ring in front of the text you copied previously using C-c. You could of course change this behavior by binding something like (...
  • 598

Top 50 recent answers are included