Commit f2d032b1 authored by Johan Sundström's avatar Johan Sundström
Browse files

kom-change-language now changes keybindings by default.

parent bbebae45
2003-08-30 Johan Sundström <jhs@lysator.liu.se>
* commands2.el (kom-change-language): Now always changes bindings,
unless explicitly overridden with an integer argument (for some
form of backwards compatibility for users who already have burnt
in "C-u x change language" into their spines by now). I have never
wanted to change languages without changing key bindings as well,
but considering it was implemented like this, someone might still
want to do that (hence this slight prefix awkwardness).
2003-08-30 David Byers <byers@lysator.liu.se>
Fix bug 1101:
......
......@@ -2168,8 +2168,8 @@ the exception of the letterbox flag (which cannot be modified)."
(def-kom-command kom-change-language (&optional global)
"Change the current language in the current LysKOM session.
With a prefix argument, also make changes that would affect all
sessions, such as key bindings.
Also changes key bindings in all sessions, unless given an
integer prefix argument.
The selected language is not saved between sessions. To permanently
set and save language settings. use `kom-customize' instead.
......@@ -2177,7 +2177,7 @@ set and save language settings. use `kom-customize' instead.
See `kom-default-language'.
Lisp documentation:
The optional argument GLOBAL indicates that the change should have a
If the optional argument GLOBAL is 0, the change will have a
global effect, including changes to key binding."
(interactive "P")
(let* ((completion-ignore-case t)
......@@ -2191,7 +2191,7 @@ global effect, including changes to key binding."
'lyskom-language-history)))
(when (lyskom-string-assoc language table)
(lyskom-set-language (cdr (lyskom-string-assoc language table)) 'local)
(when global
(when (listp global)
(lyskom-set-language (cdr (lyskom-string-assoc language table)) 'global))
(lyskom-format-insert
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment