all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Preventing emacs from discarding buffers
@ 2005-09-18 14:41 Ignatz
  2005-09-18 21:42 ` Peter Dyballa
  2005-09-19 15:58 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Ignatz @ 2005-09-18 14:41 UTC (permalink / raw)


I am running emacs21 under X11 on a Mac laptop. I have a scroll-wheel
mouse, and I have a nasty habit of unintentionally discarding buffers.
It happens when the mouse pointer is on the "Discard Buffers" icon and
I absent-mindedly scroll down with the scroll wheel.

I'd like to remove the "Discard Buffers" icon altogether, unless anyone
has a better solution. I'd appreciate any advice. Thanks.

Ig

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

* Re: Preventing emacs from discarding buffers
  2005-09-18 14:41 Preventing emacs from discarding buffers Ignatz
@ 2005-09-18 21:42 ` Peter Dyballa
  2005-09-19 15:58 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2005-09-18 21:42 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 18.09.2005 um 16:41 schrieb Ignatz:

> I'd like to remove the "Discard Buffers" icon altogether

Remove the toolbar (in Options->Show/Hide, then save the options)! What 
is it good for? How often did you use it the last ten years -- I mean 
on purpose?

In lisp/toolbar/tool-bar.el line #229 (GNU Emacs 22.0.50 from CVS)

	  (tool-bar-add-item-from-menu 'kill-this-buffer "close")

is the line to comment. Then byte-compile the buffer or file.

--
Greetings

   Pete
               <\
                 \__     O                       __O
                 | O\   _\\/\-%                _`\<,
                 '()-'-(_)--(_)               (_)/(_)

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

* Re: Preventing emacs from discarding buffers
  2005-09-18 14:41 Preventing emacs from discarding buffers Ignatz
  2005-09-18 21:42 ` Peter Dyballa
@ 2005-09-19 15:58 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2005-09-19 15:58 UTC (permalink / raw)


Ignatz wrote:
> I am running emacs21 under X11 on a Mac laptop. I have a scroll-wheel
> mouse, and I have a nasty habit of unintentionally discarding buffers.
> It happens when the mouse pointer is on the "Discard Buffers" icon and
> I absent-mindedly scroll down with the scroll wheel.

Wow, that is surely a bug!  (I can reproduce it on Solaris, BTW.)

> I'd like to remove the "Discard Buffers" icon altogether, unless anyone
> has a better solution. I'd appreciate any advice. Thanks.

(define-key tool-bar-map [kill-buffer] nil)

-- 
Kevin Rodgers

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

end of thread, other threads:[~2005-09-19 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-18 14:41 Preventing emacs from discarding buffers Ignatz
2005-09-18 21:42 ` Peter Dyballa
2005-09-19 15:58 ` Kevin Rodgers

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.