From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: Unicode feature requests for next version Date: Fri, 17 Jun 2005 09:38:59 +0300 Organization: JURTA Message-ID: <87r7f1k8qq.fsf@jurta.org> References: <42AE5645.3060709@vilain.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118991739 24897 80.91.229.2 (17 Jun 2005 07:02:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2005 07:02:19 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 17 09:02:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DjArS-0008IP-3R for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2005 09:01:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjAx1-000250-5m for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2005 03:07:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DjAo8-0007Dm-Ji for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 02:58:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DjAmS-0006zG-JE for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 02:56:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjAmH-0006jq-OV for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 02:56:41 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DjAcr-0006uK-0K for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 02:46:49 -0400 Original-Received: from mail.neti.ee (80-235-32-106-dsl.mus.estpak.ee [80.235.32.106]) by Relayhost2.neti.ee (Postfix) with ESMTP id DA8BB1E97; Fri, 17 Jun 2005 09:44:42 +0300 (EEST) Original-To: Sam Vilain In-Reply-To: <42AE5645.3060709@vilain.net> (Sam Vilain's message of "Tue, 14 Jun 2005 16:00:05 +1200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:12262 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12262 > Would it be possible to get a hotkey bound to ucs-insert? > I'm thinking C-# would be a good candidate. I have a patch that allows C-q (`quoted-insert') to read Unicode codes and insert them using `ucs-insert' function. The usage is very simple, it uses the same format as printed by `C-u C-x =' (i.e. the prefix `U'), so `C-q' followed by `U' will insert the Unicode character: C-q U42e RET I can't submit the patch now due to the feature freeze. I will hold it until the next release. I've also implemented more formats to simplify input of characters in different radix without the need to change the value of `read-quoted-char-radix'. The following formats are supported: octal: C-q 01212116 RET decimal: C-q d332878 RET hex: C-q x5144e RET > Also, It would be nice if the information you get from M-x > describe-char-after would display the Unicode code point in hex. > Perhaps even the info from C-u C-x = (or a Unicode equivalent > suitably easily located). Are you talking about CVS Emacs or a released version? In CVS, `describe-char-after' is renamed to `describe-char' (bound to `C-u C-x =') and it displays the Unicode character code in hex. > One more thing, if I am in a UTF-8 language environment, then cutting > and pasting from other X apps should really try to find a codepoint from > Unicode to insert, rather than some other mule character set. Right > now, eg if I cut and paste from Firefox I tend to get iso-2202-jp (IIRC) > double-width characters when I paste in some unicode characters. > > Perhaps these things have been solved already in CVS emacs? In CVS Emacs I get correct Unicode characters copied from Firefox. -- Juri Linkov http://www.jurta.org/emacs/