From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: searching for non ascii characters Date: Tue, 2 Aug 2005 22:55:58 +0200 Message-ID: <87699915a46e0e4d2d83f2321d17aa86@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1123016414 16068 80.91.229.2 (2 Aug 2005 21:00:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2005 21:00:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 23:00:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E03rY-000626-9C for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2005 22:59:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E03uG-0002lj-DP for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Aug 2005 17:02:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E03sf-0002Md-Ja for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 17:00:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E03sc-0002Kr-2b for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 17:00:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E03sb-0002Jq-EH for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 17:00:53 -0400 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E040J-0003nb-Vx for help-gnu-emacs@gnu.org; Tue, 02 Aug 2005 17:08:52 -0400 Original-Received: from [84.245.189.242] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #314) id 1E03ns-0006O3-00; Tue, 02 Aug 2005 22:56:00 +0200 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Radomir Hejl X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de 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:28362 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28362 Am 02.08.2005 um 22:27 schrieb Radomir Hejl: > Hello, > when in a text mode, I usually use input method. I am able to find any > character > with C-s. After saving and reading the file from a disc non ascii > characters > cannot be found. When I do C-u C-x C-= on non ascii char before saving > I see > a charset latin-iso8859-2. Doing C-u C-x C-= after saving there's > usually > mule-unicode-0100-24ff or latin-iso8859-1 charset. > > So now I can only search with success for ascii chars. What should I > trim in > emacs so that the searching be efficient? > Put a line like ;;; -*- mode: Text; coding: iso-8859-2; -*- in the file's header. Could be a (prefer-coding-system 'iso-latin-2-unix) is already OK. The environment variable LC_CTYPE is important: GNU Emacs sets a few things after this. In particular default-buffer-file-coding-system gets derived from this. Then there's file-coding-system-alist ... -- Greetings Pete Bake Pizza not war!