From: Michael Orlitzky Date: Tue, 2 Feb 2010 20:36:43 +0000 (-0500) Subject: Modified the fix-nonstandard-characters function to work interactively and to support... X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=75b76032baa809cde05b5b54ea6611a15b1b840a;p=emacs.d.git Modified the fix-nonstandard-characters function to work interactively and to support another nonstandard character. --- diff --git a/fix-nonstandard-chars.el b/fix-nonstandard-chars.el index e5c3464..52f42df 100644 --- a/fix-nonstandard-chars.el +++ b/fix-nonstandard-chars.el @@ -1,9 +1,12 @@ -(defun fix-nonstandard-chars +(defun fix-nonstandard-chars (context) "Replace some typical nonstandard characters that result from copy-and-pasting word processor text into XHTML documents." + (interactive "P") + (replace-string "’" "'") (replace-string "“" "“") (replace-string "”" "”") (replace-string "–" "-") + (replace-string "—" "—") )