diff options
| author | Richard M. Stallman | 1995-10-24 16:36:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-24 16:36:52 +0000 |
| commit | 70d78eb6ea4275541d12c740f5020975e4f5f01f (patch) | |
| tree | 78108b459e38dfac54988b1c65fcbe832d241dbd | |
| parent | 2fa2413b195daa5851a54fd086cc106179196c89 (diff) | |
| download | emacs-70d78eb6ea4275541d12c740f5020975e4f5f01f.tar.gz emacs-70d78eb6ea4275541d12c740f5020975e4f5f01f.zip | |
(Info-following-node-name, Info-extract-menu-node-name)
(Info-select-node): Use buffer-substring-no-properties.
| -rw-r--r-- | lisp/info.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/info.el b/lisp/info.el index 4019d235a76..13447f330b3 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -582,10 +582,10 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 582 | ;; Get nodename spelled as it is in the node. | 582 | ;; Get nodename spelled as it is in the node. |
| 583 | (re-search-forward "Node:[ \t]*") | 583 | (re-search-forward "Node:[ \t]*") |
| 584 | (setq Info-current-node | 584 | (setq Info-current-node |
| 585 | (buffer-substring (point) | 585 | (buffer-substring-no-properties (point) |
| 586 | (progn | 586 | (progn |
| 587 | (skip-chars-forward "^,\t\n") | 587 | (skip-chars-forward "^,\t\n") |
| 588 | (point)))) | 588 | (point)))) |
| 589 | (Info-set-mode-line) | 589 | (Info-set-mode-line) |
| 590 | ;; Find the end of it, and narrow. | 590 | ;; Find the end of it, and narrow. |
| 591 | (beginning-of-line) | 591 | (beginning-of-line) |
| @@ -792,7 +792,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 792 | ;; saying which chas may appear in the node name. | 792 | ;; saying which chas may appear in the node name. |
| 793 | (defun Info-following-node-name (&optional allowedchars) | 793 | (defun Info-following-node-name (&optional allowedchars) |
| 794 | (skip-chars-forward " \t") | 794 | (skip-chars-forward " \t") |
| 795 | (buffer-substring | 795 | (buffer-substring-no-properties |
| 796 | (point) | 796 | (point) |
| 797 | (progn | 797 | (progn |
| 798 | (while (looking-at (concat "[" (or allowedchars "^,\t\n") "]")) | 798 | (while (looking-at (concat "[" (or allowedchars "^,\t\n") "]")) |
| @@ -916,7 +916,7 @@ NAME may be an abbreviation of the reference name." | |||
| 916 | (forward-char 1) | 916 | (forward-char 1) |
| 917 | (setq str | 917 | (setq str |
| 918 | (if (looking-at ":") | 918 | (if (looking-at ":") |
| 919 | (buffer-substring beg (1- (point))) | 919 | (buffer-substring-no-properties beg (1- (point))) |
| 920 | (skip-chars-forward " \t\n") | 920 | (skip-chars-forward " \t\n") |
| 921 | (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n")))) | 921 | (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n")))) |
| 922 | (while (setq i (string-match "\n" str i)) | 922 | (while (setq i (string-match "\n" str i)) |