From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Why is `C-x 8' limited to Latin-1 for search? Date: Mon, 10 Dec 2012 09:45:09 +0200 Organization: JURTA Message-ID: <871uey5zv6.fsf@mail.jurta.org> References: <1992681966EA4AE4A56751FA335DD5CE@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355127056 11955 80.91.229.3 (10 Dec 2012 08:10:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2012 08:10:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 10 09:11:09 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ThyS8-0002PH-Fc for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2012 09:11:04 +0100 Original-Received: from localhost ([::1]:48651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThyRv-0001DG-Uq for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2012 03:10:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThyR5-0000Io-Fx for emacs-devel@gnu.org; Mon, 10 Dec 2012 03:10:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThyQz-0006Rj-MD for emacs-devel@gnu.org; Mon, 10 Dec 2012 03:09:59 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:38168 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThyQz-0006RZ-Gk for emacs-devel@gnu.org; Mon, 10 Dec 2012 03:09:53 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id E8FDB451E19C; Mon, 10 Dec 2012 00:09:50 -0800 (PST) In-Reply-To: <1992681966EA4AE4A56751FA335DD5CE@us.oracle.com> (Drew Adams's message of "Sat, 8 Dec 2012 20:52:52 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.218.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155416 Archived-At: > To try the latter quickly (no, this is not the way to code this; it's j= ust a > quick way to let you try it): > > (unless (fboundp 'ORIG-isearch-edit-string) > (defalias 'ORIG-isearch-edit-string > (symbol-function 'isearch-edit-string))) > > (defun isearch-edit-string () > (interactive) > (let ((enable-recursive-minibuffers t)) > (ORIG-isearch-edit-string))) > > In a buffer with some Unicode chars, e.g., `=CE=BB': > > C-s M-e C-x 8 RET GREEK SMALL LETTER LAMBDA C-s > > (You have completion for the character name, at least.) Shouldn't users be able to insert Unicode characters in any minibuffer, not only in `isearch-edit-string'? If these is no reason to disallow, this patch should allow this for `completing-read' in `read-char-by-name'= : =3D=3D=3D modified file 'lisp/international/mule-cmds.el' --- lisp/international/mule-cmds.el 2012-10-16 23:09:00 +0000 +++ lisp/international/mule-cmds.el 2012-12-10 07:43:46 +0000 @@ -2945,7 +2945,8 @@ (defun read-char-by-name (prompt) This function also accepts a hexadecimal number of Unicode code point or a number in hash notation, e.g. #o21430 for octal, #x2318 for hex, or #10r8984 for decimal." - (let ((input + (let* ((enable-recursive-minibuffers t) + (input (completing-read prompt (lambda (string pred action)