unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ERC: header-line-format nil
@ 2008-08-17 18:46 David Reitter
  2008-08-17 18:57 ` Michael Olson
  0 siblings, 1 reply; 3+ messages in thread
From: David Reitter @ 2008-08-17 18:46 UTC (permalink / raw
  To: Emacs-Devel devel, mwolson

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

When `erc-header-line-format' is set to nil, the header line should  
not be set in order to avoid interfering with minor modes that may use  
it (e.g., tabbar).  Is it OK to apply the patch below?




*** erc.el	28 Jul 2008 23:15:49 +0100	1.52
--- erc.el	17 Aug 2008 19:44:33 +0100	
***************
*** 6085,6092 ****
   	(let ((header (if erc-header-line-format
   			  (format-spec erc-header-line-format spec)
   			nil)))
! 	  (cond ((null header)
! 		 (setq header-line-format nil))
   		(erc-header-line-uses-help-echo-p
   		 (let ((help-echo (with-temp-buffer
   				    (insert header)
--- 6085,6091 ----
   	(let ((header (if erc-header-line-format
   			  (format-spec erc-header-line-format spec)
   			nil)))
! 	  (cond ((null header))
   		(erc-header-line-uses-help-echo-p
   		 (let ((help-echo (with-temp-buffer
   				    (insert header)


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ERC: header-line-format nil
  2008-08-17 18:46 ERC: header-line-format nil David Reitter
@ 2008-08-17 18:57 ` Michael Olson
  2008-08-17 19:18   ` David Reitter
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olson @ 2008-08-17 18:57 UTC (permalink / raw
  To: David Reitter; +Cc: Emacs-Devel devel

On Sun, 17 Aug 2008 19:46:13 +0100, David Reitter <david.reitter@gmail.com>
wrote:
> When `erc-header-line-format' is set to nil, the header line should
> not be set in order to avoid interfering with minor modes that may use
> it (e.g., tabbar).  Is it OK to apply the patch below?

Don't apply this just yet.  I won't be able to review it until at least
Wednesday.  I recall an emacswiki page describing how to integrate tabbar
with ERC -- it might be good to know whether that page has a similar
workaround, or whether they take a different approach.

-- 
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ERC: header-line-format nil
  2008-08-17 18:57 ` Michael Olson
@ 2008-08-17 19:18   ` David Reitter
  0 siblings, 0 replies; 3+ messages in thread
From: David Reitter @ 2008-08-17 19:18 UTC (permalink / raw
  To: Michael Olson; +Cc: Emacs-Devel devel

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

On 17 Aug 2008, at 19:57, Michael Olson wrote:
>
>   I recall an emacswiki page describing how to integrate tabbar
> with ERC -- it might be good to know whether that page has a similar
> workaround, or whether they take a different approach.


Found it, but all they do is to run tabbar-local-mode, which overrides  
`header-line-format' after ERC has been entered, so that's really just  
a workaround.

What ERC could do is to only set `header-line-format' if it isn't  
already set in the buffer (by another package).  This, however, might  
not be the right solution in all cases.

I wouldn't invest much time into this - the "right thing" would be to  
implement tabbars at the C level.

- D

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-17 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-17 18:46 ERC: header-line-format nil David Reitter
2008-08-17 18:57 ` Michael Olson
2008-08-17 19:18   ` David Reitter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).