tags-query-replace and tags-search

34 views
Skip to first unread message

khentiamentiu

unread,
Mar 23, 2018, 8:21:54 PM3/23/18
to Emacs+ plugin discussion
I've just started using eclipse, and as an old, VERY old, emacs user, I got very used to the global search, and search and replace. I find these operations to be invaluable when maintaining or updating legacy code. Here are the operations I used all the time in C and C++:

M-x tags-query-replace
M-x tags-search

Note that the operations I want to do don't just find the files, but step through each file one at a time, presenting a window of code for each file, not just a line. Is there an equivalent in eclipse or the Emacs+ plugin that can be applied to a project, working set or working space?

Thanks!

Mark Feber

unread,
Mar 26, 2018, 11:53:37 AM3/26/18
to emac...@googlegroups.com
RTFM:
Tags-like search behavior - Adapt the Emacs notion of tags-search to Eclipse.  Search for the minibuffer string in the Project, current Working Set, or Workspace.  The minibuffer string is pre-populated with the current selection, or next word (if on the same line) and can be edited by the user.  Add a convenience binding (Alt-,) as an analog to tags-loop-continue.        
    • On tags-search (and find-tag if the optional features are loaded - see below) before the command is executed the current location is stored in a ring buffer.  Use pop-tag-mark (Alt-*) to return this location.

  • Search in Project (Alt-S): Search for text in the Project
  • Search in Working Set (Ctrl-U Alt-S): Search for text in the Current Working Set (or Workspace, if no Working Set)
  • Search in Workspace (Ctrl-U Ctrl-U Alt-S): Search for text in the Workspace
  • Occur: Search for text in the current buffer
  • List Matching Lines: alias for Occur

    • Alt-C - Toggle the case sensitivity of the tags-search

  • Next (Alt-,): Navigate to the next search result (Eclipse provides Ctrl-, for previous search result)

  • Pop Tag Mark (Alt-*): Pop back to where the last tags command (tags-seartch or find-tag) was invoked 

--
--
You received this message because you are subscribed to the Google
Groups "Emacs+ Eclipse Discussion" group.
To post to this group, send email to emac...@googlegroups.com
To unsubscribe from this group, send email to
emacsplus+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/emacsplus?hl=en?hl=en
 
Support Emacs+ by marking it as a 'favorite' at the Eclipse Marketplace: http://marketplace.eclipse.org/content/emacs.

---
You received this message because you are subscribed to the Google Groups "Emacs+ plugin discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emacsplus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages