From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: symbols verses words Date: Fri, 04 Mar 2011 23:36:53 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299300144 482 80.91.229.12 (5 Mar 2011 04:42:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 04:42:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 05:42:20 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 1PvjJr-0008QK-HX for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 05:42:19 +0100 Original-Received: from localhost ([127.0.0.1]:39780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvjJr-0004HL-5E for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Mar 2011 23:42:19 -0500 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Injection-Info: mx03.eternal-september.org; posting-host="WMKA3d+Qi5+cfHdXm7nG3Q"; logging-data="5969"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JUkQzw4x4KXwu64+A7H59" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:04zkYDL+1yRRjbBaNSa6PSWIo+g= sha1:3VWuVpR/bq//dJfnzQCJHyv99n8= Original-Xref: usenet.stanford.edu gnu.emacs.help:185621 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:79776 Archived-At: > 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... Which syntax is assigned to which char depends on the major mode. What you describe, for example, is not true of C-mode buffers. > If I have: this this_that this-that > and search for \_ I hit the first and third this -- which is exactly > what I want. I suspect this test was not performed in the same buffer as the one in which you checked the syntax of those chars. Stefan