From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Stewart Newsgroups: gmane.emacs.devel Subject: A patch to make ERC use Tabbar. Date: Thu, 18 Dec 2008 23:23:30 +0800 Message-ID: <87bpv9tslp.fsf@debian.domain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229613856 2964 80.91.229.12 (18 Dec 2008 15:24:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2008 15:24:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 18 16:25:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LDKkN-0002Qu-Hy for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 16:25:07 +0100 Original-Received: from localhost ([127.0.0.1]:55539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDKjA-0008Vk-St for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 10:23:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDKj6-0008VL-4V for emacs-devel@gnu.org; Thu, 18 Dec 2008 10:23:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDKj3-0008Uy-MW for emacs-devel@gnu.org; Thu, 18 Dec 2008 10:23:47 -0500 Original-Received: from [199.232.76.173] (port=51867 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDKj3-0008Uv-HV for emacs-devel@gnu.org; Thu, 18 Dec 2008 10:23:45 -0500 Original-Received: from ti-out-0910.google.com ([209.85.142.191]:32550) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDKj3-0002FZ-4B for emacs-devel@gnu.org; Thu, 18 Dec 2008 10:23:45 -0500 Original-Received: by ti-out-0910.google.com with SMTP id u5so314452tia.10 for ; Thu, 18 Dec 2008 07:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=j/fFWIqTivalqAFjSYOdyeX6LDKgD2Isyut+vfTyVrY=; b=cpt51PgDypUHrR/hNOp57CiCLJ+FJPNs30ZjRvRBheHHCX+Klk7MAzvmF3c4e9l943 /nauCEaq61oO+55wmklwPfjHS7kVEsEdHrgr/gRKlHnACElpqtmoOsOjHo6H0vO9LQiC rGIYIVtlv4gUYqMKdXrs3iiyyI9B2kPvosOrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=A5mAUuxk0JS3wKHAZUTocCsc6du+QsDp5ZHkRDjRjAOGDjjcJWpmpGDHKNmYdedi3e 1oOBCNhB3P/GvY9CI71bYu0bNIPmQDgYD/WvkfxWQx/QfyLPw0gfm6BzM048uUVO2sPw xvMFt2zJHR5miLYIuzlaC9mHWx6zm1f7q8ZOk= Original-Received: by 10.110.61.16 with SMTP id j16mr2652029tia.54.1229613821591; Thu, 18 Dec 2008 07:23:41 -0800 (PST) Original-Received: from smtp.gmail.com ([222.212.128.200]) by mx.google.com with ESMTPS id w5sm4101945tib.14.2008.12.18.07.23.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Dec 2008 07:23:40 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107033 Archived-At: 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