comparison lisp/info.el @ 13287:f25084d29719

(Info-following-node-name, Info-extract-menu-node-name) (Info-select-node): Use buffer-substring-no-properties.
author Richard M. Stallman <rms@gnu.org>
date Tue, 24 Oct 1995 16:36:52 +0000
parents 5be0696ddc1e
children 80870ef96f18
comparison
equal deleted inserted replaced
13286:b4d36420c837 13287:f25084d29719
580 (search-backward "\n\^_") 580 (search-backward "\n\^_")
581 (forward-line 2) 581 (forward-line 2)
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)
592 (let (active-expression) 592 (let (active-expression)
593 (narrow-to-region (point) 593 (narrow-to-region (point)
790 ;; Return the node name in the buffer following point. 790 ;; Return the node name in the buffer following point.
791 ;; ALLOWEDCHARS, if non-nil, goes within [...] to make a regexp 791 ;; ALLOWEDCHARS, if non-nil, goes within [...] to make a regexp
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") "]"))
799 (skip-chars-forward (concat (or allowedchars "^,\t\n") "(")) 799 (skip-chars-forward (concat (or allowedchars "^,\t\n") "("))
800 (if (looking-at "(") 800 (if (looking-at "(")
914 str i) 914 str i)
915 (skip-chars-forward "^:") 915 (skip-chars-forward "^:")
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))
923 (aset str i ?\ )) 923 (aset str i ?\ ))
924 ;; Collapse multiple spaces. 924 ;; Collapse multiple spaces.