From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Making forward-word work with curly apostrophes Date: Sun, 2 Aug 2009 13:40:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249283544 20346 80.91.229.12 (3 Aug 2009 07:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2009 07:12: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 Mon Aug 03 09:12:17 2009 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 1MXriS-0006Tl-LA for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 09:12:16 +0200 Original-Received: from localhost ([127.0.0.1]:36784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXriR-0003Ko-V3 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 03:12:15 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l35g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1249245654 31633 127.0.0.1 (2 Aug 2009 20:40:54 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 2 Aug 2009 20:40:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l35g2000pra.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.37 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171499 X-Mailman-Approved-At: Mon, 03 Aug 2009 03:11:55 -0400 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:66692 Archived-At: On Aug 2, 1:19 pm, Ian Eure wrote: > If I have a text-mode buffer with the following two words: > > 1. I've > 2. I=E2=80=99ve > > forward-word skips over "I've," but treats "I=E2=80=99ve" as _three_ word= s. in my emacs23, it treats the second one as 2 words, not 3. My emacs version is: GNU Emacs 23.0.94.1 (i386-mingw-nt6.0.6002) of 2009-05-28 on LENNART-69DE564 (patched) just tested on my carbon emacs which is emacs 22. Same behavior. i work with text having curly quotes in the past several years, i don't recall emacs treating it as 3 words with forward-word. you prob have some customization that does that? tried starting with - Q? Xah =E2=88=91 http://xahlee.org/ =E2=98=84 > I > seem to recall that forward-char skips over characters with word > syntax until it finds one with non-word-syntax, but that doesn't seem > to be the case here. I set =E2=80=99 to have the same syntax as ' with: > > (modify-syntax-entry ?=E2=80=99 "w p") > > But forward-word still treats it as three words. All works well if I do: > > (skip-syntax-forward "w") > > What is forward-word doing, and how can I make it treat =E2=80=99 as part= of > my word? > > - Ian