2 ;;; $Id: tl-str.el,v 1.4 1994/09/01 06:02:25 morioka Exp morioka $
7 (defun fill-cited-region (beg end)
16 (narrow-to-region beg end)
17 (goto-char (point-min))
19 (and (re-search-forward "^[^ \t>]*[>|]+[ \t#]*" nil t)
20 (buffer-substring (match-beginning 0)
23 (pat (concat "\n" fill-prefix))
25 (goto-char (point-min))
26 (while (search-forward pat nil t)
29 (goto-char (point-min))
30 (fill-region (point-min) (point-max))
33 (defun replace-top-string (&optional old new)
36 (setq old (read-string "old string is ? "))
39 (setq new (read-string "new string is ? "))
41 (while (re-search-forward (concat "^" (regexp-quote old)) nil t)
45 (defun replace-as-filename (str)
47 (i 0)(len (length str))
50 (setq chr (elt str i))
51 (if (or (and (<= ?+ chr)(<= chr ?.))
52 (and (<= ?0 chr)(<= chr ?:))
54 (and (<= ?@ chr)(<= chr ?\[))
55 (and (<= ?\] chr)(<= chr ?_))
56 (and (<= ?a chr)(<= chr ?{))
57 (and (<= ?} chr)(<= chr ?~))
59 (setq dest (concat dest
60 (char-to-string chr)))