all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ucs-insert in query-replace?
@ 2012-02-03 16:54 Tom Roche
  2012-02-03 16:58 ` Jambunathan K
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tom Roche @ 2012-02-03 16:54 UTC (permalink / raw
  To: help-gnu-emacs


Just now I was trying to unencode some email with lines like

> * =E2=88=80 target values v: (v > 0) || is.na(v)

I know that '=E2=88=80' == '∀', so I did (the keyboard equivalent of)

> 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?

TIA, Tom Roche <Tom_Roche@pobox.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ucs-insert in query-replace?
  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
  2 siblings, 0 replies; 5+ messages in thread
From: Jambunathan K @ 2012-02-03 16:58 UTC (permalink / raw
  To: help-gnu-emacs; +Cc: Tom Roche

Tom Roche <Tom_Roche@pobox.com> writes:

> Just now I was trying to unencode some email with lines like
>
>> * =E2=88=80 target values v: (v > 0) || is.na(v)
>
> I know that '=E2=88=80' == '∀', so I did (the keyboard equivalent of)
>
>> 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

(setq enable-recursive-minibuffers t)

>
> How to do this correctly, or to do what I want some other way?
>
> TIA, Tom Roche <Tom_Roche@pobox.com>
>
>

-- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ucs-insert in query-replace?
  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
  2 siblings, 0 replies; 5+ messages in thread
From: Tom Roche @ 2012-02-03 17:26 UTC (permalink / raw
  To: help-gnu-emacs



Tom Roche Fri, 03 Feb 2012 11:54:05 -0500
>> I did (the keyboard equivalent of)

>> 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

Jambunathan K Fri, 03 Feb 2012 22:28:34 +0530
> (setq enable-recursive-minibuffers t)

Thanks! that fixes.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: ucs-insert in query-replace?
  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
  2012-02-03 21:19   ` Eli Zaretskii
  2 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2012-02-03 19:22 UTC (permalink / raw
  To: help-gnu-emacs, 'Tom Roche'

> 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ucs-insert in query-replace?
  2012-02-03 19:22 ` Drew Adams
@ 2012-02-03 21:19   ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2012-02-03 21:19 UTC (permalink / raw
  To: help-gnu-emacs

> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Fri, 3 Feb 2012 11:22:52 -0800
> 
> 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.

There's also the TeX input method which can insert quite a few Unicode
characters.  "C-u C-\ TeX RET" to activate it, "C-h C-\ TeX RET" to
display the characters it can insert.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-03 21:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-02-03 21:19   ` Eli Zaretskii

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.