Gnus development mailing list
 help / color / mirror / Atom feed
* Yet another washing function.
@ 1997-10-05  0:47 St. Suika Roberts
  1997-10-05 11:27 ` Kim-Minh Kaplan
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: St. Suika Roberts @ 1997-10-05  0:47 UTC (permalink / raw)


I started working on this one back in May, but I only got it to where
I like it today ^^;;

It fixes M$Word style `smart quotes' back to normal ascii ones.
------------------------------ cut here ------------------------------
(defun gnus-article-fix-m$word ()
  "Fix M$Word smartquotes in an article."
  (interactive)
  (save-excursion
    (with-current-buffer gnus-article-buffer
     (let ((buffer-read-only nil))
       (goto-char (point-min))
       (while (search-forward "\221" nil t)
	 (replace-match "`" t t))
       (goto-char (point-min))
       (while (search-forward "\222" nil t)
	 (replace-match "'" t t))
       (goto-char (point-min))
       (while (search-forward "\223" nil t)
	 (replace-match "\"" t t))
       (goto-char (point-min))
       (while (search-forward "\224" nil t)
	 (replace-match "\"" t t))))))
------------------------------ cut here ------------------------------

I was thinking `W W m' might be a good binding for it.

Thanks,
	Suika (yes, this makes four passes through the buffer.  If
	elisp has a way to do this in one pass I'd be interested in
	learning about it)
-- 
		wroberts@tvi.cc.nm.us
"Amazing what caffeine and no sense of self-preservation can do..."
	<a href="http://studentweb.tulane.edu/~wrobert2">lists</a>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1997-11-13 21:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-05  0:47 Yet another washing function St. Suika Roberts
1997-10-05 11:27 ` Kim-Minh Kaplan
     [not found] ` <x7iuvc8f0r.fsf@peorth.gweep.net>
1997-10-06  0:57   ` Greg Stark
1997-10-08 16:23     ` Lars Balker Rasmussen
1997-11-13 18:06       ` Lars Balker Rasmussen
1997-11-13 21:37         ` Lars Magne Ingebrigtsen
1997-10-06 19:57 ` William M. Perry
1997-10-07 14:06 ` Michael Welsh Duggan
1997-10-12 14:53 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).