* riece.el (riece-dialogue-mode-map): Bind end-of-buffer to Home.
(riece-command-map): Bind riece-command-end-of-buffer to Home.
+2004-06-16 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-commands.el (riece-command-end-of-buffer): New command.
+ * riece.el (riece-dialogue-mode-map): Bind end-of-buffer to Home.
+ (riece-command-map): Bind riece-command-end-of-buffer to Home.
+
2004-06-15 Daiki Ueno <ueno@unixuser.org>
* riece.el (riece-dialogue-mode-map): Bind end-of-buffer to End.
(interactive "sIRC command: ")
(riece-send-string (concat command "\r\n")))
+(defun riece-command-beginning-of-buffer ()
+ "Scroll channel buffer to the beginning."
+ (interactive)
+ (let (buffer window)
+ (setq buffer (if riece-channel-buffer-mode
+ riece-channel-buffer
+ riece-dialogue-buffer))
+ (or (setq window (get-buffer-window buffer))
+ (setq window (get-buffer-window riece-dialogue-buffer)
+ buffer riece-dialogue-buffer))
+ (when window
+ (save-selected-window
+ (select-window window)
+ (goto-char (point-min))))))
+
(defun riece-command-end-of-buffer ()
- "Get end of the dialogue buffer."
+ "Scroll channel buffer to the end."
(interactive)
(let (buffer window)
(setq buffer (if riece-channel-buffer-mode
[backspace] scroll-down
[return] scroll-up
" " scroll-up
+ [home] beginning-of-buffer
"$" end-of-buffer
[end] end-of-buffer
"/" riece-command-raw
[delete] riece-command-scroll-down
[backspace] riece-command-scroll-down
" " riece-command-scroll-up
+ [home] riece-command-beginning-of-buffer
"$" riece-command-end-of-buffer
[end] riece-command-end-of-buffer
">" riece-command-next-channel