From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: superword-mode Date: Fri, 29 Mar 2013 19:50:12 +0100 Message-ID: <5155E264.3080807@online.de> 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> <87li96qdpc.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1364582953 3070 80.91.229.3 (29 Mar 2013 18:49:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Mar 2013 18:49:13 +0000 (UTC) Cc: Ted Zlatanov , Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 29 19:49: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 1ULeMo-0002H5-Ln for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2013 19:49:34 +0100 Original-Received: from localhost ([::1]:44153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULeMQ-0000cy-HE for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2013 14:49:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULeMG-0000cS-Tp for emacs-devel@gnu.org; Fri, 29 Mar 2013 14:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULeMD-0004zd-HH for emacs-devel@gnu.org; Fri, 29 Mar 2013 14:49:00 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:59745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULeMD-0004zO-5P for emacs-devel@gnu.org; Fri, 29 Mar 2013 14:48:57 -0400 Original-Received: from [192.168.178.21] (brln-4d0c1c78.pool.mediaWays.net [77.12.28.120]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MUgUR-1UD1PA24l1-00RUFd; Fri, 29 Mar 2013 19:48:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <87li96qdpc.fsf@lifelogs.com> X-Provags-ID: V02:K0:Cr0X9grHm78bgai5yiD1pbLR8ypON6ovimwyv74Voq/ Hwkf6rcAIDIiyqTt6m82/T+RVVKTVLgVhVLxHqmjCjg9tpCf6d gnPGv7qq0YHWl8aGEXeCiTQc7ULWzng5e0fEt0vFdxOZuhI92g vQpRV2tUeHCJ23uCoZg8pOu5Hl/IhU51yt5DqM9zQLD8PEZy3G Q9RJgJ7Wihil3R/OrNfJe8+p1+XCrgba20JN9rcHc6eP9WmVxk OzYbDuL/Spv6W+25l5DlC1Ij+YghLKBrZVjqoPhelFLbPVGm8i 2SJQHEnAmJbKtsV/OihEZbgNO+OKFRzoEDwLH8ohH9nO8Qyltm STzfog85ph0wAPe6ZNKY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 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:158440 Archived-At: Am 29.03.2013 19:10, schrieb Ted Zlatanov: > 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. That would help, but not make the use of forward-sexp perfect for your purpose. Simply because a sexp is still a wider object than the kind you address. > > 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 > Can't see any comment from Stefan with this meaning. CC again, forgot previously. > 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? Yes. To be switched on/off with the mode. Maybe I'm misunderstanding the purpose? 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, Sure it will work mostly. It might work always - beside of the bugs still unseen :) Cheers except through strings. In Lisp it jumps too > much.) > > Ted > > >