[PLUG] emacs: search-and-replace regex

Rich Shepard rshepard at appl-ecosys.com
Sun Dec 29 09:27:03 UTC 2002


On Sun, 29 Dec 2002, Roderick A. Anderson wrote:

> Alt-X 
> query-replace-regex 
> \([PRV]\)DB 
> \1DBstruct

  Thanks, Rod.

  In the prototype argument lists are structures such as (ADB*,PDB*). The
compiler complains of a parsing error before the '*' that disappears if I
replace the list with (struct ADB*,struct PDB*).

  Given several dozen prototypes to modify I wanted to have a
search-and-replace do the work as I pressed 'y' and 'n'. Cleaning this code
up is tedious enough as it is without manually changing dozens of arguments.
:-)

Rich





More information about the PLUG mailing list