From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: Why is `C-x 8' limited to Latin-1 for search?
Date: Sat, 8 Dec 2012 20:52:52 -0800 [thread overview]
Message-ID: <1992681966EA4AE4A56751FA335DD5CE@us.oracle.com> (raw)
I was thinking that one could now use `C-x 8 RET' (which is now `insert-char')
to insert any Unicode char into the Isearch search string. Apparently not.
At least it doesn't seem to work (`C-x 8 RET' is bound to
`isearch-other-control-char'), and I couldn't find it mentioned in the doc.
Looking for it in the doc, I found only a mention that you can use `C-x 8' to
insert Latin-1 chars (and so search for them).
Is it intentional that you cannot search for other Unicode chars using `C-x 8
RET'? Is that not possible only because it is not yet implemented, or is there
some reason why it should not be available (implemented)?
Yes, I know that `C-x 8 RET' is not necessarily an ideal way to input chars.
But it seems like you should be able to use it here anyway.
If there is a good reason why one should not be able to use `C-x 8 RET' to
directly input chars during Isearch, what about letting users at least use `C-x
8 RET' after `M-e', to input chars that way?
---
To try the latter quickly (no, this is not the way to code this; it's just 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., `λ':
C-s M-e C-x 8 RET GREEK SMALL LETTER LAMBDA C-s
(You have completion for the character name, at least.)
next reply other threads:[~2012-12-09 4:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-09 4:52 Drew Adams [this message]
2012-12-09 5:33 ` Why is `C-x 8' limited to Latin-1 for search? Drew Adams
2012-12-10 7:46 ` Juri Linkov
2012-12-10 14:24 ` Drew Adams
2012-12-10 21:57 ` Juri Linkov
2012-12-11 0:11 ` Drew Adams
2012-12-10 7:45 ` Juri Linkov
2012-12-10 14:44 ` Drew Adams
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=1992681966EA4AE4A56751FA335DD5CE@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=emacs-devel@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.