From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: making curly apostrophe part of a word Date: Tue, 10 Sep 2013 21:39:22 -0600 Message-ID: References: <877geud5t6.fsf@ericabrahamsen.net> <5229A58D.7080600@easy-emacs.de> <87mwnq9sq5.fsf@ericabrahamsen.net> <5229B066.3020105@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1378870737 4938 80.91.229.3 (11 Sep 2013 03:38:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2013 03:38:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 11 05:38:58 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJbGb-0001LX-Vg for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 05:38:58 +0200 Original-Received: from localhost ([::1]:32796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJbGb-0007ee-Gj for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Sep 2013 23:38:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJbGK-0007eY-QN for help-gnu-emacs@gnu.org; Tue, 10 Sep 2013 23:38:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJbGE-0001Bl-LZ for help-gnu-emacs@gnu.org; Tue, 10 Sep 2013 23:38:40 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJbGE-0001Bb-Fl for help-gnu-emacs@gnu.org; Tue, 10 Sep 2013 23:38:34 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VJbGC-0000kR-Aw for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 05:38:32 +0200 Original-Received: from 70-59-17-50.hlrn.qwest.net ([70.59.17.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Sep 2013 05:38:32 +0200 Original-Received: from kevin.d.rodgers by 70-59-17-50.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Sep 2013 05:38:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-17-50.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <5229B066.3020105@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93322 Archived-At: On 9/6/13 4:37 AM, Andreas Röhler wrote: > Am 06.09.2013 11:58, schrieb Eric Abrahamsen: >> Andreas Röhler writes: >>> Am 06.09.2013 04:47, schrieb Eric Abrahamsen: >>>> In certain modes (actually just certain files) I'd like the `’' >>>> character to be treated the same as a `'' character with respect to word >>>> movement: ie I'd like M-f to skip over the entirety of both "don't" and >>>> "don’t". I'm editing externally-created files, and don't have the >>>> liberty of changing this. >>>> >>>> I thought this would do it: >>>> >>>> (modify-syntax-entry ?’ "w") >>>> >>> >>> Works for me in current buffer. `forward-word' passes as expected. >>> Which command fails for you? >> >> `forward-word' fails... Hang on, I'll do the emacs -Q dance and see >> what's going on. This was originally in an html-mode buffer, but I don't >> see why that would matter as long as no third argument was passed to >> `modify-syntax-entry'. > > It affects the current buffer only, not the mode in other buffers when done that > way - maybe that's it? Not according to its doc string: The syntax is changed only for table SYNTAX-TABLE, which defaults to the current buffer's syntax table. Different buffers in the same major mode usually share the same syntax table. -- Kevin Rodgers Denver, Colorado, USA