all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tabbar. Hide for special buffers. What's wrong with my .emacs ?
@ 2009-05-10 14:02 Louise Hoffman
  2009-05-10 15:24 ` Peter Dyballa
       [not found] ` <mailman.6948.1241969050.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Louise Hoffman @ 2009-05-10 14:02 UTC (permalink / raw)
  To: help-gnu-emacs

Dear readers,

I have just installed tabbar from
http://www.emacswiki.org/emacs/TabBarMode

and it works perfectly.

But when I add the code to "Hide for special buffers" the tabbar
disappears.

Can someone take a look at my .emacs file, and tell me, whats wrong?

Lots of love,
Louise

;; Lisp modules goes here
(add-to-list 'load-path "~/.elisp")

;; Enable tabbar
(require 'tabbar)
(tabbar-mode)

;; Tabbar just one group
(setq tabbar-buffer-groups-function
      (lambda ()
	(list "All")))

;; Tabbar Windows style (shift-)control tab behaviour and autoload
tabbar-mode
(dolist (func '(tabbar-mode tabbar-forward-tab tabbar-forward-group
tabbar-backward-tab tabbar-backward-group))
  (autoload func "tabbar" "Tabs at the top of buffers and easy control-
tab navigation"))
(defmacro defun-prefix-alt (name on-no-prefix on-prefix &optional do-
always)
  `(defun ,name (arg)
     (interactive "P")
     ,do-always
     (if (equal nil arg)
	 ,on-no-prefix
       ,on-prefix)))
(defun-prefix-alt shk-tabbar-next (tabbar-forward-tab) (tabbar-forward-
group) (tabbar-mode 1))
(defun-prefix-alt shk-tabbar-prev (tabbar-backward-tab) (tabbar-
backward-group) (tabbar-mode 1))
(global-set-key [(control tab)] 'shk-tabbar-next)
(global-set-key [(control shift tab)] 'shk-tabbar-prev)


;; Tabbar. Hide for special buffers
(when (require 'tabbar nil t)
  (setq tabbar-buffer-groups-function
    	(lambda (b) (list "All Buffers")))
  (setq tabbar-buffer-list-function
    	(lambda ()
    	  (remove-if
    	   (lambda(buffer)
    	     (find (aref (buffer-name buffer) 0) " *"))
    	   (buffer-list))))
  (tabbar-mode))




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

* Re: Tabbar. Hide for special buffers. What's wrong with my .emacs ?
  2009-05-10 14:02 Tabbar. Hide for special buffers. What's wrong with my .emacs ? Louise Hoffman
@ 2009-05-10 15:24 ` Peter Dyballa
       [not found] ` <mailman.6948.1241969050.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-05-10 15:24 UTC (permalink / raw)
  To: Louise Hoffman; +Cc: help-gnu-emacs


Am 10.05.2009 um 16:02 schrieb Louise Hoffman:

> Can someone take a look at my .emacs file, and tell me, whats wrong?

Could be some function also does

	(tabbar-mode)

which switches tabbar off when it's on (and on when it's off). In the  
dolist I can see a candidate. Maybe it helps to comment your own

	(tabbar-mode)

statement in your init file or clean the dolist ...

--
Greetings

   Pete

They're putting dimes in the hole in my head to see the change in me.







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

* Re: Tabbar. Hide for special buffers. What's wrong with my .emacs ?
       [not found] ` <mailman.6948.1241969050.31690.help-gnu-emacs@gnu.org>
@ 2009-05-10 15:30   ` Louise Hoffman
  2009-05-10 17:49     ` Peter Dyballa
       [not found]     ` <mailman.6955.1241977792.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Louise Hoffman @ 2009-05-10 15:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

If I comment almost everything out, so I only have

;; Lisp modules goes here
(add-to-list 'load-path "~/.elisp")

;; Tabbar. Hide for special buffers
(when (require 'tabbar nil t)
  (setq tabbar-buffer-groups-function
    	(lambda (b) (list "All Buffers")))
  (setq tabbar-buffer-list-function
    	(lambda ()
    	  (remove-if
    	   (lambda(buffer)
    	     (find (aref (buffer-name buffer) 0) " *"))
    	   (buffer-list))))
  (tabbar-mode))

I get the same, that the tabbar doesn't show up.

Even with

;; Enable tabbar
(require 'tabbar)
(tabbar-mode)

it doesn't show up, when the "hide" code is there...




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

* Re: Tabbar. Hide for special buffers. What's wrong with my .emacs ?
  2009-05-10 15:30   ` Louise Hoffman
@ 2009-05-10 17:49     ` Peter Dyballa
       [not found]     ` <mailman.6955.1241977792.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-05-10 17:49 UTC (permalink / raw)
  To: Louise Hoffman; +Cc: help-gnu-emacs


Am 10.05.2009 um 17:30 schrieb Louise Hoffman:

> it doesn't show up, when the "hide" code is there...


Can you make it re-appear manually? (M-x tabbar-mode RET)

I don't understand ELisp that well and I never used that hide  
function – I'll see what I can understand from the documentation!  
Which version of GNU Emacs and tabbar are you using?

--
Greetings

   Pete

Well done is better than well said.
				– Benjamin Franklin







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

* Re: Tabbar. Hide for special buffers. What's wrong with my .emacs ?
       [not found]     ` <mailman.6955.1241977792.31690.help-gnu-emacs@gnu.org>
@ 2009-05-10 18:05       ` Louise Hoffman
  2009-05-10 19:38         ` Peter Dyballa
  0 siblings, 1 reply; 6+ messages in thread
From: Louise Hoffman @ 2009-05-10 18:05 UTC (permalink / raw)
  To: help-gnu-emacs

> Can you make it re-appear manually? (M-x tabbar-mode RET)

If I just have

;; Lisp modules goes here
(add-to-list 'load-path "~/.elisp")

;; Tabbar. Hide for special buffers
(when (require 'tabbar nil t)
  (setq tabbar-buffer-groups-function
    	(lambda (b) (list "All Buffers")))
  (setq tabbar-buffer-list-function
    	(lambda ()
    	  (remove-if
    	   (lambda(buffer)
    	     (find (aref (buffer-name buffer) 0) " *"))
    	   (buffer-list))))
  (tabbar-mode))


then M-x tabbar-mode RET disables tabbar. Doing that again, enables
it.

When enabled, I can see the bar there the tabs are suppose to be, but
no tabs. See this screenshot.

http://yfrog.com/2j77902001p

> I don't understand ELisp that well and I never used that hide  
> function – I'll see what I can understand from the documentation!  
> Which version of GNU Emacs and tabbar are you using?

I use Emacs 22.2.1 on Linux Fedora 9 and tabbar 2.0. I have uploaded
it at

http://www.sendspace.com/file/tefj9l


Hugs,
Louise



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

* Re: Tabbar. Hide for special buffers. What's wrong with my .emacs ?
  2009-05-10 18:05       ` Louise Hoffman
@ 2009-05-10 19:38         ` Peter Dyballa
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-05-10 19:38 UTC (permalink / raw)
  To: Louise Hoffman; +Cc: help-gnu-emacs


Am 10.05.2009 um 20:05 schrieb Louise Hoffman:

> then M-x tabbar-mode RET disables tabbar. Doing that again, enables
> it.
>
> When enabled, I can see the bar there the tabs are suppose to be, but
> no tabs.

I can confirm that the tabbar code in the Emacs Wiki does the same  
here. It's obviously faulty – or ...

>
> I use Emacs 22.2.1 on Linux Fedora 9 and tabbar 2.0.


... it's meant for tabbar version 1.3. I'd comment this on the Wiki  
page.

--
Greetings
                                  <]
   Pete       o        __o         |__    o           recumbo
     ___o    /I       -\<,         |o \  -\),-%       ergo sum!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________



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

end of thread, other threads:[~2009-05-10 19:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-10 14:02 Tabbar. Hide for special buffers. What's wrong with my .emacs ? Louise Hoffman
2009-05-10 15:24 ` Peter Dyballa
     [not found] ` <mailman.6948.1241969050.31690.help-gnu-emacs@gnu.org>
2009-05-10 15:30   ` Louise Hoffman
2009-05-10 17:49     ` Peter Dyballa
     [not found]     ` <mailman.6955.1241977792.31690.help-gnu-emacs@gnu.org>
2009-05-10 18:05       ` Louise Hoffman
2009-05-10 19:38         ` Peter Dyballa

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.