aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-24 22:22:20 +0000
committerRichard M. Stallman1995-10-24 22:22:20 +0000
commite64d0760778a86582eddff0b92000ade3a09bd77 (patch)
tree42030b34d5ec80fad066c591613ac38337327324
parent0c04a67e981249137042912ac11ad178af6d0e21 (diff)
downloademacs-e64d0760778a86582eddff0b92000ade3a09bd77.tar.gz
emacs-e64d0760778a86582eddff0b92000ade3a09bd77.zip
(Info-validate, Info-validate-node-name): Use buffer-substring-no-properties.
(Info-tagify, batch-info-validate, Info-validate-tags-table): Likewise.
-rw-r--r--lisp/informat.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/informat.el b/lisp/informat.el
index 2d923a1570d..7d7d73725bf 100644
--- a/lisp/informat.el
+++ b/lisp/informat.el
@@ -55,7 +55,7 @@
55 (forward-line 2) 55 (forward-line 2)
56 (if (re-search-backward regexp beg t) 56 (if (re-search-backward regexp beg t)
57 (setq list 57 (setq list
58 (cons (list (buffer-substring 58 (cons (list (buffer-substring-no-properties
59 (match-beginning 1) 59 (match-beginning 1)
60 (match-end 1)) 60 (match-end 1))
61 beg) 61 beg)
@@ -175,7 +175,7 @@ Check that every node pointer points to an existing node."
175 (forward-line 1) 175 (forward-line 1)
176 (if (re-search-backward regexp beg t) 176 (if (re-search-backward regexp beg t)
177 (let ((name (downcase 177 (let ((name (downcase
178 (buffer-substring 178 (buffer-substring-no-properties
179 (match-beginning 1) 179 (match-beginning 1)
180 (progn 180 (progn
181 (goto-char (match-end 1)) 181 (goto-char (match-end 1))
@@ -208,7 +208,7 @@ Check that every node pointer points to an existing node."
208 (search-forward "\n\^_" nil 'move) 208 (search-forward "\n\^_" nil 'move)
209 (narrow-to-region beg (point)) 209 (narrow-to-region beg (point))
210 (setq thisnode (downcase 210 (setq thisnode (downcase
211 (buffer-substring 211 (buffer-substring-no-properties
212 (match-beginning 1) 212 (match-beginning 1)
213 (progn 213 (progn
214 (goto-char (match-end 1)) 214 (goto-char (match-end 1))
@@ -302,7 +302,7 @@ Check that every node pointer points to an existing node."
302 (if (= (following-char) ?\() 302 (if (= (following-char) ?\()
303 nil 303 nil
304 (setq name 304 (setq name
305 (buffer-substring 305 (buffer-substring-no-properties
306 (point) 306 (point)
307 (progn 307 (progn
308 (skip-chars-forward "^,\t\n") 308 (skip-chars-forward "^,\t\n")
@@ -338,7 +338,7 @@ Check that every node pointer points to an existing node."
338 (setq tem (cdr tem))) 338 (setq tem (cdr tem)))
339 (goto-char (1+ start)) 339 (goto-char (1+ start))
340 (while (looking-at ".*Node: \\(.*\\)\177\\([0-9]+\\)$") 340 (while (looking-at ".*Node: \\(.*\\)\177\\([0-9]+\\)$")
341 (setq tem (downcase (buffer-substring 341 (setq tem (downcase (buffer-substring-no-properties
342 (match-beginning 1) 342 (match-beginning 1)
343 (match-end 1)))) 343 (match-end 1))))
344 (setq tem (assoc tem allnodes)) 344 (setq tem (assoc tem allnodes))
@@ -348,8 +348,10 @@ Check that every node pointer points to an existing node."
348 (setq tem (- (car (cdr (cdr tem))) 348 (setq tem (- (car (cdr (cdr tem)))
349 (read (current-buffer)))) 349 (read (current-buffer))))
350 (if (> tem 0) tem (- tem))))) 350 (if (> tem 0) tem (- tem)))))
351 (throw 'losing 'y))) 351 (throw 'losing 'y))
352 (forward-line 1)) 352 (forward-line 1)))
353 (if (looking-at "\^_\n")
354 (forward-line 1))
353 (or (looking-at "End tag table\n") 355 (or (looking-at "End tag table\n")
354 (throw 'losing 'z)) 356 (throw 'losing 'z))
355 nil)))) 357 nil))))
@@ -412,7 +414,8 @@ For example, invoke \"emacs -batch -f batch-info-validate $info/ ~/*.info\""
412 (message ">> PROBLEMS IN INFO FILE %s" file) 414 (message ">> PROBLEMS IN INFO FILE %s" file)
413 (save-excursion 415 (save-excursion
414 (set-buffer loss-name) 416 (set-buffer loss-name)
415 (princ (buffer-substring (point-min) (point-max)))) 417 (princ (buffer-substring-no-properties
418 (point-min) (point-max))))
416 (message "----------------------------------------------------------------------") 419 (message "----------------------------------------------------------------------")
417 (setq error 1 lose t))) 420 (setq error 1 lose t)))
418 (if (and (buffer-modified-p) 421 (if (and (buffer-modified-p)