all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why is `C-x 8' limited to Latin-1 for search?
@ 2012-12-09  4:52 Drew Adams
  2012-12-09  5:33 ` Drew Adams
  2012-12-10  7:45 ` Juri Linkov
  0 siblings, 2 replies; 8+ messages in thread
From: Drew Adams @ 2012-12-09  4:52 UTC (permalink / raw)
  To: emacs-devel

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




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

end of thread, other threads:[~2012-12-11  0:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-09  4:52 Why is `C-x 8' limited to Latin-1 for search? Drew Adams
2012-12-09  5:33 ` 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

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.