diff options
author | Miles Bader <miles@gnu.org> | 2006-11-20 06:50:29 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2006-11-20 06:50:29 +0000 |
commit | 83dc6995148085966eddca749228a6338b7e6b0e (patch) | |
tree | 0fbf7066385873a51749737e5ac0d9c57b8a3d28 /lisp/erc/erc-track.el | |
parent | e15a04955b0c59069aa870d7d5040bc2e795b2eb (diff) | |
download | emacs-83dc6995148085966eddca749228a6338b7e6b0e.tar.gz emacs-83dc6995148085966eddca749228a6338b7e6b0e.tar.bz2 emacs-83dc6995148085966eddca749228a6338b7e6b0e.zip |
Merge from erc--emacs--22
Merge from my ERC Emacs 22 integration branch. The version is now "5.2
stable pre-release". This will probably be the last change to the
version of ERC in Emacs 22 before the release, pending any bugfixes. For
details on the changes, see the lisp/erc/ChangeLog file.
Note that ERC is now invoked with M-x erc, not M-x erc-select. If you
were using the old `erc' function programmatically, use `erc-open'
instead.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-520
Creator: Michael Olson <mwolson@gnu.org>
Diffstat (limited to 'lisp/erc/erc-track.el')
-rw-r--r-- | lisp/erc/erc-track.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index b045fb24999..3c8f93acfc2 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el @@ -580,6 +580,11 @@ ARGS are ignored." (erc-modified-channels-display) (force-mode-line-update t)))) +(defvar erc-track-mouse-face (if (featurep 'xemacs) + 'modeline-mousable + 'mode-line-highlight) + "The face to use when mouse is over channel names in the mode line.") + (defun erc-make-mode-line-buffer-name (string buffer &optional faces count) "Return STRING as a button that switches to BUFFER when clicked. If FACES are provided, color STRING with them." @@ -609,6 +614,12 @@ If FACES are provided, color STRING with them." (posn-window (event-start e))) (switch-to-buffer-other-window ,buffer)))) (put-text-property 0 (length name) 'local-map map name) + (put-text-property + 0 (length name) + 'help-echo (concat "mouse-2: switch to buffer, " + "mouse-3: switch to buffer in other window") + name) + (put-text-property 0 (length name) 'mouse-face erc-track-mouse-face name) (when (and faces erc-track-use-faces) (put-text-property 0 (length name) 'face faces name)) name)) |