unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Any easy way to disable mouse behavior that can change to other buffers?
@ 2008-11-13  7:55 anhnmncb
  2008-11-13  8:44 ` Andy Stewart
  0 siblings, 1 reply; 7+ messages in thread
From: anhnmncb @ 2008-11-13  7:55 UTC (permalink / raw)
  To: help-gnu-emacs

Mouse when on modeline, and popup buffers menu by C-<left mouse> can be
used to change to other buffers, both of which are not what I want, can
I disable it?

Thank you.





^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Any easy way to disable mouse behavior that can change to other buffers?
@ 2008-11-14 14:01 martin rudalics
  0 siblings, 0 replies; 7+ messages in thread
From: martin rudalics @ 2008-11-14 14:01 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs

 > I want to disable the ability of mouse clicking on modeline which can
 > make buffer switching, and the buffer list menu popped up by Ctrl-<left
 > mouse>.

You can try to add the 100% untested code below to your .emacs.

martin


(defun my-propertized-buffer-identification (fmt)
   "Return a list suitable for `mode-line-buffer-identification'."
   (list (propertize fmt
		    'face 'mode-line-buffer-id
		    'help-echo
		    (purecopy "Buffer name"))))

(setq mode-line-buffer-identification (my-propertized-buffer-identification "%12b"))





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

end of thread, other threads:[~2008-11-15  1:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13  7:55 Any easy way to disable mouse behavior that can change to other buffers? anhnmncb
2008-11-13  8:44 ` Andy Stewart
2008-11-13 14:58   ` anhnmncb
2008-11-14  0:27     ` Andy Stewart
2008-11-14 13:46     ` Kevin Rodgers
2008-11-15  1:23       ` anhnmncb
  -- strict thread matches above, loose matches on Subject: below --
2008-11-14 14:01 martin rudalics

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).