unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Cc: Ted Zlatanov <tzz@lifelogs.com>,
	Stefan Monnier <monnier@IRO.UMontreal.CA>
Subject: Re: superword-mode
Date: Fri, 29 Mar 2013 19:50:12 +0100	[thread overview]
Message-ID: <5155E264.3080807@online.de> (raw)
In-Reply-To: <87li96qdpc.fsf@lifelogs.com>

Am 29.03.2013 19:10, schrieb Ted Zlatanov:
> On Fri, 29 Mar 2013 18:49:04 +0100 Andreas Röhler <andreas.roehler@online.de> 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
>
>
>




  reply	other threads:[~2013-03-29 18:50 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1UIiBH-0005sm-Vy@vcs.savannah.gnu.org>
2013-03-21 23:44 ` [Emacs-diffs] /srv/bzr/emacs/trunk r112104: * progmodes/cfengine.el (cfengine-common-syntax): Add "_" to word syntax Stefan Monnier
2013-03-21 23:49   ` Ted Zlatanov
2013-03-22  1:32     ` Stefan Monnier
2013-03-22 13:03       ` Ted Zlatanov
2013-03-22 13:14         ` Tom Tromey
2013-03-22 13:38           ` Ted Zlatanov
2013-03-22 14:18             ` Stefan Monnier
2013-03-22 14:46               ` Ted Zlatanov
2013-03-22 17:30                 ` Stefan Monnier
2013-03-22 19:13                   ` Ted Zlatanov
2013-03-23 16:01                     ` Stefan Monnier
2013-03-26  9:17                       ` Ted Zlatanov
2013-03-26 17:06                         ` Stefan Monnier
2013-03-26 19:04                           ` superword-mode (was: [Emacs-diffs] /srv/bzr/emacs/trunk r112104: * progmodes/cfengine.el (cfengine-common-syntax): Add "_" to word syntax.) Ted Zlatanov
2013-03-27  1:23                             ` superword-mode Stefan Monnier
2013-03-27  3:18                               ` superword-mode Masatake YAMATO
2013-03-27  9:31                                 ` superword-mode Andreas Schwab
2013-03-27 13:06                                 ` superword-mode Ted Zlatanov
2013-03-27 13:14                                 ` superword-mode Stefan Monnier
2013-03-27 13:04                               ` superword-mode Ted Zlatanov
2013-03-27 13:50                                 ` superword-mode Stefan Monnier
2013-03-27 14:06                                   ` superword-mode Ted Zlatanov
2013-03-27 15:03                             ` superword-mode Davis Herring
2013-03-27 15:19                               ` superword-mode Ted Zlatanov
2013-03-27 15:33                                 ` superword-mode Ted Zlatanov
2013-03-27 16:33                                   ` superword-mode Stefan Monnier
2013-03-27 19:31                                     ` superword-mode Ted Zlatanov
2013-03-27 22:23                                       ` superword-mode Stefan Monnier
2013-03-28 23:00                             ` superword-mode Ted Zlatanov
2013-03-29 13:26                               ` superword-mode Ted Zlatanov
2013-03-29 16:23                                 ` superword-mode Andreas Röhler
2013-03-29 16:43                                   ` superword-mode Ted Zlatanov
2013-03-29 17:49                                     ` superword-mode Andreas Röhler
2013-03-29 18:10                                       ` superword-mode Ted Zlatanov
2013-03-29 18:50                                         ` Andreas Röhler [this message]
2013-03-29 19:04                                           ` superword-mode Ted Zlatanov
2013-03-29 20:16                                 ` superword-mode Davis Herring
2013-03-29 21:18                               ` superword-mode Stefan Monnier
2013-03-30  1:34                                 ` superword-mode Ted Zlatanov
2013-03-30  1:36                                   ` superword-mode Ted Zlatanov
2013-03-30  6:28                                 ` superword-mode Andreas Röhler
2013-03-22 14:13         ` [Emacs-diffs] /srv/bzr/emacs/trunk r112104: * progmodes/cfengine.el (cfengine-common-syntax): Add "_" to word syntax Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5155E264.3080807@online.de \
    --to=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=tzz@lifelogs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).