+2010-08-30 Bruno Haible <bruno@clisp.org>
+
+ Improve interopability with Emacs 23.
+ * po-compat.el (po-find-file-coding-system-guts): Don't use codepages
+ API in Emacs >= 23.
+ * po-mode.el (po-mode-version-string): Bump to 2.21.
+ (po-ediff-buffers-exit-recursive, po-send-mail): Use
+ insert-buffer-substring instead of insert-buffer.
+
2010-06-06 Bruno Haible <bruno@clisp.org>
New options --with-xz and --with-bzip2 for compressing the archive.
;;; po-compat.el --- basic support of PO translation files -*- coding: latin-1; -*-
-;; Copyright (C) 1995-1999, 2000-2002 Free Software Foundation, Inc.
+;; Copyright (C) 1995-1999, 2000-2002, 2010 Free Software Foundation, Inc.
;; Authors: François Pinard <pinard@iro.umontreal.ca>,
;; Greg McGary <gkm@magilla.cichlid.com>,
(list (cond ((and try-symbol (coding-system-p try-symbol))
try-symbol)
((and po-EMACS20
+ (not (string-lessp "23" emacs-version))
(string-match "\\`cp[1-9][0-9][0-9]?\\'"
try-string)
(assoc (substring try-string 2)
;;; Code:
\f
-(defconst po-mode-version-string "2.2" "\
+(defconst po-mode-version-string "2.21" "\
Version number of this version of po-mode.el.")
;;; Emacs portability matters - part I.
(recursive-edit)
(pop-to-buffer oldbuf)
(delete-region (point-min) end)
- (insert-buffer b2)
+ (insert-buffer-substring b2)
(mapc 'kill-buffer `(,b1 ,b2))
(display-buffer entry-buffer t))
(re-search-forward
(concat "^" (regexp-quote mail-header-separator) "\n"))
(save-excursion
- (insert-buffer buffer)
+ (insert-buffer-substring buffer)
(shell-command-on-region
(region-beginning) (region-end)
(concat po-gzip-uuencode-command " " name ".gz") t))))))