* How can I kill these buffers automatically (Woman-log Completions)
@ 2005-10-22 19:23 Angelina Carlton
2005-10-23 7:17 ` Eli Zaretskii
2005-10-27 22:58 ` Slawomir Nowaczyk
0 siblings, 2 replies; 12+ messages in thread
From: Angelina Carlton @ 2005-10-22 19:23 UTC (permalink / raw)
Hi for some people having lots of buffers like woman, info, help and
completions isn't a big problem but I would like to be rid of them once
Ive used them.
First *WoMan-Log*, in my .emacs:
,----
| (autoload 'woman "woman"
| "Decode and browse a Unix man page." t)
| (setq woman-show-log nil)
| (setq woman-cache-filename "~/.emacs.d/wmcache.el")
| (global-set-key [(f1)] 'woman)
`----
This tells emacs NOT to display the WoMan-log buffer, yet it does
display it and I do not know how to fix this.
Next one is the *Completions* buffer, I would like to nuke this buffer
as soon as Ive made a completion. I don't see the point of having it
sitting around but do not know how make it go away.
Also the *Help* buffer:
,----
| (setq remove-help-window t)
`----
This has seemingly no effect whatsover.
Version: GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2005-10-02 on trouble, modified by Debian
any tips for doing this would be appreciated!
--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-22 19:23 How can I kill these buffers automatically (Woman-log Completions) Angelina Carlton
@ 2005-10-23 7:17 ` Eli Zaretskii
2005-10-23 11:51 ` Angelina Carlton
2005-10-27 22:58 ` Slawomir Nowaczyk
1 sibling, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2005-10-23 7:17 UTC (permalink / raw)
> From: Angelina Carlton <brat@magma.ca>
> Date: Sat, 22 Oct 2005 15:23:43 -0400
>
> ,----
> | (autoload 'woman "woman"
> | "Decode and browse a Unix man page." t)
> | (setq woman-show-log nil)
> | (setq woman-cache-filename "~/.emacs.d/wmcache.el")
> | (global-set-key [(f1)] 'woman)
> `----
> This tells emacs NOT to display the WoMan-log buffer, yet it does
> display it and I do not know how to fix this.
That's because you set woman-show-log too late: it should be set
_before_ woman.elc is loaded. Alternatively, use the Customize
feature to customize the value of the variable, and have Customize
write the correct code into your .emacs.
> Next one is the *Completions* buffer, I would like to nuke this buffer
> as soon as Ive made a completion.
What for? Why would another buffer make a difference?
> Also the *Help* buffer:
>
> ,----
> | (setq remove-help-window t)
> `----
>
> This has seemingly no effect whatsover.
I don't see such a variable in my Emacs. Where did you hear about it?
In any case, its name suggests that it removes the help _window_, not
the *Help* buffer.
I also don't see any sense in killing the *Help* buffer, because it
will be reused (and recreated, if needed) by the next help command.
It is also handy to go to that buffer if you forgot some detail.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 7:17 ` Eli Zaretskii
@ 2005-10-23 11:51 ` Angelina Carlton
2005-10-23 13:14 ` Lennart Borgman
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Angelina Carlton @ 2005-10-23 11:51 UTC (permalink / raw)
Eli Zaretskii <eliz@gnu.org> writes:
> That's because you set woman-show-log too late: it should be set
> _before_ woman.elc is loaded. Alternatively, use the Customize
> feature to customize the value of the variable, and have Customize
> write the correct code into your .emacs.
>
I tried it placing the line right at the top of my .emacs and it still
wont do anything, also tried via the customize menus also with no effect.
>
> What for? Why would another buffer make a difference?
Because although I use Iswitch buffer, when I have *Compile-log*
*Completions* and some other file I might be visiting that happens to
begin with Comp it becomes for me at least, a little extra step to type
out the buffer name. (or enough of the buffer name to be unique)
Maybe its because I am relatively new to emacs and this is the way it
works, you just get used to having lots of buffers? I will bind
something to bury-buffer I suppose.
>> ,----
>> | (setq remove-help-window t)
>> `----
> I don't see such a variable in my Emacs. Where did you hear about it?
Yes I dont know where I got that from and have removed it.
> I also don't see any sense in killing the *Help* buffer, because it
> will be reused (and recreated, if needed) by the next help command.
> It is also handy to go to that buffer if you forgot some detail.
I dont care really if emacs has to recreate the buffer but I see
your point though about forgetting something and having to take another
look.
Thank you.
--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 11:51 ` Angelina Carlton
@ 2005-10-23 13:14 ` Lennart Borgman
2005-10-23 16:29 ` Angelina Carlton
2005-10-23 16:26 ` Drew Adams
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2005-10-23 13:14 UTC (permalink / raw)
Cc: help-gnu-emacs
Angelina Carlton wrote:
>Because although I use Iswitch buffer, when I have *Compile-log*
>*Completions* and some other file I might be visiting that happens to
>begin with Comp it becomes for me at least, a little extra step to type
>out the buffer name. (or enough of the buffer name to be unique)
>
>Maybe its because I am relatively new to emacs and this is the way it
>works, you just get used to having lots of buffers? I will bind
>something to bury-buffer I suppose.
>
>
Maybe this page can help you
http://www.emacswiki.org/cgi-bin/wiki/CategoryBufferSwitching
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 11:51 ` Angelina Carlton
2005-10-23 13:14 ` Lennart Borgman
@ 2005-10-23 16:26 ` Drew Adams
2005-10-23 16:38 ` Henrik Enberg
2005-10-23 16:41 ` Eli Zaretskii
3 siblings, 0 replies; 12+ messages in thread
From: Drew Adams @ 2005-10-23 16:26 UTC (permalink / raw)
>> (setq remove-help-window t)
> I don't see such a variable in my Emacs. Where did you hear about it?
Yes I dont know where I got that from and have removed it.
It's not pertinent to your question/problem, but I suspect you might have
got it from someone's .emacs who uses my Emacs-20 (only) library help+.el. I
define this function in that library:
(defsubst remove-help-window ()
"If called from `help-for-help', remove display of help window."
(when (and (eq 'help-for-help this-command)
(fboundp 'remove-windows-on)) ; Defined in `frame-cmds.el'.
(remove-windows-on "*Help*")))
Command `remove-windows-on', in turn, removes all windows showing its buffer
argument, from all frames showing it.
Eli is correct that `remove-help-window' removes only windows, not buffers.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 13:14 ` Lennart Borgman
@ 2005-10-23 16:29 ` Angelina Carlton
0 siblings, 0 replies; 12+ messages in thread
From: Angelina Carlton @ 2005-10-23 16:29 UTC (permalink / raw)
Lennart Borgman <lennart.borgman.073@student.lu.se> writes:
> Maybe this page can help you
>
> http://www.emacswiki.org/cgi-bin/wiki/CategoryBufferSwitching
Thanks, I'd already seen that when I found out about iswitchb. I also
noticed that in the cvs version M-<arrows> will switch buffers so that
might help somewhat to skip past a buffer I don't want.
I bound the windows print/context menu key to bury-buffer and that works
well, really fast way to cycle through the buffers.
So I will live with that, however the *Woman-Log* buffer shouldn't be
created according to the documentation but it still is, should I file a
bug?
--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 11:51 ` Angelina Carlton
2005-10-23 13:14 ` Lennart Borgman
2005-10-23 16:26 ` Drew Adams
@ 2005-10-23 16:38 ` Henrik Enberg
2005-10-23 16:41 ` Eli Zaretskii
3 siblings, 0 replies; 12+ messages in thread
From: Henrik Enberg @ 2005-10-23 16:38 UTC (permalink / raw)
Angelina Carlton <brat@magma.ca> writes:
> Because although I use Iswitch buffer, when I have *Compile-log*
> *Completions* and some other file I might be visiting that happens to
> begin with Comp it becomes for me at least, a little extra step to type
> out the buffer name. (or enough of the buffer name to be unique)
If you're an iswitchb user, the variable `iswitchb-buffer-ignore' may be
of interest.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 11:51 ` Angelina Carlton
` (2 preceding siblings ...)
2005-10-23 16:38 ` Henrik Enberg
@ 2005-10-23 16:41 ` Eli Zaretskii
2005-10-23 18:01 ` Angelina Carlton
3 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2005-10-23 16:41 UTC (permalink / raw)
> From: Angelina Carlton <brat@magma.ca>
> Date: Sun, 23 Oct 2005 07:51:11 -0400
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > That's because you set woman-show-log too late: it should be set
> > _before_ woman.elc is loaded. Alternatively, use the Customize
> > feature to customize the value of the variable, and have Customize
> > write the correct code into your .emacs.
> >
> I tried it placing the line right at the top of my .emacs and it still
> wont do anything, also tried via the customize menus also with no effect.
Perhaps we are miscommunicating: this variable controls whether the
log buffer is _shown_, not whether it is created and filled with log
message. If you expected that setting it to nil will prevent WoMan
from logging messages into the log buffer, you misunderstood the doc
string of woman-show-log.
> Because although I use Iswitch buffer, when I have *Compile-log*
> *Completions* and some other file I might be visiting that happens to
> begin with Comp it becomes for me at least, a little extra step to type
> out the buffer name. (or enough of the buffer name to be unique)
You can tailor this Iswitch's behavior by customizing the variable
iswitchb-buffer-ignore.
> Maybe its because I am relatively new to emacs and this is the way it
> works, you just get used to having lots of buffers?
Yes, I think you should get used to this. Emacs creates a lot of
buffers, so this is perfectly normal.
> > I also don't see any sense in killing the *Help* buffer, because it
> > will be reused (and recreated, if needed) by the next help command.
> > It is also handy to go to that buffer if you forgot some detail.
>
> I dont care really if emacs has to recreate the buffer
My point was that, even if you kill *Help*, it will be created again
in a short while. So why bother?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-23 16:41 ` Eli Zaretskii
@ 2005-10-23 18:01 ` Angelina Carlton
0 siblings, 0 replies; 12+ messages in thread
From: Angelina Carlton @ 2005-10-23 18:01 UTC (permalink / raw)
OK, thanks alot everyone that replied, I set up the
iswitchb-buffer-ignore and that works great!
--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
[not found] <mailman.12253.1130009042.20277.help-gnu-emacs@gnu.org>
@ 2005-10-24 2:40 ` Shug Boabby
0 siblings, 0 replies; 12+ messages in thread
From: Shug Boabby @ 2005-10-24 2:40 UTC (permalink / raw)
> I would like to nuke this buffer as soon as Ive made a completion
don't know about the woman stuff... but try this for auto nuking most
of the buffers that just build up and clog the buffer list (you'll need
to download tempbuf.el):
;; Automatically remove internal buffers after use
;; http://www.emacswiki.org/cgi-bin/wiki/download/tempbuf.el
(require 'tempbuf nil t)
(add-hook 'message-mode-hook 'turn-on-tempbuf-mode)
(add-hook 'completion-list-mode-hook 'turn-on-tempbuf-mode)
(add-hook 'dired-mode-hook 'turn-on-tempbuf-mode)
(add-hook 'custom-mode-hook 'turn-on-tempbuf-mode)
(add-hook 'Man-mode-hook 'turn-on-tempbuf-mode)
(add-hook 'view-mode-hook 'turn-on-tempbuf-mode)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-22 19:23 How can I kill these buffers automatically (Woman-log Completions) Angelina Carlton
2005-10-23 7:17 ` Eli Zaretskii
@ 2005-10-27 22:58 ` Slawomir Nowaczyk
2005-10-28 5:48 ` William Xu
1 sibling, 1 reply; 12+ messages in thread
From: Slawomir Nowaczyk @ 2005-10-27 22:58 UTC (permalink / raw)
On Sat, 22 Oct 2005 15:23:43 -0400
Angelina Carlton <brat@magma.ca> wrote:
#> Hi for some people having lots of buffers like woman, info, help and
#> completions isn't a big problem but I would like to be rid of them once
#> Ive used them.
I guess tempbuf-mode may be of interest for you:
http://www.emacswiki.org/cgi-bin/wiki/TempbufMode
--
Best wishes,
Slawomir Nowaczyk
( slawomir.nowaczyk.847@student.lu.se )
If we are what we eat, then I'm easy, fast, and cheap.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: How can I kill these buffers automatically (Woman-log Completions)
2005-10-27 22:58 ` Slawomir Nowaczyk
@ 2005-10-28 5:48 ` William Xu
0 siblings, 0 replies; 12+ messages in thread
From: William Xu @ 2005-10-28 5:48 UTC (permalink / raw)
Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> writes:
> On Sat, 22 Oct 2005 15:23:43 -0400
> Angelina Carlton <brat@magma.ca> wrote:
>
> #> Hi for some people having lots of buffers like woman, info, help and
> #> completions isn't a big problem but I would like to be rid of them
> once
> #> Ive used them.
>
> I guess tempbuf-mode may be of interest for you:
>
> http://www.emacswiki.org/cgi-bin/wiki/TempbufMode
Also, try midnight-mode, part of GNU Emacs.
(require 'midnight)
>From the info - Emacs - Kill Buffer,
You can also have this buffer purging done for you, every day at
midnight, by enabling Midnight mode. Midnight mode operates each day at
midnight; at that time, it runs `clean-buffer-list', or whichever
functions you have placed in the normal hook `midnight-hook' (*note
Hooks::).
--
William
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-10-28 5:48 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-22 19:23 How can I kill these buffers automatically (Woman-log Completions) Angelina Carlton
2005-10-23 7:17 ` Eli Zaretskii
2005-10-23 11:51 ` Angelina Carlton
2005-10-23 13:14 ` Lennart Borgman
2005-10-23 16:29 ` Angelina Carlton
2005-10-23 16:26 ` Drew Adams
2005-10-23 16:38 ` Henrik Enberg
2005-10-23 16:41 ` Eli Zaretskii
2005-10-23 18:01 ` Angelina Carlton
2005-10-27 22:58 ` Slawomir Nowaczyk
2005-10-28 5:48 ` William Xu
[not found] <mailman.12253.1130009042.20277.help-gnu-emacs@gnu.org>
2005-10-24 2:40 ` Shug Boabby
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).