-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If you do query-replace-regexp, you can use \,(...) in the
substitution text for a Lisp expression to be evaluated at
substitution time. You can pass it (parts of) the matched
string with the usual \0, \1, etc.
Thus if you have a mapping available for your enums which
is accessible from Lisp (an alist, a hash, whatever) you
should be half way there.
The manual[1] has a little example (it starts at the point
"Most readers can skip it", so make sure to *not* skip it :-)
The Emacs Wiki[2] has a couple of nice examples.
Just yell if you need more help.
Cheers
[1]
https://www.gnu.org/software/emacs/manual/html_node/emacs/Regexp-Replace.html
[2]
https://www.emacswiki.org/emacs/ReplaceRegexpWithLispExpressions
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlouV9wACgkQBcgs9XrR2kasoQCfTqWd/At13mpCPtAZn+9VgM65
J+gAn3/AFIu+nwhfK4IJE6db0unak4qt
=0GSb
-----END PGP SIGNATURE-----