emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A patch to make ERC use Tabbar.


From: Andy Stewart
Subject: A patch to make ERC use Tabbar.
Date: Thu, 18 Dec 2008 23:23:30 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hi all,

ERC is very great except can use Tabbar-mode to display buffer title.

Today, i hacking the code of ERC and Tabber, I have success use Tabbar
with ERC.

,----
| First add this variable define in erc.el:
| 
| (defvar erc-header-line-uses-tab-p t
|   "Use tab instead `erc-header-line-format' display in header line.")
| 
| And apply this patch to erc.el
| 
| ,----
| | 6084     (when (boundp 'header-line-format)
| | 6085       (let ((header (if erc-header-line-format
| | 6086                         (format-spec erc-header-line-format spec)
| | 6087                       nil)))
| | 6088 +++     (cond (erc-header-line-uses-tab-p
| | 6089 +++            (set (make-local-variable 'tabbar--local-hlf) 
header-line-format)
| | 6090 +++            (kill-local-variable 'header-line-format))
| | 6091               ((null header)
| | 6092                (setq header-line-format nil))
| `----
`----

I use Emacs 23.0.60.1 cvs version.

So any developer of ERC can apply this patch?

  -- Andy




reply via email to

[Prev in Thread] Current Thread [Next in Thread]