From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MBR Newsgroups: gmane.emacs.help Subject: Re: symbols verses words Date: Thu, 03 Mar 2011 09:26:58 -0500 Message-ID: <4D6FA532.7090109@arlsoft.com> References: <06BF1211-A1CA-4E57-ADF4-8C89EF6ACDE1@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------000706020204090207070903" X-Trace: dough.gmane.org 1299162481 31211 80.91.229.12 (3 Mar 2011 14:28:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 14:28:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 15:27:57 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 1Pv9VU-000553-Me for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 15:27:57 +0100 Original-Received: from localhost ([127.0.0.1]:39028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv9VT-00056u-Qk for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 09:27:55 -0500 Original-Received: from [140.186.70.92] (port=58539 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv9Uk-00053z-T4 for help-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:27:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv9Ug-0000rV-6s for help-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:27:11 -0500 Original-Received: from cario.hostforweb.net ([66.225.230.82]:52730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv9Ug-0000qe-13 for help-gnu-emacs@gnu.org; Thu, 03 Mar 2011 09:27:06 -0500 Original-Received: from c-24-61-86-182.hsd1.ma.comcast.net ([24.61.86.182]:3853 helo=[127.0.0.1]) by cario.hostforweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Pv9Ua-0000Ek-Fh; Thu, 03 Mar 2011 08:27:00 -0600 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: <06BF1211-A1CA-4E57-ADF4-8C89EF6ACDE1@gmail.com> X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cario.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - arlsoft.com X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.225.230.82 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:79746 Archived-At: This is a multi-part message in MIME format. --------------000706020204090207070903 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 "vers_u_s" not "vers_e_s". 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 \ 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. > > 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 \_ 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 > > > --------------000706020204090207070903 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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



--------------000706020204090207070903--