]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
Modified the fix-nonstandard-characters function to work interactively and to support...
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 2 Feb 2010 20:36:43 +0000 (15:36 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 2 Feb 2010 20:36:43 +0000 (15:36 -0500)
fix-nonstandard-chars.el

index e5c3464476659ea7a98c3757b567fde8603c6a0c..52f42df6c2b8d565eb80d191604ef8932648bc2b 100644 (file)
@@ -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 "“" "&ldquo;")
   (replace-string "”" "&rdquo;")
   (replace-string "–" "-")
+  (replace-string "—" "&mdash;")
 )