1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 04:30:55 -08:00
Commit graph

102 commits

Author SHA1 Message Date
Kenichi Handa
83600a298b (quail-setup-completion-buf): Make the
multibyteness of current buffer inherited to Quail completion
buffer.
(quail-show-guidance-buf): Make the multibyteness of current
buffer inherited to Quail guidance buffer.
(quail-help): Make the multibyteness of current buffer inherited
to Quail help buffer.
2001-01-27 01:51:04 +00:00
Kenichi Handa
c5f3770d99 (quail-input-string-to-events): New function.
(quail-input-method): Convert input string to events here.
(quail-start-translation): Return input string, not event list.
(quail-start-conversion): Likewise.
2001-01-05 05:30:53 +00:00
Miles Bader
09877d5d2f (quail-input-method): Resize the help window again after it has all its
contents.  Remove unneeded progn.
2000-12-20 06:06:28 +00:00
Kenichi Handa
e2c3fbf3b8 (quail-input-method): Always hide the guidance buffer on exiting. 2000-12-19 00:58:00 +00:00
Kenichi Handa
58d2b9863b (quail-insert-decode-map): Check the
frame width of a window displaying the current buffer, not that of
the selected frame.
(quail-help): Make sure that the help buffer has window before
inserting text in it.
2000-12-08 00:06:01 +00:00
Kenichi Handa
e70b433030 (quail-start-translation): Don't call `message' before reading key
sequence.
2000-11-16 12:43:05 +00:00
Kenichi Handa
f0c968ff81 (quail-show-guidance-buf): Call fit-window-to-buffer to assure the
enough height of the guidance buffer.
(quail-update-guidance): Avoid making the guidance buffer shorter.
2000-11-14 11:46:44 +00:00
Stefan Monnier
b6ce6e3f79 (quail-activate): Don't make-local-hook. 2000-10-27 14:58:46 +00:00
Miles Bader
8c5d801f45 (quail-update-guidance): Balance parens. 2000-10-21 08:07:01 +00:00
Miles Bader
feb5013d7c (quail-update-guidance):
Use `fit-window-to-buffer' instead of `set-window-text-height'.
2000-10-21 05:50:56 +00:00
Miles Bader
2253894d74 (quail-update-guidance): Force a redisplay before setting the guidance
window size, to ensure we see any minibuffer expansion it causes.
2000-10-20 22:56:41 +00:00
Miles Bader
617fee5a34 (quail-show-guidance-buf): Make sure guidance window really has enough room.
(quail-update-guidance): If quail-guidance-win is already shown, make
  sure its height is OK.
2000-10-20 16:38:06 +00:00
Kenichi Handa
6a70ef0d81 (quail-help): The output message is improved. 2000-09-27 00:03:12 +00:00
Kenichi Handa
8179cccd88 (quail-help): The output message is improved. 2000-09-21 20:15:55 +00:00
Kenichi Handa
195e67401d (quail-start-translation): Translate KEY if necessary even if it
doesn't have any mapping in the current input method.
(quail-start-conversion): Likewise.
(quail-help): The output message is improved.
2000-09-13 12:10:29 +00:00
Kenichi Handa
cd70a6ef71 (quail-define-package): Docstring modified. 2000-09-12 02:04:17 +00:00
Kenichi Handa
362a806570 (quail-translation-docstring): New variable.
(quail-show-keyboard-layout): Docstring modified.
(quail-select-current): Likewise.
(quail-build-decode-map): Change arg MAP to MAP-LIST to avoid
infinite recursive call.
(quail-help): Check quail-translation-docstring.  Format of the
output changed.
(quail-help-insert-keymap-description): Adjusted for the above
change.
2000-09-11 23:42:27 +00:00
Kenichi Handa
f98b84ed59 (quail-help): Fix previous change. 2000-09-07 11:45:44 +00:00
Kenichi Handa
95109387d7 Don't require face.
(quail): New group.
(quail-other-command): Dummy command to make quail-help works
better.
(quail-keyboard-layout-alist): Add Keyboard type "jp106".
(quail-keyboard-layout-substitution): New variable.
(quail-update-keyboard-layout): New function.
(quail-keyboard-layout-type): New customizable variable.
(quail-set-keyboard-layout): Call quail-update-keyboard-layout.
(quail-keyboard-translate): Pay attention to
quail-keyboard-layout-substitution.
(quail-insert-kbd-layout): New function.
(quail-show-keyboard-layout): New function.
(quail-get-translation): If the definition is a vector of length
1, and the element is a string of lenght 1, return the character
in that string.
(quail-update-current-translations): Fix the case of
relative-index out of range.
(quail-build-decode-map, quail-insert-decode-map): New Functions.
(quail-help): Show keyboard layout by quail-insert-kbd-layout.
Show key sequences for all avairable characters.
(quail-help-insert-keymap-description): Don't show such verbose
key bindings as quail-self-insert-command.
2000-09-07 02:38:46 +00:00
Kenichi Handa
f3abc4118e (quail-self-insert-command): Fix docstring. 2000-08-30 07:56:36 +00:00
Kenichi Handa
185479c6a5 (quail-start-translation): Bind locally
last-command-event, last-command, and this-command.
(quail-start-conversion): Likewise.
2000-08-30 00:44:29 +00:00
Kenichi Handa
6c7b13cf7e (quail-help): New arg PACKAGE. Hyperlinks to mule related items.
(quail-help-insert-keymap-description): Use
substitute-command-keys instead of describe-bindings.
(quail-translation-help): Hyperlinks to mule related items.
2000-08-29 05:38:34 +00:00
Kenichi Handa
bcbeff8570 (quail-use-package): Hide "... loaded" message.
(quail-start-translation, quail-start-conversion): Likewise.
2000-08-28 01:54:18 +00:00
Kenichi Handa
bb63aae591 (quail-define-rules): Handle Quail decode
map correctly.  Add code for supporting annotations.
(quail-install-decode-map): New function.
(quail-defrule-internal): New optional arguments decode-map and
props.
(quail-advice): New function.
2000-08-08 01:39:26 +00:00
Kenichi Handa
26e6bfef35 (quail-show-guidance-buf): To find the bottom window (but minibuffer),
pay attention to the height of minibuffer.
2000-06-16 12:11:14 +00:00
Kenichi Handa
f9f1ed46bf (quail-start-conversion): Don't include
unhandled events in the returned events, but set them in
unread-command-events.  Exit if all inputs are deleted.
2000-05-31 03:49:49 +00:00
Kenichi Handa
b0fdefb47b (quail-start-translation): Don't change
modified-p of the current buffer.
(quail-start-conversion): Likewise.
2000-05-24 06:41:32 +00:00
Kenichi Handa
0327da63bc (quail-show-guidance-buf): Set
current-input-method of the guidance buffer to the name of the
curren input method.
2000-05-23 23:42:38 +00:00
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