aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-07 22:21:19 +0000
committerRichard M. Stallman1993-07-07 22:21:19 +0000
commitfe3371ef58ce66ebedc4424d506afaef51ab7467 (patch)
treeec297894722850ed55a01b07cee277b955cbbd4a
parentdaa6abb8d5bef4099000108ccd4f0550615c906e (diff)
downloademacs-fe3371ef58ce66ebedc4424d506afaef51ab7467.tar.gz
emacs-fe3371ef58ce66ebedc4424d506afaef51ab7467.zip
(texinfo-update-node): Bind auto-fill-hook as well as auto-fill-function.
(texinfo-sequential-node-update): Likewise.
-rw-r--r--lisp/textmodes/texnfo-upd.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el
index 67bd142a428..84e01d8f83b 100644
--- a/lisp/textmodes/texnfo-upd.el
+++ b/lisp/textmodes/texnfo-upd.el
@@ -1240,13 +1240,15 @@ which menu descriptions are indented. Its default value is 32."
1240 1240
1241 (interactive "P") 1241 (interactive "P")
1242 (if (not region-p) 1242 (if (not region-p)
1243 (let ((auto-fill-function nil)) ; update a single node 1243 ;; update a single node
1244 (let ((auto-fill-function nil) (auto-fill-hook nil))
1244 (if (not (re-search-backward "^@node" (point-min) t)) 1245 (if (not (re-search-backward "^@node" (point-min) t))
1245 (error "Node line not found before this position.")) 1246 (error "Node line not found before this position."))
1246 (texinfo-update-the-node) 1247 (texinfo-update-the-node)
1247 (message "Done...updated the node. You may save the buffer.")) 1248 (message "Done...updated the node. You may save the buffer."))
1248 ;; else 1249 ;; else
1249 (let ((auto-fill-function nil) 1250 (let ((auto-fill-function nil)
1251 (auto-fill-hook nil)
1250 (beginning (region-beginning)) 1252 (beginning (region-beginning))
1251 (end (region-end))) 1253 (end (region-end)))
1252 (if (= end beginning) 1254 (if (= end beginning)
@@ -1489,7 +1491,8 @@ Info `g*' command is inadequate."
1489 1491
1490 (interactive "P") 1492 (interactive "P")
1491 (if (not region-p) 1493 (if (not region-p)
1492 (let ((auto-fill-function nil)) ; update a single node 1494 ;; update a single node
1495 (let ((auto-fill-function nil) (auto-fill-hook nil))
1493 (if (not (re-search-backward "^@node" (point-min) t)) 1496 (if (not (re-search-backward "^@node" (point-min) t))
1494 (error "Node line not found before this position.")) 1497 (error "Node line not found before this position."))
1495 (texinfo-sequentially-update-the-node) 1498 (texinfo-sequentially-update-the-node)
@@ -1497,6 +1500,7 @@ Info `g*' command is inadequate."
1497 "Done...sequentially updated the node . You may save the buffer.")) 1500 "Done...sequentially updated the node . You may save the buffer."))
1498 ;; else 1501 ;; else
1499 (let ((auto-fill-function nil) 1502 (let ((auto-fill-function nil)
1503 (auto-fill-hook nil)
1500 (beginning (region-beginning)) 1504 (beginning (region-beginning))
1501 (end (region-end))) 1505 (end (region-end)))
1502 (if (= end beginning) 1506 (if (= end beginning)