From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: superword-mode Date: Fri, 29 Mar 2013 14:10:39 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87li96qdpc.fsf@lifelogs.com> References: <87wqt0xqiy.fsf@lifelogs.com> <87sj3ny4ca.fsf@lifelogs.com> <87ehf7zid3.fsf@fleche.redhat.com> <87obeby2ph.fsf@lifelogs.com> <878v5fxzjg.fsf@lifelogs.com> <871ub7xn7e.fsf@lifelogs.com> <87r4j2v7t8.fsf@lifelogs.com> <87zjxqt21y.fsf_-_@lifelogs.com> <87zjxnqgec.fsf@lifelogs.com> <87txnuqqvb.fsf@lifelogs.com> <5155BFFC.10609@online.de> <87ppyiqhqu.fsf@lifelogs.com> <5155D410.8030904@online.de> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1364580672 12863 80.91.229.3 (29 Mar 2013 18:11:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Mar 2013 18:11:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 29 19:11:39 2013 Return-path: Envelope-to: ged-emacs-devel@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 1ULdm7-0002xm-2U for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2013 19:11:39 +0100 Original-Received: from localhost ([::1]:60550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULdli-0007Fo-Pu for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2013 14:11:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULdla-0007Ec-7K for emacs-devel@gnu.org; Fri, 29 Mar 2013 14:11:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULdlY-0000E4-H0 for emacs-devel@gnu.org; Fri, 29 Mar 2013 14:11:06 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULdlY-0000Dq-AT for emacs-devel@gnu.org; Fri, 29 Mar 2013 14:11:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ULdlp-0002VK-4y for emacs-devel@gnu.org; Fri, 29 Mar 2013 19:11:21 +0100 Original-Received: from pool-72-93-31-86.bstnma.east.verizon.net ([72.93.31.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Mar 2013 19:11:21 +0100 Original-Received: from tzz by pool-72-93-31-86.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Mar 2013 19:11:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-93-31-86.bstnma.east.verizon.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:g9TUJQso26Z+8a7QbhWV5TbECB8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158438 Archived-At: On Fri, 29 Mar 2013 18:49:04 +0100 Andreas Röhler wrote: AR> IMO that can't work, as forward-sexp has a long-time bug wrt to AR> strings. AR> bug#13973: Subject: 24.3; thingatpt.el, end-of-sexp I'm not convinced that the bug shouldn't be fixed instead. AR> BTW why not simply change the syntax-class using modify-syntax-entry? >> >> That was my original approach, but it's incorrect according to Stefan. >> AR> Oh, because python-mode.el proceeds that way? :) AR> Can't see that stand in this thread, will cc it to him. Start with http://thread.gmane.org/gmane.emacs.diffs/119990/focus=158194 or gather the thread from this article upwards. For `cfengine-mode' I modified all the motion to use \_> and \_< instead of \> and \< AR> Assume it's a misunderstanding, as mode-specific syntax-changes are common. AR> BTW forward-sexp docu says it's not usable from inside a string. Once the bug is fixed, AR> that might be dropped. So you're saying that `superword-mode' should simply add "_" to the word syntax? Or something else? Sorry to be dense. Another possibility is to make the motion context-sensitive, so we move by word inside strings or comments but by sexp or symbol outside them. (I actually discovered I like using `forward-sexp' with `superword-mode' in non-Lisp languages, except through strings. In Lisp it jumps too much.) Ted