From 75b76032baa809cde05b5b54ea6611a15b1b840a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 2 Feb 2010 15:36:43 -0500 Subject: [PATCH] Modified the fix-nonstandard-characters function to work interactively and to support another nonstandard character. --- fix-nonstandard-chars.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 "—" "—") ) -- 2.44.2