diff options
| author | Eli Zaretskii | 2003-11-01 17:12:02 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2003-11-01 17:12:02 +0000 |
| commit | 01cf96d518026af58c101aead1f671d90a5e9edb (patch) | |
| tree | 0127aec5c19682dea773b136a7719c517e661a2b /lisp | |
| parent | a57bfc9f97269cfbfccee38cb7d26af4aeed9531 (diff) | |
| download | emacs-01cf96d518026af58c101aead1f671d90a5e9edb.tar.gz emacs-01cf96d518026af58c101aead1f671d90a5e9edb.zip | |
(texinfo-pre-format-hook): New variable.
(texinfo-format-region): Use it.
(texinfo-format-buffer-1): Ditto.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 64a5b3f7a08..9094e15a8b6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2003-11-01 Christoph Wedler <wedler@users.sourceforge.net> (tiny change) | ||
| 2 | |||
| 3 | * textmodes/texinfmt.el (texinfo-pre-format-hook): New variable. | ||
| 4 | (texinfo-format-region): Use it. | ||
| 5 | (texinfo-format-buffer-1): Ditto. | ||
| 6 | |||
| 1 | 2003-11-01 Alan Mackenzie <acm@muc.de> | 7 | 2003-11-01 Alan Mackenzie <acm@muc.de> |
| 2 | 8 | ||
| 3 | Changes to allow scrolling whilst in isearch mode: | 9 | Changes to allow scrolling whilst in isearch mode: |
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 3b135e1a081..3e79d18a108 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -134,6 +134,11 @@ Info-split to do these manually." | |||
| 134 | (defvar texinfo-region-buffer-name "*Info Region*" | 134 | (defvar texinfo-region-buffer-name "*Info Region*" |
| 135 | "*Name of the temporary buffer used by \\[texinfo-format-region].") | 135 | "*Name of the temporary buffer used by \\[texinfo-format-region].") |
| 136 | 136 | ||
| 137 | (defvar texinfo-pre-format-hook nil | ||
| 138 | "Hook called before the conversion of the Texinfo file to Info format. | ||
| 139 | The functions on this hook are called with argument BUFFER, the buffer | ||
| 140 | containing the Texinfo file.") | ||
| 141 | |||
| 137 | ;; These come from tex-mode.el. | 142 | ;; These come from tex-mode.el. |
| 138 | (defvar tex-start-of-header) | 143 | (defvar tex-start-of-header) |
| 139 | (defvar tex-end-of-header) | 144 | (defvar tex-end-of-header) |
| @@ -215,6 +220,7 @@ converted to Info is stored in a temporary buffer." | |||
| 215 | input-buffer | 220 | input-buffer |
| 216 | (max region-beginning header-end) | 221 | (max region-beginning header-end) |
| 217 | region-end) | 222 | region-end) |
| 223 | (run-hook-with-args 'texinfo-pre-format-hook input-buffer) | ||
| 218 | ;; Make sure region ends in a newline. | 224 | ;; Make sure region ends in a newline. |
| 219 | (or (= (preceding-char) ?\n) | 225 | (or (= (preceding-char) ?\n) |
| 220 | (insert "\n")) | 226 | (insert "\n")) |
| @@ -381,6 +387,7 @@ if large. You can use Info-split to do this manually." | |||
| 381 | (set-syntax-table texinfo-format-syntax-table) | 387 | (set-syntax-table texinfo-format-syntax-table) |
| 382 | 388 | ||
| 383 | (insert-buffer-substring input-buffer) | 389 | (insert-buffer-substring input-buffer) |
| 390 | (run-hook-with-args 'texinfo-pre-format-hook input-buffer) | ||
| 384 | (message "Converting %s to Info format..." (buffer-name input-buffer)) | 391 | (message "Converting %s to Info format..." (buffer-name input-buffer)) |
| 385 | 392 | ||
| 386 | ;; Insert @include files so `texinfo-raise-lower-sections' can | 393 | ;; Insert @include files so `texinfo-raise-lower-sections' can |