diff options
| author | Miles Bader | 2006-03-13 10:10:09 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-03-13 10:10:09 +0000 |
| commit | e8f10ddbda866838f77444a2d79efbba6122c918 (patch) | |
| tree | 2ff29b0d3596b1121189043939db8d9ba779074d | |
| parent | 54aba1eec01354f04ed58eb66f35a55db72f572b (diff) | |
| download | emacs-e8f10ddbda866838f77444a2d79efbba6122c918.tar.gz emacs-e8f10ddbda866838f77444a2d79efbba6122c918.zip | |
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-156
rcirc.el update from Ryan Yeske
2006-03-13 Ryan Yeske <rcyeske@gmail.com>
* lisp/net/rcirc.el (rcirc) <defgroup>: Add link to manual.
(rcirc-print): Mark the start of text at the end of the prompt.
(rcirc-track-minor-mode): Add autoload cookie.
(rcirc-update-activity-string): Add space to front of mode-line
indicator.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 15 |
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 55a2b90e085..9d669b77e8e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2006-03-13 Ryan Yeske <rcyeske@gmail.com> | ||
| 2 | |||
| 3 | * net/rcirc.el (rcirc) <defgroup>: Add link to manual. | ||
| 4 | (rcirc-print): Mark the start of text at the end of the prompt. | ||
| 5 | (rcirc-track-minor-mode): Add autoload cookie. | ||
| 6 | (rcirc-update-activity-string): Add space to front of mode-line | ||
| 7 | indicator. | ||
| 8 | |||
| 1 | 2006-03-13 Miles Bader <miles@gnu.org> | 9 | 2006-03-13 Miles Bader <miles@gnu.org> |
| 2 | 10 | ||
| 3 | * net/rcirc.el (rcirc-nick-abbrevs): Variable removed. | 11 | * net/rcirc.el (rcirc-nick-abbrevs): Variable removed. |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 9d4f91fe17a..19fc89f4293 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -50,6 +50,7 @@ | |||
| 50 | "Simple IRC client." | 50 | "Simple IRC client." |
| 51 | :version "22.1" | 51 | :version "22.1" |
| 52 | :prefix "rcirc-" | 52 | :prefix "rcirc-" |
| 53 | :link '(custom-manual "(rcirc)") | ||
| 53 | :group 'applications) | 54 | :group 'applications) |
| 54 | 55 | ||
| 55 | (defcustom rcirc-server "irc.freenode.net" | 56 | (defcustom rcirc-server "irc.freenode.net" |
| @@ -872,7 +873,7 @@ Create the buffer if it doesn't exist." | |||
| 872 | (defun rcirc-multiline-edit-submit () | 873 | (defun rcirc-multiline-edit-submit () |
| 873 | "Send the text in buffer back to parent buffer." | 874 | "Send the text in buffer back to parent buffer." |
| 874 | (interactive) | 875 | (interactive) |
| 875 | (assert (and (eq major-mode 'rcirc-multiline-edit-mode))) | 876 | (assert (eq major-mode 'rcirc-multiline-edit-mode)) |
| 876 | (assert rcirc-parent-buffer) | 877 | (assert rcirc-parent-buffer) |
| 877 | (untabify (point-min) (point-max)) | 878 | (untabify (point-min) (point-max)) |
| 878 | (let ((text (buffer-substring (point-min) (point-max))) | 879 | (let ((text (buffer-substring (point-min) (point-max))) |
| @@ -888,7 +889,7 @@ Create the buffer if it doesn't exist." | |||
| 888 | (defun rcirc-multiline-edit-cancel () | 889 | (defun rcirc-multiline-edit-cancel () |
| 889 | "Cancel the multiline edit." | 890 | "Cancel the multiline edit." |
| 890 | (interactive) | 891 | (interactive) |
| 891 | (assert (and (eq major-mode 'rcirc-multiline-edit-mode))) | 892 | (assert (eq major-mode 'rcirc-multiline-edit-mode)) |
| 892 | (kill-buffer (current-buffer)) | 893 | (kill-buffer (current-buffer)) |
| 893 | (set-window-configuration rcirc-window-configuration)) | 894 | (set-window-configuration rcirc-window-configuration)) |
| 894 | 895 | ||
| @@ -1077,7 +1078,7 @@ record activity." | |||
| 1077 | (set-marker text-start | 1078 | (set-marker text-start |
| 1078 | (or (next-single-property-change fill-start | 1079 | (or (next-single-property-change fill-start |
| 1079 | 'rcirc-text) | 1080 | 'rcirc-text) |
| 1080 | (point-max))) | 1081 | rcirc-prompt-end-marker)) |
| 1081 | ;; squeeze spaces out of text before rcirc-text | 1082 | ;; squeeze spaces out of text before rcirc-text |
| 1082 | (fill-region fill-start (1- text-start)) | 1083 | (fill-region fill-start (1- text-start)) |
| 1083 | 1084 | ||
| @@ -1242,9 +1243,7 @@ if NICK is also on `rcirc-ignore-list-automatic'." | |||
| 1242 | (define-key rcirc-track-minor-mode-map (kbd "C-c C-@") 'rcirc-next-active-buffer) | 1243 | (define-key rcirc-track-minor-mode-map (kbd "C-c C-@") 'rcirc-next-active-buffer) |
| 1243 | (define-key rcirc-track-minor-mode-map (kbd "C-c C-SPC") 'rcirc-next-active-buffer) | 1244 | (define-key rcirc-track-minor-mode-map (kbd "C-c C-SPC") 'rcirc-next-active-buffer) |
| 1244 | 1245 | ||
| 1245 | ;;; FIXME: the code to insert `rcirc-activity-string' into | 1246 | ;;;###autoload |
| 1246 | ;;; `global-mode-string' isn't called when the mode is activated by | ||
| 1247 | ;;; customize. I don't know how to set that up. | ||
| 1248 | (define-minor-mode rcirc-track-minor-mode | 1247 | (define-minor-mode rcirc-track-minor-mode |
| 1249 | "Global minor mode for tracking activity in rcirc buffers." | 1248 | "Global minor mode for tracking activity in rcirc buffers." |
| 1250 | :init-value nil | 1249 | :init-value nil |
| @@ -1346,7 +1345,7 @@ activity. Only run if the buffer is not visible and | |||
| 1346 | (setq rcirc-activity-string | 1345 | (setq rcirc-activity-string |
| 1347 | (if (not rcirc-activity) | 1346 | (if (not rcirc-activity) |
| 1348 | "" | 1347 | "" |
| 1349 | (concat " [" | 1348 | (concat "-[" |
| 1350 | (mapconcat | 1349 | (mapconcat |
| 1351 | (lambda (b) | 1350 | (lambda (b) |
| 1352 | (let ((s (rcirc-short-buffer-name b))) | 1351 | (let ((s (rcirc-short-buffer-name b))) |
| @@ -1355,7 +1354,7 @@ activity. Only run if the buffer is not visible and | |||
| 1355 | s | 1354 | s |
| 1356 | (rcirc-facify s 'rcirc-mode-line-nick))))) | 1355 | (rcirc-facify s 'rcirc-mode-line-nick))))) |
| 1357 | rcirc-activity ",") | 1356 | rcirc-activity ",") |
| 1358 | "]")))) | 1357 | "]-")))) |
| 1359 | 1358 | ||
| 1360 | (defun rcirc-short-buffer-name (buffer) | 1359 | (defun rcirc-short-buffer-name (buffer) |
| 1361 | "Return a short name for BUFFER to use in the modeline indicator." | 1360 | "Return a short name for BUFFER to use in the modeline indicator." |