Commit ce5ed616 authored by Ulrik Haugen's avatar Ulrik Haugen
Browse files

My previous attempt to fix bug 1022 was incomplete, trying to repair it I

realised how it should be done.

	* lyskom-rest.el (lyskom-modify-prompt): Don't "use current-time
	instead of lyskom-current-client-time".

	* lyskom-buttons.el (lyskom-default-button): Use
	lyskom-current-client-time instead of current-time.
	(lyskom-button-copy-timestamp): Use lyskom-format-time instead of
	format-time-string.
parent 244c569f
2003-04-26 Ulrik Haugen <qha@lysator.liu.se>
My previous attempt to fix bug 1022 was incomplete, trying to repair it I
realised how it should be done.
* lyskom-rest.el (lyskom-modify-prompt): Don't "use current-time
instead of lyskom-current-client-time".
* lyskom-buttons.el (lyskom-default-button): Use
lyskom-current-client-time instead of current-time.
(lyskom-button-copy-timestamp): Use lyskom-format-time instead of
format-time-string.
2003-04-26 Ulrik Haugen <qha@lysator.liu.se>
* swedish-strings.el (lyskom-sv-edit-mode-map) english-strings.el
......
......@@ -650,7 +650,7 @@ up."
((eq type 'timestamp)
(setq face 'default
subtle t)
(cond ((null arg) (setq xarg (current-time)
(cond ((null arg) (setq xarg (lyskom-current-client-time)
;text (format-time-string "%Y-%m-%d %H:%M")
))
(t (setq xarg arg
......@@ -936,7 +936,8 @@ This is a LysKOM button action."
(defun lyskom-button-copy-timestamp (buf arg text)
"In the LysKOM buffer BUF, ignore TEXT and copy ARG to the kill ring
after formating it as time. This is a LysKOM button action."
(kill-new (format-time-string "%Y-%m-%d %H:%M" arg)))
(let ((kom-print-relative-dates nil))
(kill-new (lyskom-format-time 'date-and-time arg))))
;;;
......
......@@ -2959,7 +2959,7 @@ Set lyskom-current-prompt accordingly. Tell server what I am doing."
lyskom-current-prompt-timestamp))))
'(lyskom-prompt t))
text)
(when executing (setq lyskom-current-prompt-timestamp (current-time)))
(when executing (setq lyskom-current-prompt-timestamp (lyskom-current-client-time)))
text))
......
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