Home » Questions » Computers [ Ask a new question ]

Capturing and parsing xterm cut buffer in emacs

Capturing and parsing xterm cut buffer in emacs

I'd like to make an indirect control for Emacs (in Ubuntu Linux) so that I can swipe some text in an xterm with the cursor, cutting it into the X cut buffer, then run a macro in Emacs to parse the cut buffer text to look for text saying "line XXXX" where X is all digits, then go to that line in the current Emacs buffer.

Asked by: Guest | Views: 281
Total answers/comments: 1
Guest [Entry]

"(x-get-selection) is an elisp function that returns the current X11 selected text.

Also, the standard way to get an error message and use it in emacs to be able to jump directly to the specified file/line is to run M-x compile, or use a command that customizes compilation mode. emacs already recognizes gcc, g++, and many other programs' output. With M-x compile emacs automatically generates clickable links for the error messages that it recognizes, and with newer emacs versions they respond to left click, rather then defaulting to middle-click."