diff options
| author | Richard M. Stallman | 1998-06-29 18:34:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-06-29 18:34:43 +0000 |
| commit | 93e7ada98147db1b93e3009278687ef03771bdbe (patch) | |
| tree | 87c64ff10b3028776fe50c4b3ec28a47cc7076a8 | |
| parent | e99452648333d412a1b4dfb8b159e540cfb47e04 (diff) | |
| download | emacs-93e7ada98147db1b93e3009278687ef03771bdbe.tar.gz emacs-93e7ada98147db1b93e3009278687ef03771bdbe.zip | |
(Info-split): Convert positions to bytes to put in file.
(Info-tagify): Likewise.
| -rw-r--r-- | lisp/informat.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/informat.el b/lisp/informat.el index 36f0c560675..36a9bf11134 100644 --- a/lisp/informat.el +++ b/lisp/informat.el | |||
| @@ -76,7 +76,8 @@ | |||
| 76 | (setq list (nreverse list)) | 76 | (setq list (nreverse list)) |
| 77 | (while list | 77 | (while list |
| 78 | (insert "Node: " (car (car list)) ?\177) | 78 | (insert "Node: " (car (car list)) ?\177) |
| 79 | (princ (car (cdr (car list))) (current-buffer)) | 79 | (princ (position-bytes (car (cdr (car list)))) |
| 80 | (current-buffer)) | ||
| 80 | (insert ?\n) | 81 | (insert ?\n) |
| 81 | (setq list (cdr list))) | 82 | (setq list (cdr list))) |
| 82 | (insert "\^_\nEnd tag table\n"))))) | 83 | (insert "\^_\nEnd tag table\n"))))) |
| @@ -106,7 +107,8 @@ contains just the tag table and a directory of subfiles." | |||
| 106 | (search-forward "\^_") | 107 | (search-forward "\^_") |
| 107 | (forward-char -1) | 108 | (forward-char -1) |
| 108 | (let ((start (point)) | 109 | (let ((start (point)) |
| 109 | (chars-deleted 0) | 110 | (start-byte (position-bytes (point))) |
| 111 | (bytes-deleted 0) | ||
| 110 | subfiles | 112 | subfiles |
| 111 | (subfile-number 1) | 113 | (subfile-number 1) |
| 112 | (case-fold-search t) | 114 | (case-fold-search t) |
| @@ -128,7 +130,7 @@ contains just the tag table and a directory of subfiles." | |||
| 128 | (goto-char (min (+ (point) 50000) (point-max))) | 130 | (goto-char (min (+ (point) 50000) (point-max))) |
| 129 | (search-forward "\^_" nil 'move) | 131 | (search-forward "\^_" nil 'move) |
| 130 | (setq subfiles | 132 | (setq subfiles |
| 131 | (cons (list (+ start chars-deleted) | 133 | (cons (list (+ start-byte bytes-deleted) |
| 132 | (concat (file-name-nondirectory filename) | 134 | (concat (file-name-nondirectory filename) |
| 133 | (format "-%d" subfile-number))) | 135 | (format "-%d" subfile-number))) |
| 134 | subfiles)) | 136 | subfiles)) |
| @@ -139,7 +141,8 @@ contains just the tag table and a directory of subfiles." | |||
| 139 | (delete-region (1- (point)) (point)) | 141 | (delete-region (1- (point)) (point)) |
| 140 | ;; Back up over the final ^_. | 142 | ;; Back up over the final ^_. |
| 141 | (forward-char -1) | 143 | (forward-char -1) |
| 142 | (setq chars-deleted (+ chars-deleted (- (point) start))) | 144 | (setq bytes-deleted (+ bytes-deleted (- (position-bytes (point)) |
| 145 | start-byte))) | ||
| 143 | (delete-region start (point)) | 146 | (delete-region start (point)) |
| 144 | (setq subfile-number (1+ subfile-number)))) | 147 | (setq subfile-number (1+ subfile-number)))) |
| 145 | (while subfiles | 148 | (while subfiles |