diff options
| author | Stefan Monnier | 2001-11-30 23:59:28 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-11-30 23:59:28 +0000 |
| commit | f7d5479b3d89a3a3af03adf2ed66d3c6be56b40c (patch) | |
| tree | db3ef5af543fdf8537aaffa47b85b17497e4695f | |
| parent | f71d927d8b0175b29dc5b79508e7a3360d533618 (diff) | |
| download | emacs-f7d5479b3d89a3a3af03adf2ed66d3c6be56b40c.tar.gz emacs-f7d5479b3d89a3a3af03adf2ed66d3c6be56b40c.zip | |
(Info-find-node-2): Don't call info-insert-file-contents
with the `visit' argument.
(Info-extract-menu-node-name): Use `replace-regexps-in-string'.
| -rw-r--r-- | lisp/info.el | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/info.el b/lisp/info.el index 2f9d6e02024..660af03c959 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -609,7 +609,7 @@ a case-insensitive match is tried." | |||
| 609 | (erase-buffer) | 609 | (erase-buffer) |
| 610 | (if (eq filename t) | 610 | (if (eq filename t) |
| 611 | (Info-insert-dir) | 611 | (Info-insert-dir) |
| 612 | (info-insert-file-contents filename t) | 612 | (info-insert-file-contents filename nil) |
| 613 | (setq default-directory (file-name-directory filename))) | 613 | (setq default-directory (file-name-directory filename))) |
| 614 | (set-buffer-modified-p nil) | 614 | (set-buffer-modified-p nil) |
| 615 | ;; See whether file has a tag table. Record the location if yes. | 615 | ;; See whether file has a tag table. Record the location if yes. |
| @@ -1393,12 +1393,7 @@ FOOTNOTENAME may be an abbreviation of the reference name." | |||
| 1393 | (buffer-substring-no-properties beg (1- (point))) | 1393 | (buffer-substring-no-properties beg (1- (point))) |
| 1394 | (skip-chars-forward " \t\n") | 1394 | (skip-chars-forward " \t\n") |
| 1395 | (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n")))) | 1395 | (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n")))) |
| 1396 | (while (setq i (string-match "\n" str i)) | 1396 | (replace-regexp-in-string "[ \n]+" " " str))) |
| 1397 | (aset str i ?\ )) | ||
| 1398 | ;; Collapse multiple spaces. | ||
| 1399 | (while (string-match " +" str) | ||
| 1400 | (setq str (replace-match " " t t str))) | ||
| 1401 | str)) | ||
| 1402 | 1397 | ||
| 1403 | ;; No one calls this. | 1398 | ;; No one calls this. |
| 1404 | ;;(defun Info-menu-item-sequence (list) | 1399 | ;;(defun Info-menu-item-sequence (list) |