aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/pg-xml.el
diff options
context:
space:
mode:
authorGravatar Makarius Wenzel <makarius@sketis.net>2001-01-11 19:57:52 +0000
committerGravatar Makarius Wenzel <makarius@sketis.net>2001-01-11 19:57:52 +0000
commit742fe586cf81bde132d0389f70c5c459eb144860 (patch)
tree909585f70c6ba16e4826e01cb9bf0d1131625a60 /generic/pg-xml.el
parenta054106b5c0d6fed882fc6cfef55468205557277 (diff)
fixed format strings in message, error, etc.
Diffstat (limited to 'generic/pg-xml.el')
-rw-r--r--generic/pg-xml.el36
1 files changed, 14 insertions, 22 deletions
diff --git a/generic/pg-xml.el b/generic/pg-xml.el
index 1df7e33e..75954108 100644
--- a/generic/pg-xml.el
+++ b/generic/pg-xml.el
@@ -102,10 +102,8 @@ is
(setq attrs (reverse attrs))
;; Now we ought to be at the end of the element opening
(unless (looking-at pg-xml-end-open-elt-regexp)
- (error
- (format
- "pg-xml-parse-buffer: Invalid XML in element opening %s"
- (symbol-name elt))))
+ (error "pg-xml-parse-buffer: Invalid XML in element opening %s"
+ (symbol-name elt)))
;; Stack the element unless it's self closing
(if (> (length (match-string 1)) 0)
;; Add element without nesting
@@ -124,13 +122,11 @@ is
(setq elt (intern (match-string 1)))
;; It better be the top thing on the stack
(unless (eq elt (car-safe openelts))
- (error
- (format
- "pg-xml-parse-buffer: Invalid XML at element closing </%s> (expected </%s>)"
- (symbol-name elt)
- (if openelts
- (symbol-name (car openelts))
- "no closing element"))))
+ (error "pg-xml-parse-buffer: Invalid XML at element closing </%s> (expected </%s>)"
+ (symbol-name elt)
+ (if openelts
+ (symbol-name (car openelts))
+ "no closing element")))
;; Add text before here to the parse
(pg-xml-add-text (buffer-substring pos (match-beginning 0)))
;; Unstack the element and close subtree
@@ -145,23 +141,19 @@ is
;; CASE 3: comment
((looking-at pg-xml-comment-start-regexp)
(unless (re-search-forward pg-xml-comment-end-regexp nil t)
- (error
- (format
- "pg-xml-parse-buffer: Unclosed comment beginning at line %s"
- (1+ (count-lines (point-min) (point)))))))))
+ (error "pg-xml-parse-buffer: Unclosed comment beginning at line %s"
+ (1+ (count-lines (point-min) (point))))))))
;; We'd better have nothing on the stack of open elements now.
(unless (null openelts)
- (error
- (format "pg-xml-parse-buffer: Unexpected end of document, expected </%s>"
- (symbol-name (car openelts)))))
+ (error "pg-xml-parse-buffer: Unexpected end of document, expected </%s>"
+ (symbol-name (car openelts))))
;; And we'd better be at the end of the document.
(unless (and (looking-at "[ \t\n]*")
(eq (match-end 0) (point-max)))
- (warn
- (format "pg-xml-parse-buffer: Junk at end of document: %s"
- (buffer-substring (point)
- (min (point-max) (+ 30 (point-max)))))))
+ (warn "pg-xml-parse-buffer: Junk at end of document: %s"
+ (buffer-substring (point)
+ (min (point-max) (+ 30 (point-max))))))
;; Return the parse
;; FIXME:
(caar xmlparse))))