From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sandipchitale@yahoo.com (Sandip Chitale) Newsgroups: gmane.emacs.help Subject: Re: How to make double click select a symbol instead of word in Emacs Lisp mode Date: 27 Feb 2003 18:05:11 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84u1ephho4.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1046398006 581 80.91.224.249 (28 Feb 2003 02:06:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2003 02:06:46 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oZv9-000096-00 for ; Fri, 28 Feb 2003 03:06:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oZuM-0002PU-07 for gnu-help-gnu-emacs@m.gmane.org; Thu, 27 Feb 2003 21:05:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 208.135.53.4 Original-X-Trace: posting.google.com 1046397911 15156 127.0.0.1 (28 Feb 2003 02:05:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 28 Feb 2003 02:05:11 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:110710 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7211 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7211 kai.grossjohann@uni-duisburg.de (Kai Großjohann) wrote in message news:<84u1ephho4.fsf@lucy.is.informatik.uni-duisburg.de>... > sandipchitale@yahoo.com (Sandip Chitale) writes: > > > I know it may have something to do with syntax table... > > but I do not how to do it. > > If you double-click on a non-word but symbol-constituent character, > you'll select the symbol instead of the word. So in Emacs Lisp mode, > double-clicking on the minus will select foo-bar, whereas > double-clicking on the b will select bar only. Thanks for the answer. Actually I noticed that behaviour recently. It is kind of inconsistent though. I have to be precise with the mouse which defeats the purpose of double-click to select word principle. SO my question is is there some way to modify this behaviour ? Using advise maybe ? I found out that the defun mouse-skip-word in mouse.el is responsible for the behaviour.