> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Uwe Brauer writes:
> Well but how to write ”? Copy and paste? That is what I said
> before, cumbersome.
In M-x search-forward you have an ordinary minibuffer, so you just
type it as you normally would, using an Emacs input method, a platform
level input method (on Ubuntu it would be XIM, if your XEmacs is
configured for it), or an AltGr key combination. The latter two might
also work with isearch (eg, Japanese input works in a terminal on Mac
OS X for me).
Yes this is the last resort. The only xkb layout I know which provides
the ”, is the german layout, whose key distribution I do not know by
heart. So I should dig out the relevant binding and put into
us-international which I use frequently.
The problem is: on my KDE3(trinity) Kubuntu distribution switching the
keyboard layout is somehow buggy and leads to frequent freeze, which
seems difficult to debug. So I consider this approach as the last
resort.
If you want it to work as it does in GNU, I suppose changing the
syntax of ?” to w would do the trick as well.
Or you could define
;; Untested but looks right.
(defun isearch-yank-character ()
"Pull the character at point in the buffer into search string."
(interactive)
(isearch-yank (function (lambda () (forward-char 1)))))
and bind it to some convenient character in isearch-mode-map.
I tried something similar without success, your code, at least allows to
paste the char into the isearch buffer, but then does not perform any
search when pressing C-s again the char gets deleted. :'(
So I thought of using iso-accents-mode, since it can be switched on/off in
the isearch buffer[1], but alas it seems that while « is included within
in latinX ” is not but only part of utf-8, so this seems also not to work
Well what-cursor-position tells me:
Char: « (U+00AB latin-iso8859-1 43) point=2696 of 2766(97%) column 1
Char: ” (U+201D latin-iso8859-16 53) point=2592 of 2727(95%) column 1
So it is part of 8859-16 (latin 16) but what is its octal
representation?
Uwe
Footnotes:
[1] which quail input method cannot as we discussed.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta