--
fireflower
> I want search this buffer of current word under cursor, how can I do
> it?
C-s C-w
--
Bastien
> I want search this buffer of current word under cursor, how can I
> do it?
M-b C-s C-w C-s
--
Greetings
Pete
"Let's face it; we don't want a free market economy either."
James Farley, president, Coca-Cola Export Corp., 1959
Thanks
> _______________________________________________
> help-gnu-emacs mailing list
> help-gn...@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
>
--
View this message in context: http://www.nabble.com/How-to-search-current-word-under-cursor--tp4429652p18528933.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
http://www.emacswiki.org/cgi-bin/wiki/OccurFromIsearch
(Also, C-s C-w C-w... accumulates search text, so C-s C-w C-w will pick up
foo_bar as the search string.)
occur takes the first item in `regexp-history' as default value.
This list can be manipulated.
(defun occur-symbol-at-point ()
(interactive)
(let ((sym (thing-at-point 'symbol)))
(if sym
(push (regexp-quote sym) regexp-history)) ;regexp-history defvared in replace.el
(call-interactively 'occur)))
-ap