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: how to show file encode under emacs Date: Wed, 19 Dec 2007 11:04:59 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1198058948 30015 80.91.229.12 (19 Dec 2007 10:09:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 10:09:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "chandle.wei" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 11:09:20 2007 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.50) id 1J4vrc-0005uI-3G for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 11:09:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4vrI-0007nc-HC for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 05:09:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4vnY-0004gm-2X for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 05:05:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4vnV-0004fr-Cv for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 05:05:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4vnV-0004fL-2e for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 05:05:05 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4vnU-0006Fo-J5 for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 05:05:04 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 60327BADDD7D; Wed, 19 Dec 2007 11:05:02 +0100 (CET) Original-Received: from [195.4.205.163] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1J4vnR-0001tj-00; Wed, 19 Dec 2007 11:05:02 +0100 In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+DDiFu0c2Znjnxsv8gURBBPHSOAS7uTiXh8fgH 0Ez+UA5fBCZpf+y/uhFRXcsnjejKz0K2bYQiFC6xfR9PI5BkLY F84j032ccMBayRgdvr4Q== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:50208 Archived-At: Am 19.12.2007 um 04:27 schrieb chandle.wei: > I'm use unicad.el that an elisp port of Mozilla Universal Charset Auto > Detector . I don't know that file. And I don't know what it can do better then =20 existing code in GNU Emacs. Have you read in *info* buffer the =20 "Recognize Coding" node? And some more on encoding issues? Or about =20 the "Mode Line"? > I just want show detectored encode like (utf-8 gb2312 shfit-jfs) under > bottom bar . What is that "bottom bar"? The dock? > how to do it Here is an excerpt form the HELLO buffer (C-h H): Kannada (=E0=B2=95=E0=B2=A8=E0=B2=A8=E0=B2=A1) = =E0=B2=A8=E0=B2=AE=E0=B2=B8=E0=B2=95=E0=B2=BE=E0=B2=B0 Lao (=E0=BA=9E=E0=BA=B2=E0=BA=AA=E0=BA=B2=E0=BA=A5=E0=BA=B2=E0=BA=A7) = =E0=BA=AA=E0=BA=B0=E0=BA=9A=E0=BA=B2=E0=BA=8D=E0=BA=94, =20= =E0=BA=82=E0=BB=83=E0=BA=AB=E0=BB=82=E0=BA=8A=E0=BA=81=E0=BA=94 Malayalam (=E0=B4=AE=E0=B4=B2=E0=B4=AF=E0=B4=BE=E0=B4=B3=E0=B4=82) = =E0=B4=A8=E0=B4=AE=E0=B4=B8=E0=B4=95=E0=B4=BE=E0=B4=B0=E0=B4=82 Maltese (il-Malti) Bon=C4=A1u, Sa=C4=A7=C4=A7a Mathematics =E2=88=80 p =E2=88=88 world =E2=80=A2 = hello p =E2=96=A1 -UUJ:%%--F1 HELLO Top (1,0) (Fundamental View)----Mi, =20 19. Dez 2007 10:17 0.36---- The mode-line starts, at the left, with - and then, only when used in =20= a terminal emulation or a real terminal, come three characters that =20 describe encoding parameters (in a windowing environment only one =20 character is used), I think it's Unicode (UTF-8) for input and output =20= encoding operations and then the J stands for iso-2022-7bit encoding =20 used for the file visiting the buffer. You can get explanation for =20 these "remarks" with M-x describe-coding-system (or C-h C) and then =20 RET to choose information for this buffer. In a windowing environment =20= you can simply click with the mouse (left) onto the character and a =20 *Help* buffer opens to explain =E2=80=93 I think you'll need an = up-to-date =20 version 22.x of GNU Emacs. If you're asking how to integrate output of unicad.el into mode-line: =20= I don't know, because I don't know that file and what it does and how =20= it outputs/provides information. Anyway, you can customise mode-line: Options menu -> Customize Emacs -> Specific Option... and enter: m o d e - then choose mode-line-format. You'll see: (#("-" 0 1 (help-echo "mouse-1: select (drag to resize), mouse-2: delete =20 others, mouse-3: delete this")) mode-line-mule-info mode-line-modified mode-line-frame-=20 identification mode-line-buffer-identification The important term is the variable mode-line-mule-info. You might =20 consider to substitute it with something else, from unicad.el. You =20 might also, and maybe better, consider to add something coming from =20 unicad.el somewhere else to mode-line ... -- Greetings Pete Our enemies are innovative and resourceful, and so are we. They never =20= stop thinking about new ways to harm our country and our people, and =20 neither do we. =E2=80=93 Georges W. Bush