From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ead-gnu-emacs@ixian.com Newsgroups: gmane.emacs.help Subject: Re: change "word" definition (syntax table) for double-click? Date: Sun, 30 Nov 2008 21:08:28 -0800 (PST) Organization: http://groups.google.com Message-ID: <4b1a4393-25d7-4554-9e2d-b965504e7f0e@a29g2000pra.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228144995 28075 80.91.229.12 (1 Dec 2008 15:23:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2008 15:23:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 16:24:18 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 1L7Ad0-0000QD-7q for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2008 16:24:02 +0100 Original-Received: from localhost ([127.0.0.1]:60810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7Abp-0002qW-VE for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2008 10:22:49 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a29g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 55 Original-NNTP-Posting-Host: 67.161.25.57 Original-X-Trace: posting.google.com 1228108108 23294 127.0.0.1 (1 Dec 2008 05:08:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 1 Dec 2008 05:08:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a29g2000pra.googlegroups.com; posting-host=67.161.25.57; posting-account=2aL0ZAoAAADd2IOuhKEUJXkqADjfQuSm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092816 Iceweasel/3.0.3 (Debian-3.0.3-3),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164948 comp.emacs:97411 X-Mailman-Approved-At: Mon, 01 Dec 2008 10:21:44 -0500 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:60282 Archived-At: Xah, ] How can I have a double-click on for instance the middle "o" in ] "http://www.foo.com/" highlight the entirety of "http:// www.foo.com/" ] rather than merely the word "foo"? Thanks for your reply. I appreciate it. Unfortunately, I see that I sent you (and everyone else) down the wrong path with my poor wording. Let me try again. The double-clicking-on-a-URL was just one sample application. What I want is for double-clicking with the mouse to highlight, as a word, all contiguous non-whitespace characters. Some sample applications I want this for are: o Double-clicking in the middle of URLs. o Double-clicking in the middle of RFC822-compliant email addresses. o Double-clicking in the middle of passwords and other strings having non-alphanumeric characters. In short, I want the same double-clicking control inside emacs that character classes give me inside xterm and cutchars give me inside rxvt. xterm(1) CHARACTER CLASSES Clicking the left pointer button twice in rapid succession (double-clicking) causes all characters of the same class (e.g., letters, white space, punctuation) to be selected as a ``word''. Since different people have different preferences for what should be selected (for example, should filenames be selected as a whole or only the separate subnames), the default mapping can be overridden through the use of the charClass (class CharClass) resource. rxvt(1) cutchars: string The characters used as delimiters for double-click word selection (whitespace delimiting is added automatically if resource is given). Thank you for any pointers, Eric -- Eric De Mund | Ixian Systems | Jab: eadixian@jabber.org/ main ead@ixian.com | 650 Castro St, #120-210 | Y!M: ead0002 ixian.com/ead/ | Mountain View, CA 94041 | ICQ: 811788