all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tom Tromey <tom@tromey.com>
Cc: 10460@debbugs.gnu.org, Leo <sdl.web@gmail.com>
Subject: bug#10460: 24.0.92; css-mode sexp movement
Date: Tue, 30 Dec 2014 18:03:07 -0500	[thread overview]
Message-ID: <jwvlhloagqa.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87oaqlt0di.fsf@tromey.com> (Tom Tromey's message of "Tue, 30 Dec 2014 12:15:37 -0700")

Tom> Also conformity with other modes is a distinct plus
Stefan> It's consistent with Lisp code (because the new behavior only occurs for
Stefan> situations which don't exist in Lisp).
> That's cheating!  Any behavior would be compatible with what Lisp does
> here, according to the same logic.

I wouldn't call it cheating.  The behavior of `forward-sexp' was really
only defined for Lisp.  Extending it to infix languages can be done in
various ways.  Before SMIE, it was done in the way that's simpler to
implement, but it makes you lose the ability to jump over any nodes of
the AST which aren't "atomic" nor wrapped in parentheses (in Lisp,
this is no problem since all nodes of the AST are either "atomic" or
wrapped in parentheses).

In SMIE I decided to extend it in a different way, which takes more work
on the implementation side, but offers more functionality.
Of course "more functionality" inevitably means "different", so some
users are bound to be annoyed.

Stefan> You can still have that if you set forward-sexp-function to nil.
> Yeah.  I'm going to close this bug.

Thanks,


        Stefan





      reply	other threads:[~2014-12-30 23:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09  1:40 bug#10460: 24.0.92; css-mode sexp movement Leo
2012-01-09  9:45 ` Deniz Dogan
2012-01-17  4:43   ` Leo
2014-12-29  3:53 ` Tom Tromey
2014-12-29 14:50   ` Stefan Monnier
2014-12-29 16:35     ` Tom Tromey
2014-12-29 19:13       ` Stefan Monnier
2014-12-29 19:20         ` Tom Tromey
2014-12-30  2:46           ` Stefan Monnier
2014-12-30 19:15             ` Tom Tromey
2014-12-30 23:03               ` Stefan Monnier [this message]

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

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

  git send-email \
    --in-reply-to=jwvlhloagqa.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=10460@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    --cc=tom@tromey.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.