1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

74 Commits

Author SHA1 Message Date
Kenichi Handa
99da6af390 (quail-simple-translation-keymap): Map
128..255 to quail-self-insert-command.
(quail-keyboard-layout-alist): Add definition for "pc102-de".
2000-05-22 04:40:49 +00:00
Kenichi Handa
91e947ce52 (quail-set-keyboard-layout): Typo fixed. 2000-03-20 23:44:27 +00:00
Kenichi Handa
817e162fea (quail-install-map): New optional arg
NAME.
(quail-get-translation): If DEF is a symbol but not a function,
ignore it.
(quail-start-translation): Put a key sequence undefined in the
translation keymap in unread-command-events, not generated-events.
Return parameterized event (compose-last-chars N) if the input
characters should be composed.
(quail-map-definition): If DEF is t, treat it as nil.
(quail-delete-last-char): Delete the quail region.
(quail-show-translations): Don't show list of translations if the
quail package is deterministic.
(quail-completion-max-depth): New variable.
(quail-completion-1): Pay attention to the above variable.  Fix
for the case that a translation is a function.
(quail-map-from-table, quail-map-from-table-1,
quail-map-from-table-2): New functions.
(quail-lookup-map-and-concat): New function
1999-12-15 00:42:43 +00:00
Kenichi Handa
9429dee6ef (quail-define-rules): Fix typo in docstring. 1999-06-07 11:02:33 +00:00
Kenichi Handa
86c06e88d4 (quail-show-kbd-layout): Bind blink-matching-paren to nil. 1999-02-12 12:40:54 +00:00
Kenichi Handa
8024de4585 (quail-lookup-key): If cdr of MAP is a
function, replace cdr of MAP by the return value of the function
unconditionally.
1999-02-01 02:52:34 +00:00
Kenichi Handa
407c6b9441 (quail-point-in-conversion-region): New
function.
(quail-conversion-backward-delete-char): When a key sequence is
being translated, call quail-delete-last-char.
1998-12-15 04:35:38 +00:00
Kenichi Handa
02fd40be1d (quail-show-guidance-buf): Call
set-minibuffer-window to set minibuffer window of the current
frame correctly.
1998-11-04 10:48:53 +00:00
Kenichi Handa
61520ce75b (quail-start-translation): Handle
switching of the frame in read-key-sequence.
(quail-start-conversion): Likewise.
(quail-show-guidance-buf): Detach quail-guidance-buf from any
windows before setting an appropriate window for it.
(quail-hide-guidance-buf): Use window-minibuffer-p.  Set
quail-guidance-win to nil.
(quail-update-guidance): If quail-guidance-buf is not in the
selected frame, call quail-show-guidance-buf again.
1998-10-31 05:12:07 +00:00
Kenichi Handa
7b5ebb0049 (quail-defrule): New optional arg APPEND.
(quail-defrule-internal): Fix bug of handling the argument APPEND.
1998-10-08 06:45:36 +00:00
Kenichi Handa
bd21f930c9 (quail-update-guidance): Check for the
return value of (quail-guidance) fixed.
(quail-update-translation): Bind quail-current-str locally when it
calls quail-update-guidance.
(quail-update-translation): If input-method-exit-on-first-char is
non-nil, terminate translation only when the current input method
is simple.
1998-09-22 10:33:09 +00:00
Karl Heuer
cd30a521aa Doc fixes. 1998-09-04 19:53:41 +00:00
Kenichi Handa
2d4e1e6e5a (quail-choose-completion-string): Store
completion `choice' in `quail-current-str'; don't insert it.
1998-09-03 11:10:40 +00:00
Richard M. Stallman
4be9beaf4e (quail-update-leim-list-file): Fix message syntax. 1998-08-13 23:02:48 +00:00
Kenichi Handa
f6a0db107a (quail-start-translation): If
enable-multibyte-characters is nil, convert multibyte character to
unibyte.
(quail-start-conversion): Likewise.
1998-08-10 06:29:02 +00:00
Kenichi Handa
df765be4fe (quail-update-translation): Delete the
code for handling the case that enable-multibyte-characters is
nil.
1998-08-07 05:04:36 +00:00
Kenichi Handa
d91eafdf6b (quail-translation-keymap): Declare it as
variable instead of constant.  Bind all keys less than 32 to
quail-other-command.  Don't bind the key meta-prefix-char and
escape.
(quail-simple-translation-keymap): Likewise.
(quail-conversion-keymap): Bind the key C-h to
quail-translation-keymap.
(quail-define-package): Fix typo in doc-string.
(quail-conversion-str): New variable.
(quail-input-method): Bind buffer-undo-list to t.  Show Quail
guidance buffer if necessary.
(quail-delete-region): Move the definintion before the first
calling place.
(quail-start-translation): Handle the case the arg KEY is nil.
Bind echo-keystrokes and help-char.  Initialize quail-current-str
to "".  If input-method-use-echo-area is non-nil, call
read-key-sequence with appropriate PROMPT arg.  Setup
last-command-event by local variable `keyseq'.  Generate an event
list form quail-current-str.  If input-methodd-exit-on-first-char
is non-nil, return only the first event.
(quail-start-conversion): Likewise.  Initialize
quail-conversion-str to "".  Generate an event list form
quail-conversion-str.
(quail-update-translation): Expect that the function given by
(quail-update-translation-function) returns a new control-flag.
Handle the case the length of quail-current-key is 1.  Use
string-as-unibyte if enable-multibyte-characters is nil.  Always
assures that quail-current-str is Lisp string.
(quail-self-insert-command): Use `or' instead of `unless'.
(quail-update-current-translations): Always assures that
quail-current-str is Lisp string.
(quail-next-translation-block): Update unread-command-events
correctly.
(quail-abort-translation): Set quail-current-str to nil.
(quail-conversion-delete-char): Update quail-conversion-str.
(quail-conversion-delete-tail): Likewise.
(quail-conversion-backward-delete-char): Likewise.
(quail-show-guidance-buf): Show Quail guidance buffer not in echo
area if input-method-use-echo-area is non-nil.
(quail-show-translations): Bind current-translations locally to
quail-current-translations to get this value across different
buffers.  Handle the case that the length quail-current-key is 0.
(quail-translation-help): If this command is invoked repeatedly,
scroll the already shown help window.  Handle the case that this
command is called while converting (not translating).
(quail-conversion-help):  This function deleted and the
functionality is merged to quail-translation-help.
1998-08-06 05:38:11 +00:00
Kenichi Handa
0b76616bdb (quail-start-translation): Bind help-char
to nil locally.
1998-08-02 01:06:57 +00:00
Kenichi Handa
ab6ecce200 (quail-start-translation): Call
this-single-command-raw-keys instead of this-single-command-keys.
(quail-start-conversion): Likewise.
1998-07-23 05:48:49 +00:00
Kenichi Handa
da55ad08c2 (quail-start-translation): Use
this-single-command-keys to get raw events instead of
listify-key-sequence
(quail-start-conversion): Likewise.
1998-07-23 05:42:28 +00:00
Kenichi Handa
348d1438c7 (quail-simple-translation-keymap): Typo
in doc-string fixed.
(quail-start-translation): Check start position of quail-overlay
before calling quail-overlay-region-events.
(quail-start-conversion): Likewise.
1998-07-21 01:42:40 +00:00
Kenichi Handa
b45d8d64b6 (quail-conversion-keymap): New binding
for quail-conversion-delete-tail.
(quail-input-method): Suppress input method if
overriding-terminal-local-map or overriding-local-map is non-nil.
Erase contents of quail-guidance-buf.  Run the hook
input-method-after-insert-chunk-hook.
(quail-start-translation): Get the original event list by
listify-key-sequence.  Setup last-command and this-command
(quail-start-conversion): Likewise.
(quail-conversion-beginning-of-region): Set quail-translating to
nil.
(quail-conversion-end-of-region, quail-conversion-delete-char):
Likewise.
(quail-conversion-delete-tail): New function.
(quail-no-conversion): Don' run the hook
input-method-after-insert-chunk-hook.
1998-07-19 05:17:35 +00:00
Kenichi Handa
b58fc490b4 (quail-mode): This variable deleted.
(quail-current-key): Make it buffer local.
(quail-current-str, quail-current-translations): Likewise.
(quail-reset-conversion-region): This variable deleted.
(quail-use-package): Call quail-activate at the tail.
(quail-translation-keymap, quail-simple-translation-keymap): Key
bindings for quail-execute-non-quail-command deleted.
(quail-conversion-keymap): Likewise.  Add key bindings for
quail-self-insert-command.
(quail-delete-overlays): Chekc overlay-start for overlays before
deleting them.
(quail-mode): This function deleted.
(quail-inactivate, quail-activate): New functions.
(quail-saved-current-map, quail-saved-current-buffer): These
variables deleted.
(quail-toggle-mode-temporarily, quail-execute-non-quail-command):
These functions deleted.
(quail-exit-conversion-mode, quail-prefix-arg): These variables
deleted.
(quail-error): New error condition.
(quail-error): New function.
(quail-translating, quail-converting): New variables.
(quail-input-method, quail-overlay-region-events): New function.
(quail-start-translation): Completely re-written.
(quail-start-translation-in-conversion-mode): This function
deleted.
(quail-start-conversion): New function.
(quail-terminate-translation): Just set quail-translating to nil.
(quail-update-translation): Put some events back to
unread-input-method-events instead of unread-command-events.  Call
quail-error instead of error.
(quail-self-insert-command): Adjusted for the change of
quail-start-translation.
(quail-next-translation): Don't call
quail-execute-non-quail-command, instead, put an event back of
unread-command-events.
(quail-prev-translation, quail-next-translation-block,
quail-prev-translation-block): Likewize.
(quail-conversion-backward-char): Call quail-error instead of
error.  Set quail-translating to nil.
(quail-conversion-forward-char): Likewize.
(quail-conversion-delete-char): Call quail-error instead of error.
If conversion region gets vacant, set quail-converting to nil.
(quail-conversion-backward-delete-char): Likewize.
(quail-no-conversion): Just set quail-converting to nil.
(quail-mouse-choose-completion): Call quai-error instead of error.
(quail-choose-completion-string): Likewize.
(quail-help): Don't handle quail-mode-map.
1998-07-16 00:14:44 +00:00
Kenichi Handa
0548a7fdc2 (quail-completion): Consecutive call of
this command scrolls the Quail completion buffer.
1998-05-18 01:01:00 +00:00
Kenichi Handa
e953b36874 (quail-show-translations): Show
followable keys in alphabetic order.
1998-05-01 04:16:29 +00:00
Kenichi Handa
349325d45f (quail-start-translation): Bind
prefix-arg to current-prefix-arg.
(quail-mode): Doc-string modified.
1998-04-20 02:11:52 +00:00
Richard M. Stallman
171666af2d (quail-defrule-internal): New arg REPLACE.
(quail-defrule): Call quail-defrule-internal with REPLACE t.
1998-03-06 21:33:37 +00:00
Kenichi Handa
f9222bef23 (quail-show-kbd-layout): Bug fix for the
case that TRANSLATION is a cons.
1998-01-22 01:42:20 +00:00
Kenichi Handa
e68e61b5e0 Change "?\C-\ " to "?\C- " because "\ " is changed
to standing for nothing in lread.c (read_escape).
1998-01-12 05:48:48 +00:00
Karl Heuer
68554dbb68 Comment fix. 1997-11-20 22:12:59 +00:00
Kenichi Handa
5611ce7c86 (quail-translation-keymap): KP_Enter key
emulates `C-SPC'.  `mouse-2' bound to
`quail-mouse-choose-completion'.
(quail-completion-list-translations): Set text property
`mouse-face' of character `translations' to `highlight'.  Changed
`newline' to `insert "\n"' to prevent text property inheritance.
(quail-mouse-choose-completion): New function bound to `mouse-2'
selects highlighted characters from *Quail Completions* buffer.
(quail-choose-completion-string): New function called by
`quail-mouse-choose-completion'.
1997-10-24 01:14:24 +00:00
Kenichi Handa
9a0eac6e7a (quail-require-guidance-buf): Adjusted
for the change of input-method-verbose-flag.
1997-10-23 12:05:45 +00:00
Kenichi Handa
4afb4ca5d5 (quail-translation-keymap): Bind right, left, down, and up keys. 1997-09-25 12:40:02 +00:00
Richard M. Stallman
959096f8ec (quail-simple-translation-keymap):
Bind delete and backspace explicitly, like DEL.
1997-09-19 04:24:02 +00:00
Richard M. Stallman
44baad622a (quail-set-keyboard-layout): Add autoload cookie. 1997-09-19 02:27:31 +00:00
Richard M. Stallman
8c14aa224c (quail-completion-list-translations): Fix
and simplify generation of translation list.
1997-09-16 07:04:03 +00:00
Richard M. Stallman
d75fe17ace (quail-simple-translation-keymap): Set the default (t) binding properly. 1997-09-15 08:12:51 +00:00
Richard M. Stallman
7543131adb (quail-terminate-translation):
If quail-overlay is not an overlay, don't mess with it.
1997-09-15 06:32:36 +00:00
Kenichi Handa
3ef477b92d (quail-translation-keymap): Fix previous
change.
1997-09-12 02:14:46 +00:00
Richard M. Stallman
e3799a7253 (quail-update-translation): Fix previous change.
(quail-simple-translation-keymap, quail-conversion-keymap):
Make the default binding with define-key.
Handle meta-prefix-char the way isearch does.
(quail-translation-keymap): Likewise.
(quail-execute-non-quail-command): Handle the key sequence as the
same way as universal-argument-other-key.

(quail-make-guidance-frame): Don't dedicate the guidance buffer window.
(quail-show-guidance-buf): Likewise.
(quail-hide-guidance-buf): Delete code to turn off window dedication.
1997-09-11 23:15:08 +00:00
Kenichi Handa
b55ba0277e (quail-simple): New function.
(quail-require-guidance-buf): New function.
(quail-show-guidance-buf): Do not show guidance buffer if simple
input method is used in the minibuffer.
(quail-update-guidance): Likewise.
1997-09-09 14:57:01 +00:00
Richard M. Stallman
20848896e4 (quail-translation-keymap)
(quail-simple-translation-keymap, quail-conversion-keymap):
Don't define escape.
1997-09-09 09:02:25 +00:00
Kenichi Handa
6cade423e8 (quail-translation-keymap): Bind C-space
to quail-select-current.
1997-09-08 07:23:23 +00:00
Richard M. Stallman
09efee6cc7 (quail-execute-non-quail-command): Call quail-terminate-translation. 1997-09-07 04:31:35 +00:00
Richard M. Stallman
e41b451795 (quail-update-translation):
Do insert translated char when enable-multibyte-characters is nil.
1997-09-04 04:47:34 +00:00
Kenichi Handa
b8cd1360b1 (quail-update-guidance): If PROMPTKEY is
specified in the original CXTERM dictionary, show also candidates
in Quail guidance buffer.
(quail-show-translations): Likewise.
1997-09-03 05:46:54 +00:00
Kenichi Handa
50b190e470 (quail-keyboard-layout-alist): Add an
entry for "atari-german".
(quail-keyboard-translate): If CH is not in the keyboard location
covered by quail-keyboard-layout-standard, return CH.
(quail-show-kbd-layout): Show keyboard layout based on
quail-keyboard-layout-standard if the current input method
requires keyboard translation.
1997-09-02 10:49:43 +00:00
Kenichi Handa
094550e686 (quail-translation-keymap): Fix previous
change.
(quail-conversion-keymap): Likewise.
1997-09-01 12:36:34 +00:00
Kenichi Handa
f5c7c0ebaf (quail-translation-keymap): Do not bind
"\C-c" to quail-abort-translation.
(quail-mode-map): Bind key codes 128 through 256 to
quail-start-translation.
(quail-translation-keymap): Bind key codes 128 through 256 to
quail-self-insert-command.
(quail-conversion-keymap): Bind key codes 128 through 256 to
quail-start-translation-in-conversion-mode.
1997-09-01 07:19:38 +00:00
Richard M. Stallman
57a5447071 (quail-define-package): New arg SIMPLE.
(quail-simple-translation-keymap): New keymap.
1997-08-29 07:21:44 +00:00