This is a bit of code I've been using to convert perl strings between
single quotes 'foo' and double quote "foo".

I use it mostly to automatically flip the backslashing needed, so
'xx"yy' -> "xx\"yy" or vice versa.  I've also found the gettext style
__"" -> __('') good because adding parens manually is a bit tedious.
The q{} and qq{} support may be a bit superfluous, and might be
imperfect too.


Attachment: perl-quote.el
Description: application/emacs-lisp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQBKKGmxLFMCIV9q3ToRAsO5AJ9RSelyGtKDK8PZ/oG1TNSQBk3KZgCfbT5R
h6nonw/IgEzo3M/yKvVPTko=
=rfTa
-----END PGP SIGNATURE-----
_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to