I need to be able to remove all comments from a buffer from elisp code. For now, I am using:
(comment-kill (count-lines (point-min) (point-max)))
However, comment-kill is an ...
I use the brilliant answer from my previous question to copy selected regions of text from Emacs onto my system pasteboard (i.e. the OSX clipboard).
But some functions (e.g. gist-buffer) push output ...
Suppose that I have a *shell* buffer (i.e. a subordinate shell, started with M-x shell). Suppose also that at this shell's prompt, I can execute some command foo that sends some output to stdout.
So I wanted to basically copy the current selection, then yanking it into find-file, as when using:
C-x C-f: find-file
While that works great, I ...