Mercurial > emacs
annotate lisp/international/isearch-x.el @ 21372:fbb2f87ce945
Fix previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 05 Apr 1998 19:13:50 +0000 |
parents | 8020b553a1db |
children | 54069d469c31 |
rev | line source |
---|---|
17052 | 1 ;;; isearch-x.el --- extended isearch handling commands |
2 | |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
17071
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17052 | 5 |
6 ;; Keywords: multilingual, isearch | |
7 | |
8 ;; Author: Kenichi HANDA <handa@etl.go.jp> | |
9 ;; Maintainer: Kenichi HANDA <handa@etl.go.jp> | |
10 | |
11 ;; This file is part of GNU Emacs. | |
12 | |
13 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
14 ;; it under the terms of the GNU General Public License as published by | |
15 ;; the Free Software Foundation; either version 2, or (at your option) | |
16 ;; any later version. | |
17 | |
18 ;; GNU Emacs is distributed in the hope that it will be useful, | |
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 ;; GNU General Public License for more details. | |
22 | |
23 ;; You should have received a copy of the GNU General Public License | |
17071 | 24 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
25 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
26 ;; Boston, MA 02111-1307, USA. | |
17052 | 27 |
28 ;;; Code: | |
29 | |
30 ;;;###autoload | |
31 (defun isearch-toggle-specified-input-method () | |
18713
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
32 "Select an input method and turn it on in interactive search." |
17052 | 33 (interactive) |
19407
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
34 (let ((overriding-terminal-local-map nil)) |
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
35 (toggle-input-method t)) |
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
36 (isearch-update)) |
17052 | 37 |
38 ;;;###autoload | |
39 (defun isearch-toggle-input-method () | |
40 "Toggle input method in interactive search." | |
41 (interactive) | |
19407
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
42 (let ((overriding-terminal-local-map nil)) |
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
43 (toggle-input-method)) |
17052 | 44 (isearch-update)) |
45 | |
19407
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
46 ;;;###autoload |
17052 | 47 (defun isearch-process-search-multibyte-characters (last-char) |
18713
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
48 (let ((overriding-terminal-local-map nil) |
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
49 ;; Let input method exit when a chunk is inserted. |
19407
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
50 (input-method-after-insert-chunk-hook '(inactivate-input-method)) |
18713
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
51 (input-method-inactivate-hook '(exit-minibuffer)) |
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
52 ;; Let input method work rather tersely. |
19390
4d72985edb2d
(isearch-process-search-multibyte-characters):
Richard M. Stallman <rms@gnu.org>
parents:
18713
diff
changeset
|
53 (input-method-verbose-flag nil) |
19407
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
54 ;; A key not handled by the current input method should |
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
55 ;; terminate the input method. |
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
56 (input-method-exit-on-invalid-key t) |
18713
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
57 str) |
17052 | 58 (setq unread-command-events (cons last-char unread-command-events)) |
18713
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
59 (setq str (read-multilingual-string |
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
60 (concat (isearch-message-prefix) isearch-message) |
bca5a6b78f91
(isearch-input-method): New variable.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
61 nil |
19407
50444ccff3f2
(isearch-input-method): Deleted.
Kenichi Handa <handa@m17n.org>
parents:
19390
diff
changeset
|
62 current-input-method)) |
19433
8020b553a1db
(isearch-process-search-multibyte-characters): If
Kenichi Handa <handa@m17n.org>
parents:
19407
diff
changeset
|
63 (if (and str (> (length str) 0)) |
8020b553a1db
(isearch-process-search-multibyte-characters): If
Kenichi Handa <handa@m17n.org>
parents:
19407
diff
changeset
|
64 (isearch-process-search-string str str) |
8020b553a1db
(isearch-process-search-multibyte-characters): If
Kenichi Handa <handa@m17n.org>
parents:
19407
diff
changeset
|
65 (isearch-update)))) |
17052 | 66 |
67 ;;; isearch-x.el ends here |