From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: Re: mode-local key binding of S-drag-mouse-1 Date: Wed, 12 Oct 2011 09:01:55 -0500 Message-ID: <20117.40403.515568.836752@gargle.gargle.HOWL> References: <20117.30835.243469.955478@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318428150 18123 80.91.229.12 (12 Oct 2011 14:02:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 14:02:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 12 16:02:24 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RDzO2-00064O-Ao for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 16:02:22 +0200 Original-Received: from localhost ([::1]:48760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDzO1-0005pO-Qc for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 10:02:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDzNt-0005VA-U4 for emacs-devel@gnu.org; Wed, 12 Oct 2011 10:02:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDzNs-0007Pp-SN for emacs-devel@gnu.org; Wed, 12 Oct 2011 10:02:13 -0400 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:5111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDzNs-0007PT-Gt for emacs-devel@gnu.org; Wed, 12 Oct 2011 10:02:12 -0400 Original-Received: from regnitz (82.Red-80-32-229.staticIP.rima-tde.net [80.32.229.82]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id B70F723CA7; Wed, 12 Oct 2011 16:02:07 +0200 (CEST) In-Reply-To: X-Mailer: VM 8.2 trial under 24.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 131.188.164.197 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145004 Archived-At: On Wed Oct 12 2011 Stefan Monnier wrote: > > But then what can I do to suppress the binding of S-drag-mouse-1? > > Even if I try to unbind S-down-mouse-1 locally, this has no effect > > because emacs will then look into the global keymap where it still > > finds the global binding of S-down-mouse-1 (which I'd like to keep). > > I think you can bind S-down-mouse-1 to `ignore'. Thanks a lot! Maybe this should be mentioned in the elisp manual as a useful alternative to locally unbinding a key. Roland