+2001-08-02 Karl Eichwalder <ke@suse.de>
+
+ * po-mode.el (po-find-charset): Drop 'interactive'. Use
+ 'insert-file-contents-literally' to avoid side effects. Correct off
+ by 1 error.
+
2001-08-07 Karl Eichwalder <ke@suse.de>
* po-mode.el (po-subedit-mode-menu-layout): New definition.
(while (not (or short-read (re-search-forward "^msgid" nil t)))
(save-excursion
(goto-char (point-max))
- (let ((pair (insert-file-contents filename nil
- (1- (point)) (1- (+ (point) 4096)))))
+ (let ((pair (insert-file-contents-literally filename nil
+ (1- (point))
+ (1- (+ (point) 4096)))))
(setq short-read (< (nth 1 pair) 4096)))))
(cond (short-read nil)
((re-search-forward charset-regexp nil t) (match-string 1))
;; isn't available, give up.
(t (save-excursion
(goto-char (point-max))
- (insert-file-contents filename nil (point) (+ (point) 1024)))
+ (insert-file-contents-literally filename nil
+ (1- (point))
+ (1- (+ (point) 1024))))
(if (re-search-forward charset-regexp nil t)
(match-string 1))))))