From: ead-gnu-emacs@ixian.com
To: help-gnu-emacs@gnu.org
Subject: Re: change "word" definition (syntax table) for double-click?
Date: Sun, 30 Nov 2008 21:08:28 -0800 (PST) [thread overview]
Message-ID: <4b1a4393-25d7-4554-9e2d-b965504e7f0e@a29g2000pra.googlegroups.com> (raw)
In-Reply-To: e2c70753-359b-4aef-8ee1-9abb84530f5d@w24g2000prd.googlegroups.com
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
next prev parent reply other threads:[~2008-12-01 5:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-29 21:36 change "word" definition (syntax table) for double-click? ead-gnu-emacs
2008-11-30 2:13 ` Xah Lee
2008-12-01 5:08 ` ead-gnu-emacs [this message]
2008-12-01 5:57 ` Xah Lee
2008-12-01 18:29 ` Drew Adams
2008-12-01 18:39 ` Drew Adams
2008-12-01 18:52 ` Drew Adams
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=4b1a4393-25d7-4554-9e2d-b965504e7f0e@a29g2000pra.googlegroups.com \
--to=ead-gnu-emacs@ixian.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).