From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: making curly apostrophe part of a word Date: Fri, 06 Sep 2013 17:58:42 +0800 Message-ID: <87mwnq9sq5.fsf@ericabrahamsen.net> References: <877geud5t6.fsf@ericabrahamsen.net> <5229A58D.7080600@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1378461508 23336 80.91.229.3 (6 Sep 2013 09:58:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 09:58:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 06 11:58:30 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 1VHsoA-0007QU-0d for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 11:58:30 +0200 Original-Received: from localhost ([::1]:36312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHso9-0007DR-Na for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Sep 2013 05:58:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHsns-00078A-Mz for help-gnu-emacs@gnu.org; Fri, 06 Sep 2013 05:58:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHsnm-0005Ql-G5 for help-gnu-emacs@gnu.org; Fri, 06 Sep 2013 05:58:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHsnm-0005QG-83 for help-gnu-emacs@gnu.org; Fri, 06 Sep 2013 05:58:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VHsnh-0007E1-NF for help-gnu-emacs@gnu.org; Fri, 06 Sep 2013 11:58:01 +0200 Original-Received: from 114.252.245.6 ([114.252.245.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Sep 2013 11:58:01 +0200 Original-Received: from eric by 114.252.245.6 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Sep 2013 11:58:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.252.245.6 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:ASFoY9lm/EBYe253Fc9I7fn/hlQ= 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:93285 Archived-At: 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'. Thanks, E