]> git.donarmstrong.com Git - lilypond.git/blobdiff - guile18/doc/hacks.el
Import guile-1.8 as multiple upstream tarball component
[lilypond.git] / guile18 / doc / hacks.el
diff --git a/guile18/doc/hacks.el b/guile18/doc/hacks.el
new file mode 100644 (file)
index 0000000..c5a3f57
--- /dev/null
@@ -0,0 +1,16 @@
+;;;; hacks.el --- a few functions to help me work on the manual
+;;;; Jim Blandy <jimb@red-bean.com> --- October 1998
+
+(defun jh-exemplify-region (start end)
+  (interactive "r")
+  (save-excursion
+    (save-restriction
+      (narrow-to-region start end)
+
+      ;; Texinfo doesn't handle tabs well.
+      (untabify (point-min) (point-max))
+
+      ;; Quote any characters special to texinfo.
+      (goto-char (point-min))
+      (while (re-search-forward "[{}@]" nil t)
+       (replace-match "@\\&")))))