From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.help Subject: Re: word syntax/umlauts emacs 23 vs 22 Date: Mon, 25 Oct 2010 11:31:17 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291953572 1667 80.91.229.12 (10 Dec 2010 03:59:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 03:59:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 04:59:28 2010 Return-path: Envelope-to: geh-help-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 1PQu8l-0005vo-ME for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 04:59:27 +0100 Original-Received: from localhost ([127.0.0.1]:38184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQu8l-0002gG-5a for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:59:27 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 32 Original-X-Trace: individual.net R3ik/cXnSrR2cX2iOdxv4g/kmr/g+CDOcmHpFv28vOaPIUk3A= Cancel-Lock: sha1:eH/Bv9XBlypCArVhY00y+eGOrww= sha1:M5xnzy8knyMUilz1imxIYrJKfcE= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: usenet.stanford.edu comp.emacs:100622 gnu.emacs.help:181993 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:29 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77289 Archived-At: * Stefan Monnier | You can do the following: | - open the file | - set its coding-system to latin-1 with C-x RET f latin-1 RET | - try to save the file using the new coding system: C-x C-s | - this should hopefully pop up a window giving you a list of chars | that conflict. Ok, by string-replacing the regular Umlauts I found the culprit was a single \200 char within 880+kB. This the Windows-Euro (of course the file is edited from Windows and Linux). After replacing this single char, the file is opened in latin-1 ok. Since all those files use a special editing major mode in emacs anyway, I suppose I can switch to latin-1 when entering that major mode. | But I still suggest you try what I already suggested: > | | C-x RET r latin-1 RET should cause the file to be re-read as a | | latin-1 file, and it should then be displayed properly. > | and see what this gives. This works ok in that the Umlauts are displayed properly, word movement works, and the single \200 char is not bitched about when saving the file. So I'd call this function in the major mode and all should be well (fingers crossed)... Now you don't happen to know the details of all of this in *X*emacs? Last time I looked, the functions were all different... R'