Search code examples
emacselisp

How to get selected text in Emacs Lisp?


I need to get selection as a string in my Emacs Lisp function.


Solution

  • Selected text is called region in Emacs universe. See How do I access the contents of the current region in Emacs Lisp?