I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. S
Yes. M-W (to get a copy of the selected text) C-s C-y . Then repeat C-s as needed. Similarly for C-r.
M-W
C-s C-y
C-s
C-r