all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <help-gnu-emacs@gnu.org>, "'Tom Roche'" <Tom_Roche@pobox.com>
Subject: RE: ucs-insert in query-replace?
Date: Fri, 3 Feb 2012 11:22:52 -0800	[thread overview]
Message-ID: <D0219CC51D164CC0862565C6CF87DA40@us.oracle.com> (raw)
In-Reply-To: <87mx8z26z6.fsf@pobox.com>

> 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




  parent reply	other threads:[~2012-02-03 19:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 16:54 ucs-insert in query-replace? Tom Roche
2012-02-03 16:58 ` Jambunathan K
2012-02-03 17:26 ` Tom Roche
2012-02-03 19:22 ` Drew Adams [this message]
2012-02-03 21:19   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D0219CC51D164CC0862565C6CF87DA40@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=Tom_Roche@pobox.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.