From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: speedbar question Date: Sun, 7 Dec 2008 09:10:45 -0800 Message-ID: <004a01c9588e$beacdd50$0200a8c0@us.oracle.com> References: <003f01c9587f$88da5270$0200a8c0@us.oracle.com> <110409.62491.qm@web63008.mail.re1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228669915 1363 80.91.229.12 (7 Dec 2008 17:11:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 17:11:55 +0000 (UTC) To: , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 18:12:59 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9NBf-00077d-C5 for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 18:12:55 +0100 Original-Received: from localhost ([127.0.0.1]:35451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9NAU-00034k-4l for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 12:11:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9N9Q-0002q1-KZ for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 12:10:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9N9P-0002pl-VU for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 12:10:36 -0500 Original-Received: from [199.232.76.173] (port=48744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9N9P-0002pd-Qe for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 12:10:35 -0500 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:47199) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9N9P-0007aE-EA for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 12:10:35 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mB7HBTAP021470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 7 Dec 2008 17:11:30 GMT Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mB7HArqt022598; Sun, 7 Dec 2008 17:10:54 GMT Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 07 Dec 2008 09:10:29 -0800 X-Mailer: Microsoft Office Outlook 11 thread-index: AclYgW9pywg3CfG0QB2QYu/5dzbQPgAC80VA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: <110409.62491.qm@web63008.mail.re1.yahoo.com> X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010204.493C0387.0057:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60424 Archived-At: > > > I wanted to use mouse-1 single click to do all i want in > > > speedbar instead of use mouse-2 ( scroll button ) click. > > > I couldn't find an easy way so I edited dframe.el and > > > swapped down-mouse-1 event and mouse-2 event. > > > Now I got exactly what I want but the problem is > > > that everytime i move the mouse in speedbar, i always > > > get some highlight as if i am trying to copy something. > > > Is there anyway to get around this or is there a way to > > > solve this correctly ? > > > > What Emacs version are you using? In Emacs 22 or later `mouse-1' should > > do what you want by default, and the behavior is controlled by option > > `mouse-1-click-follows-link'. > > I'm using 23.0.60.1 which would be the very latest, I'm running ubuntu > 8.04. mouse-1 doesn't do anything in speedbar, while clicking the > button in scroll wheel( mouse-2) or the middle button in thinkpad > selects the buffer or expands etc. I think its a trivial bug. But by > customizing i should be able to change it, I'm wondering how. > > The reason I'm saying its a trivial bug is because, it is not > intuitive and because, if you are familiar with dframe.el in speedbar, > middle button is mapped to dframe-click event and mouse-1 is mapped to > dframe-double-click event in dframe.el which is kind of > inverse. Please let me know if you have any ideas on how to customize it. [Please don't top-post. Use plain text, not HTML, for this mailing list.] Are you using emacs -Q? If not, perhaps something in your .emacs is causing the problem. What is your value of `mouse-1-click-follows-link'? I don't see the problem, with emacs -Q in this build: In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-11-24 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' If your version is more recent than that, check Emacs NEWS (`C-h n') to see if this change was intentional. If it was not, please file an Emacs bug: `M-x report-emacs-bug'.