Commit 1d1deffe authored by David Byers's avatar David Byers
Browse files

Fix bug 675 and 630.

Fixed bug where prefix arg to kom-change-language didn't do the right thing
parent 3b12c247
......@@ -100,11 +100,11 @@
eftersom de bara sträcker sig till slutet av texten och inte till
fönstrets kant. Detta går tyvärr inte att undvika.
** Standardinstallationen av XEmacs i åtminstone Debian/Gnu Linux
innehåller en fil som heter macedit.el. Denna fil bör tas bort
eftersom den kan orsaka problem för ett flertal Emacs-paket.
Elispklienten detekterar dock om den finns och undviker i så fall
att ladda den.
** Vissa installationer av framförallt XEmacs innehåller en fil som
heter macedit.el (eller macedit.elc) som innehåller en felaktig
definition av en funktion som elispklienten använder. Problemen som
uppstår gör det omöjligt att kompilera och ladda elispklienten. Se
README för mer fullständig information om macedit.el.
** Förr hette många hookvariabler (oriktigt) "lyskom-..." i stället
för "kom-...". De gamla namnen är tänkta att fungera i 0.47, men
......@@ -210,6 +210,9 @@
sätt som i LysKOM-bufferten. TAB och M-TAB kan användas för att
flytta markören mellan intressanta områden i bufferten.
*** Shift TAB gör samma sak som M-TAB (men fungerar inte om man kör i
en tty).
*** Klienten kan visa och skapa fler sorters tilläggsinformation än
förr. Klienten hanterar tilläggsinformation som är satt på
servern.
......
2002-07-30 David Byers <david.byers@swipnet.se>
Fix bug 675:
* startup.el (lyskom-setup-ssh-relay): Set LC_ALL before starting
ssh (and restore it afterwards).
Fix bug 620:
* english-strings.el, swedish-strings.el: Added bindings for
lyskom-help to lyskom-svwho-prefix, lyskom-en-who-prefix and
lyskom-en-previous-prefix.
* commands2.el (kom-change-language): With prefix arg, set both
local and global language attributes (like the NEWS file says we
do).
2002-07-30 Per Cederqvist <ceder@ceder.dyndns.org>
cadr, caar and cdar are not portable to all Emacsen.
* vars.el.in (lyskom-button-actions): Don't use cadr.
* utilities.el (lyskom-read-text-no-prefix-arg): Don't use caar or
cdar.
......
......@@ -2041,8 +2041,10 @@ global effect, including changes to key binding."
nil
'lyskom-language-history)))
(when (lyskom-string-assoc language table)
(lyskom-set-language (cdr (lyskom-string-assoc language table))
(if global 'global 'local))
(lyskom-set-language (cdr (lyskom-string-assoc language table)) 'local)
(when global
(lyskom-set-language (cdr (lyskom-string-assoc language table)) 'global))
(lyskom-format-insert
'language-set-to
(lyskom-language-name (cdr (lyskom-string-assoc language table)))))))
......
......@@ -67,15 +67,28 @@
* You should NOT HAVE macedit.el
Make sure you do not have a file called macedit.el early in your
load path. This file redefines a function that the client relies
heavily on. The redefinition is buggy. The client will attempt
to detect this situation and fix it by loading edmacro. If you
have macedit but not edmacro, you will experience problems. You
can recognize this situation if your Emacs says something like
this: "Key sequence < m o u s e - 2 > uses invalid prefix
Make sure you do not have a file called macedit.el (or
macedit.elc or macedit.el.gz) early in your load path. This file
redefines a function that the client relies heavily on and the
redefinition is obsolete (and has been for several years). The
client will attempt to detect this situation and fix it by
loading a library called edmacro. If you have macedit but not
edmacro, you will experience problems. If you have both, there
may be situations in which you will experience problems. You'll
have to try and see.
You can recognize this situation if your Emacs says something
like this: "Key sequence < m o u s e - 2 > uses invalid prefix
characters" when you load or compile the elisp client.
If you encounter problems with macedit, remove it (macedit.el,
macedit.elc and macedit.el.gz) and any references to macedit
(you will have to search all Emacs-related files). This may
cause some minor problems with the calc package, but those
problems are not as serious as the havoc macedit can wreck on
other Emacs packages. It seems that most of calc works fine
without macedit.
* custom (mainly affects users of Gnu Emacs 19.34)
You need to have a recent version of the custom package
......
......@@ -1739,9 +1739,8 @@ Ignoring the following variables in your settings:
%#1s
These variables are not registered as LysKOM variables and cannot be
read from the server. If the variables corresponds to settings that
have been removed, you can fix the problem by giving the command
\"Save options\".\n\n")
read from the server. You can remove the variables from the server by
giving the command \"Save options\".\n\n")
(unknown-aux-item . "Oknd tillggsinformation")
......@@ -2256,6 +2255,8 @@ Using the default face in place of these faces.
(define-key lyskom-en-mode-map (kbd "n ?") 'lyskom-help)
(define-key lyskom-en-mode-map (kbd "l ?") 'lyskom-help)
(define-key lyskom-en-mode-map (kbd "s ?") 'lyskom-help)
(define-key lyskom-en-mode-map (kbd "b ?") 'lyskom-help)
(define-key lyskom-en-mode-map (kbd "w ?") 'lyskom-help)
(define-key lyskom-en-mode-map (kbd "o") 'kom-set-unread)
......
......@@ -388,13 +388,18 @@ clients of the event. See lyskom-mode for details on lyskom."
kom-ssh-relay-host))
(goto-char (point-max))
(insert "\n--- new connection ---\n")
(setq proc (start-process
procname
bufname
"ssh" "-n" "-x"
"-L" (format "%d:%s:%d" relay-port server port)
kom-ssh-relay-host
"sh -c \"while :; do echo ok; sleep 600; done\""))
(let ((old-lc-all (getenv "LC_ALL")))
(unwind-protect
(progn
(setenv "LC_ALL" "C")
(setq proc (start-process
procname
bufname
"ssh" "-n" "-x"
"-L" (format "%d:%s:%d" relay-port server port)
kom-ssh-relay-host
"sh -c \"while :; do echo ok; sleep 600; done\"")))
(setenv "LC_ALL" old-lc-all)))
(process-kill-without-query proc))
(while (progn
(goto-char (point-max))
......
......@@ -1751,10 +1751,9 @@ Ignorerar f
%#1s
Variablerna r inte registrerade LysKOM-variabeler och kan drfr
inte lsas frn servern. Om ngon av variablerna motsvarar en
instllning som har tagits bort s kan du tgrda genom att ge
kommandot \"Spara variabler\".\n\n")
Variablerna r inte registrerade LysKOM-variabeler och kan drfr inte
lsas frn servern. Du kan ta bort variablerna frn servern genom att
ge kommandot \"Spara variabler\".\n\n")
(unknown-aux-item . "Oknd tillggsinformation")
(text-header-aux-item . "%#1s: <%#2d> \"%#3s\" %#4s")
......@@ -2292,6 +2291,7 @@ Anv
(define-key lyskom-sv-mode-map (kbd "n ?") 'lyskom-help)
(define-key lyskom-sv-mode-map (kbd "l ?") 'lyskom-help)
(define-key lyskom-sv-mode-map (kbd "s ?") 'lyskom-help)
(define-key lyskom-sv-mode-map (kbd "v ?") 'lyskom-help)
(define-key lyskom-sv-mode-map (kbd "e") 'kom-set-unread)
......
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