Move hacks.el to contrib
authorNils Gillmann <ng0@n0.is>
Thu, 17 May 2018 17:44:34 +0000 (17:44 +0000)
committerNils Gillmann <ng0@n0.is>
Thu, 17 May 2018 17:44:34 +0000 (17:44 +0000)
Signed-off-by: Nils Gillmann <ng0@n0.is>
contrib/hacks.el [new file with mode: 0644]
doc/hacks.el [deleted file]

diff --git a/contrib/hacks.el b/contrib/hacks.el
new file mode 100644 (file)
index 0000000..bfb5c98
--- /dev/null
@@ -0,0 +1,18 @@
+;;;; hacks.el --- a few functions to help me work on the manual
+;;;; Jim Blandy <jimb@red-bean.com> --- October 1998
+;;;; -- imported from https://git.savannah.gnu.org/cgit/guile.git/tree/doc/hacks.el
+;;;; This code should be covered by the same license as GNU Guile (GPL3).
+
+(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 "@\\&")))))
diff --git a/doc/hacks.el b/doc/hacks.el
deleted file mode 100644 (file)
index bfb5c98..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-;;;; hacks.el --- a few functions to help me work on the manual
-;;;; Jim Blandy <jimb@red-bean.com> --- October 1998
-;;;; -- imported from https://git.savannah.gnu.org/cgit/guile.git/tree/doc/hacks.el
-;;;; This code should be covered by the same license as GNU Guile (GPL3).
-
-(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 "@\\&")))))