Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


How to perform a QUERY REPLACE

To replace a character string everywhere that it occurs within the
current buffer, there is two ways to do it

        M-x replace-string

will ask you for the string you want to replace and what you want to
replace it with.  Once you provide these, it will make the change
globally within the buffer.

        M-%

will also prompt you for the string to search for and the string to
replace it.  It differs from m-x replace-string in that it asks for
verification before making each change.

In order to enter control characters in either of the above, they will
have to be preceded by C-q. For example, ^J is typed as C-q C-j.

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.