From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: symbols verses words Date: Thu, 3 Mar 2011 08:33:07 -0600 Message-ID: References: <06BF1211-A1CA-4E57-ADF4-8C89EF6ACDE1@gmail.com> <4D6FA532.7090109@arlsoft.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-2-880524237 X-Trace: dough.gmane.org 1299162831 774 80.91.229.12 (3 Mar 2011 14:33:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 14:33:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: MBR Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 15:33:46 2011 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.69) (envelope-from ) id 1Pv9b7-0008M0-Jw for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 15:33:45 +0100 Original-Received: from localhost ([127.0.0.1]:34703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv9b6-0007xX-To for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 09:33:44 -0500 Original-Received: from [140.186.70.92] (port=37993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv9af-0007xB-Rx for help-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:33:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv9aa-0002dz-K5 for help-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:33:18 -0500 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:36289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv9aa-0002dt-BZ for help-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:33:12 -0500 Original-Received: by qyk30 with SMTP id 30so1080970qyk.0 for ; Thu, 03 Mar 2011 06:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to:x-mailer; bh=uwJ/clsCWI3JLNi8Yq+wwRGH5qD9UkYYhxsWl/RH9Bo=; b=dVeib2jHfwzy3BfIvV13Nf4ER6gdTupdgkJV36R2Z1TBdnLNFd80TY7dCbHHicZUht hbBlOol+L0Ye9Ssr0DArqCPe05jaq51CaJqZlax9TJxImQWEVbcwaaJ/uCGYs0m0l49I YRspzLRw7eFACIyxBUkUf21GMr8UZpKK/SJvE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=Yx/mtiMw4HJLSW5fIRacwi+dB0btBWOwxuBKMgY6NA1l06rSh81TBBq/LbTeIIzoTO WI64xG3oqD23pOxfUvLGXyy+cF0DmDAHvMkhxojq26UF1T00zpwEfc9JIQWQ+sEuCfko O82FO81Xp8cjsm+eggQm4rfKkUe88CY8Yrksk= Original-Received: by 10.224.89.70 with SMTP id d6mr1100078qam.125.1299162791486; Thu, 03 Mar 2011 06:33:11 -0800 (PST) Original-Received: from [10.0.0.2] ([64.128.19.234]) by mx.google.com with ESMTPS id y17sm857109qci.9.2011.03.03.06.33.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2011 06:33:10 -0800 (PST) In-Reply-To: <4D6FA532.7090109@arlsoft.com> X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.176 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:79747 Archived-At: --Apple-Mail-2-880524237 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii :-) Never could smell. On Mar 3, 2011, at 8:26 AM, MBR wrote: > Verses are made up of words and words are made up of symbols. So the = order should be "symbols words verses", not "symbols verses words". >=20 > Oh, you meant "versus" not "verses". OK. I'll shut up now. >=20 > Mark >=20 > On 3/2/2011 7:20 PM, Perry Smith wrote: >>=20 >> I need some help understanding Emac's design. I use a lot of "word" = constructs where I *think* I should be using symbol. For example, if = I'm writing C code and I want to find foo but not foo_bar, I usually do = \ but really it seems that I should be doing \_ ... fine. = I can make that adjustment. But when I do incremental search, I often = hit ^w to pull in the next word but what I really want (often but not = always) is to pull in the next symbol (into the search string). So if = I'm sitting at this_that, I'd ilke to hit ^W (perhaps) and pull in = this_that instead of just this. >>=20 >> So, I started looking at isearch-yank-word-or-char and I was going to = concoct isearch-yank-symbol-or-char and got stuck-- at least briefly. = Because not only is _ marked as symbol, -, +, /, *, etc are marked as = symbol characters too. So now, I'm confused... >>=20 >> If I have: this this_that this-that >>=20 >> and search for \_ I hit the first and third this -- which is = exactly what I want. But how is it doing that since this_that and = this-that are the same as far as looking at the syntax table entries? = They are both wwww_wwww. >>=20 >> I'd like to understand how the \_< and \_> constructs work so I can = make my isearch-yank-symbol-or-char work in a consistent manner. >>=20 >> Thanks, >> Perry >>=20 >>=20 >>=20 --Apple-Mail-2-880524237 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii :-)  Never could smell.

On Mar 3, 2011, at 8:26 AM, MBR wrote:

Verses are made up of words and words are made up of symbols.  So the order should be "symbols words verses", not "symbols verses words".

Oh, you meant "versus" not "verses".  OK.  I'll shut up now.

    Mark

On 3/2/2011 7:20 PM, Perry Smith wrote:
I need some help understanding Emac's design.  I use a lot of "word" constructs where I *think* I should be using symbol.  For example, if I'm writing C code and I want to find foo but not foo_bar, I usually do \<foo\> but really it seems that I should be doing \_<foo\_> ... fine.  I can make that adjustment.  But when I do incremental search, I often hit ^w to pull in the next word but what I really want (often but not always) is to pull in the next symbol (into the search string).  So if I'm sitting at this_that, I'd ilke to hit ^W (perhaps) and pull in this_that instead of just this.

So, I started looking at isearch-yank-word-or-char and I was going to concoct isearch-yank-symbol-or-char and got stuck-- at least briefly.  Because not only is _ marked as symbol, -, +, /, *, etc are marked as symbol characters too.  So now, I'm confused...

If I have:  this  this_that  this-that

and search for \_<this\_> I hit the first and third this -- which is exactly what I want.  But how is it doing that since this_that and this-that are the same as far as looking at the syntax table entries?  They are both wwww_wwww.

I'd like to understand how the \_< and \_> constructs work so I can make my isearch-yank-symbol-or-char work in a consistent manner.

Thanks,
Perry




--Apple-Mail-2-880524237--