Skip to content

Commit aea7ff5

Browse files
author
Denis Zheleztsov
committed
Fix some errors
1 parent 2f63b93 commit aea7ff5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

idec-mode.el

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ optionaly return cursor to CHECKPOINT."
240240
;; ii.test.14 (5)*
241241
(insert-button echo
242242
'action (lambda (x) (idec-browse-local-echo (button-get x 'echo)))
243-
'echo echo
244-
'(face nil))
243+
'echo echo)
245244

246245
(beginning-of-line)
247246
(setq start (point))
@@ -255,12 +254,12 @@ optionaly return cursor to CHECKPOINT."
255254
")"))
256255

257256
(setq unread (get-echo-unread-messages echo))
258-
(when (> unread 0)
259-
(princ "*"))
257+
;; (when (> unread 0)
258+
;; (princ "*"))
260259
(princ " ")
261260

262261
;; [New message] button
263-
(princ "\t[")
262+
(princ " [")
264263
(insert-button "New message"
265264
'action (lambda (x) (idec-new-message (button-get x 'echo)))
266265
'echo echo)
@@ -271,14 +270,15 @@ optionaly return cursor to CHECKPOINT."
271270
'echo echo
272271
'point (point))
273272
(princ "]")
273+
274+
;; Unread messages count
274275
(when (> unread 0)
275276
(princ (concat " unread (" (number-to-string unread) ")")))
276277
(princ "\n"))
277278
(message (concat "IDEC: FUUUUUU <" echo ">")))))
278279
(when checkpoint
279280
(goto-char checkpoint)))
280-
(idec-mode)
281-
(add-text-properties (beginning-of-buffer) (end-of-buffer) 'read-only))
281+
(idec-mode))
282282

283283
(defun idec-browse-local-echo (&optional echo)
284284
"Get messages from local ECHO."
@@ -306,8 +306,7 @@ optionaly return cursor to CHECKPOINT."
306306

307307
(princ (make-string (- longest subj-length) ? ))
308308
(princ (concat " " (gethash "time" msg)))
309-
(princ (concat "\t" (gethash "author" msg) "\n")))
310-
(add-text-properties (beginning-of-buffer) (end-of-buffer) 'read-only)))
309+
(princ (concat "\t" (gethash "author" msg) "\n")))))
311310
(idec))
312311

313312

0 commit comments

Comments
 (0)