From: Kenichi Handa <handa@m17n.org>
Cc: romain@orebokech.com
Subject: AGAIN: Can't isearch 'ö'
Date: Thu, 08 Dec 2005 11:25:22 +0900 [thread overview]
Message-ID: <E1EkBTG-0004m2-00@etlken> (raw)
About a half year ago, we discussed this.
> The original problem was that when a user have `ö' of
> iso-8859-15 in a buffer of iso-8859-15 coding system, he
> can't isearch that character by typing `ö' on his keyboard
> because that key is recognized as `ö' of iso-8859-1.
>
> Stefan's proposal is to translate a character by
> translation-table-for-input in read_char (). This is a
> generic solution, but it makes read_char () return different
> character depending on the buffer-file-coding-system of the
> current buffer, which may or may not cause anther problem.
>
> My proposal is to translate a character by
> translate-table-for-input in isearch-process-search-char.
> This is a limitted solution only for the current problem.
And, RMS wrote:
> Suppose we use the latter solution. We probably would want to use it
> in other places as well, but which ones? Can you suggest a rule for
> programmers to decide whether to translate the result from read-char
> thru translate-table-for-input, and when not to?
> Could you look thru the calls to read-char in Emacs, and see which
> ones clearly should do this translation, which ones clearly should
> not, and which ones would work right either with or without the
> translation?
As I didn't have a time for such a heavy study, I didn't
respond anything, and the discussion has been inconclusive.
At least, the rule is to trasnalte the result from read-char
if it is compared with the characters in the current buffer.
And, Luc correctly pointed out:
> There is something that has not been pointed out in the summary Handa
> gave, but which I believe may be relevant. If I understood correctly,
> the problem in question will automatically completely disappear with
> Unicode and hence with Emacs 23. (Unless I misunderstood.)
I still don't have a time for the above study, but the
problem should be fixed somehow. So, unless someone else
can take over this matter, I propose again to install this
change.
Index: isearch.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/isearch.el,v
retrieving revision 1.277
diff -c -r1.277 isearch.el
*** isearch.el 30 Nov 2005 22:53:00 -0000 1.277
--- isearch.el 8 Dec 2005 02:21:52 -0000
***************
*** 1809,1814 ****
--- 1809,1816 ----
((eq char ?|) (isearch-fallback t nil t)))
;; Append the char to the search string, update the message and re-search.
+ (if (char-table-p translation-table-for-input)
+ (setq char (or (aref translation-table-for-input char) char)))
(isearch-process-search-string
(char-to-string char)
(if (>= char ?\200)
---
Kenichi Handa
handa@m17n.org
next reply other threads:[~2005-12-08 2:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-08 2:25 Kenichi Handa [this message]
2005-12-08 16:39 ` AGAIN: Can't isearch 'ö' Stefan Monnier
2005-12-09 1:42 ` Richard M. Stallman
2005-12-08 19:29 ` Richard M. Stallman
2005-12-08 22:18 ` Stefan Monnier
2005-12-09 1:12 ` Kenichi Handa
2005-12-09 15:04 ` Richard M. Stallman
2005-12-10 1:15 ` Kenichi Handa
2005-12-11 0:59 ` Juri Linkov
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=E1EkBTG-0004m2-00@etlken \
--to=handa@m17n.org \
--cc=romain@orebokech.com \
/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.