diff options
author | Nils Gillmann <ng0@n0.is> | 2018-05-17 17:44:34 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-05-17 17:44:34 +0000 |
commit | 03ce7bc90340793f32526dd3b6ee3d4a6ab79be5 (patch) | |
tree | e28dce958aee897a2b86fcb7d35397477a14acbd /doc | |
parent | 7ef657ddcdb150ae7d08a66e68c49906255be966 (diff) | |
download | gnunet-03ce7bc90340793f32526dd3b6ee3d4a6ab79be5.tar.gz gnunet-03ce7bc90340793f32526dd3b6ee3d4a6ab79be5.zip |
Move hacks.el to contrib
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hacks.el | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/doc/hacks.el b/doc/hacks.el deleted file mode 100644 index bfb5c98fa..000000000 --- a/doc/hacks.el +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | ;;;; hacks.el --- a few functions to help me work on the manual | ||
2 | ;;;; Jim Blandy <jimb@red-bean.com> --- October 1998 | ||
3 | ;;;; -- imported from https://git.savannah.gnu.org/cgit/guile.git/tree/doc/hacks.el | ||
4 | ;;;; This code should be covered by the same license as GNU Guile (GPL3). | ||
5 | |||
6 | (defun jh-exemplify-region (start end) | ||
7 | (interactive "r") | ||
8 | (save-excursion | ||
9 | (save-restriction | ||
10 | (narrow-to-region start end) | ||
11 | |||
12 | ;; Texinfo doesn't handle tabs well. | ||
13 | (untabify (point-min) (point-max)) | ||
14 | |||
15 | ;; Quote any characters special to texinfo. | ||
16 | (goto-char (point-min)) | ||
17 | (while (re-search-forward "[{}@]" nil t) | ||
18 | (replace-match "@\\&"))))) | ||