unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: anhnmncb@sina.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: Any easy way to disable mouse behavior that can change to other buffers?
Date: Fri, 14 Nov 2008 15:01:23 +0100	[thread overview]
Message-ID: <491D84B3.6000300@gmx.at> (raw)

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





             reply	other threads:[~2008-11-14 14:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-14 14:01 martin rudalics [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=491D84B3.6000300@gmx.at \
    --to=rudalics@gmx.at \
    --cc=anhnmncb@sina.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).