From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#8308: 23.3; Use utf-8 for writing abbrev file Date: Mon, 21 Mar 2011 19:24:16 +0100 Message-ID: <4D8797D0.3010109@easy-emacs.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300732668 10231 80.91.229.12 (21 Mar 2011 18:37:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 18:37:48 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 19:37:42 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1jz3-0006wd-Bo for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2011 19:37:41 +0100 Original-Received: from localhost ([127.0.0.1]:39377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1jz2-0001eZ-Sn for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2011 14:37:40 -0400 Original-Received: from [140.186.70.92] (port=35539 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1jyc-0001OC-Mg for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 14:37:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1jyY-0008SK-DS for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 14:37:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1jyY-0008SF-7o for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 14:37:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q1jh0-0006cP-Dw; Mon, 21 Mar 2011 14:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2011 18:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.130073151425397 (code B ref -1); Mon, 21 Mar 2011 18:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Mar 2011 18:18:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1jgX-0006ba-Mn for submit@debbugs.gnu.org; Mon, 21 Mar 2011 14:18:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1jgV-0006bO-54 for submit@debbugs.gnu.org; Mon, 21 Mar 2011 14:18:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1jgP-0003MA-4i for submit@debbugs.gnu.org; Mon, 21 Mar 2011 14:18:26 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:54975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1jgP-0003M6-2i for submit@debbugs.gnu.org; Mon, 21 Mar 2011 14:18:25 -0400 Original-Received: from [140.186.70.92] (port=42495 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1jgM-0002h0-Pk for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 14:18:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1jgK-0003Im-AI for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 14:18:22 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:59911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1jgJ-0003Ho-Re for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 14:18:20 -0400 Original-Received: from [192.168.178.29] (brln-d9ba30ef.pool.mediaWays.net [217.186.48.239]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0Lmel1-1PRZiU0t6p-00a43I; Mon, 21 Mar 2011 19:18:17 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-Provags-ID: V02:K0:BgOPTRYCZIqEu+/sWTejxzKZrhgD3x5lGLjjqQNojag DlizBb98buPou16oP+lW1BYXlwTZ9eZluYXU9vZl4DFRsbZBoX 4yZmGJMadqB2PXGKRMqjBwU02M5ZgwDi2ujtxSXEEQCqCFO7ED M5ILQiuYtk+xMMMVzh5kgSq3S9dhCft90dNltQH9PJbh+dsqGb wFmfxhXrI2XM9k76Zh7YPRIFAXivwIEfaDZ2C2URt8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 21 Mar 2011 14:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45235 Archived-At: Am 21.03.2011 15:50, schrieb Stefan Monnier: >> Is it OK to change the encoding for abbrev file to utf-8? >> === modified file 'lisp/abbrev.el' >> --- a/lisp/abbrev.el 2011-03-21 05:49:12 +0000 >> +++ b/lisp/abbrev.el 2011-03-21 06:20:36 +0000 >> @@ -225,9 +225,9 @@ >> abbrev-file-name))) >> (or (and file (> (length file) 0)) >> (setq file abbrev-file-name)) >> - (let ((coding-system-for-write 'emacs-mule)) >> + (let ((coding-system-for-write 'utf-8)) >> (with-temp-file file >> - (insert ";;-*-coding: emacs-mule;-*-\n") >> + (insert ";;-*-coding: utf-8;-*-\n") >> (dolist (table >> ;; We sort the table in order to ease the automatic >> ;; merging of different versions of the user's abbrevs > > Sounds good in general, but I'm wondering whether we should worry about > the presence of abbrevs which include bytes (aka eight-bit-chars). > Using `utf-8-emacs' should fix those issues, but would then bump into > the problem that such abbrev files wouldn't be compatible with Emacs-22. > > > Stefan > Hi, so maybe not hard-code it, rather have a variable? Andreas