From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.emacs.devel Subject: Re: PO files and Emacs Date: Fri, 15 Mar 2002 19:43:33 +0100 (CET) Sender: emacs-devel-admin@gnu.org Message-ID: <15506.16597.304994.7358@honolulu.ilog.fr> References: <15502.734.892880.44892@honolulu.ilog.fr> <3405-Fri15Mar2002152940+0200-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1016217973 20517 127.0.0.1 (15 Mar 2002 18:46:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Mar 2002 18:46:13 +0000 (UTC) Cc: keichwa@gmx.net, emacs-devel@gnu.org Original-Received: from hermes.netfonds.no ([195.204.10.138]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16lwiT-0005Kp-00 for ; Fri, 15 Mar 2002 19:46:13 +0100 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by hermes.netfonds.no (8.10.1/8.9.3) with ESMTP id g2FIjXM07788 for ; Fri, 15 Mar 2002 19:45:33 +0100 (CET) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16lwlT-0004ld-00 for ; Fri, 15 Mar 2002 19:49:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16lwhU-0007Rh-00; Fri, 15 Mar 2002 13:45:12 -0500 Original-Received: from sceaux.ilog.fr ([193.55.64.10]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16lwfb-0007Eb-00 for ; Fri, 15 Mar 2002 13:43:15 -0500 Original-Received: from ftp.ilog.fr (ftp.ilog.fr [193.55.64.11]) by sceaux.ilog.fr (8.11.6/8.11.6) with SMTP id g2FIf8B06953 for ; Fri, 15 Mar 2002 19:41:09 +0100 (MET) Original-Received: from laposte.ilog.fr ([193.55.64.65]) by ftp.ilog.fr (NAVGW 2.5.1.16) with SMTP id M2002031519431214593 ; Fri, 15 Mar 2002 19:43:12 +0100 Original-Received: from honolulu.ilog.fr ([172.17.4.41]) by laposte.ilog.fr (8.11.6/8.11.5) with ESMTP id g2FIhAl29787; Fri, 15 Mar 2002 19:43:10 +0100 (MET) Original-Received: (from haible@localhost) by honolulu.ilog.fr (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id TAA21248; Fri, 15 Mar 2002 19:43:43 +0100 Original-To: Eli Zaretskii In-Reply-To: <3405-Fri15Mar2002152940+0200-eliz@is.elta.co.il> X-Mailer: VM 6.72 under 21.1 (patch 8) "Bryce Canyon" XEmacs Lucid Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:1946 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1946 Eli Zaretskii writes: > Does this version work for you without po-mode.el being loaded? It > uses po-with-temp-buffer, which seems to be undefined. How should I > define it? Oops, please use 'with-temp-buffer' instead. 'po-with-temp-buffer' is for older versions of Emacs. > > And please keep the comments about XEmacs. There would be no point in > > making life harder for the XEmacs maintainers. > > Why should it be commented-out? Why not make po-find-file-coding-system > work in both flavors? I thought it was more acceptable to you when commented out. Of course it's better to have the proper 'if' conditionalization. (if (string-match "XEmacs\\|Lucid" emacs-version) (defun po-find-file-coding-system (operation filename) ...) (defun po-find-file-coding-system (arg-list) ...)) > > (if (not (string-match "XEmacs\\|Lucid" emacs-version)) > > (mapc #'codepage-setup (mapcar #'car (cp-supported-codepages)))) > > Is it really a good idea to load all the cpNNN tables whenever some > PO file is visited? Isn't it better to load them only on demand? Sure. I was lazy on this point because I think all possible encodings should be provided by Emacs by default, and there should be no need to explicitly 'setup' them. Thanks, Eli! Bruno _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel