From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: ucs-insert in query-replace? Date: Fri, 3 Feb 2012 11:22:52 -0800 Message-ID: References: <87mx8z26z6.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328296996 10710 80.91.229.3 (3 Feb 2012 19:23:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 19:23:16 +0000 (UTC) To: , "'Tom Roche'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 20:23:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtOj1-0001tm-67 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 20:23:11 +0100 Original-Received: from localhost ([::1]:50893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtOj0-0006ib-KG for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 14:23:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtOiu-0006Qo-Cu for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 14:23:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtOis-0002B4-LO for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 14:23:04 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:31939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtOis-0002Au-Fz for help-gnu-emacs@gnu.org; Fri, 03 Feb 2012 14:23:02 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q13JMuAr022453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Feb 2012 19:22:58 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q13JMuia014512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2012 19:22:56 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q13JMtUP002665; Fri, 3 Feb 2012 13:22:55 -0600 Original-Received: from dradamslap1 (/10.159.45.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 03 Feb 2012 11:22:55 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87mx8z26z6.fsf@pobox.com> Thread-Index: Aczik+SVRSISQzXjRG+Ju8IYQRFQ5AAFAH+Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4F2C3414.0006,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83632 Archived-At: > M-x query-replace '=E2=88=80' and attempted to then do > ucs-insert (C-x 8 RET 'for all'), but got > "Command attempted to use minibuffer while in minibuffer" > How to do this correctly, or to do what I want some other way? 1. As Jambunathan mentioned, to be able to use a command (e.g. `ucs-insert') from the minibuffer, set `enable-recursive-minibuffers' to non-nil. (You probably want to do that only temporarily.) 2. Instead of using `ucs-insert' for each such character you want to replace, you can use library `ucs-cmds.el' to automatically create individual commands that insert the chars from the Unicode subsets that you actually use. Using such commands is instantaneous. Using `ucs-insert' each time you want to insert such a character is quite slow. 3. If in addition to #2 you bind the specific char-inserting commands that you use often to key sequences, then to use them in `query-replace' you need not set `enable-recursive-minibuffers' to non-nil. Just hit the keys for those chars to insert them anytime. Library `ucs-cmds.el' is here: http://www.emacswiki.org/emacs/download/ucs-cmds.el