unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: "João Távora" <joaotavora@gmail.com>
Cc: "help-gnu-emacs@gnu.org List" <help-gnu-emacs@gnu.org>
Subject: Re: moving in js
Date: Thu, 09 Aug 2012 07:45:18 +0200	[thread overview]
Message-ID: <50234E6E.4060303@easy-emacs.de> (raw)
In-Reply-To: <CALDnm53cCw7PNScO61=SjT12n-Jozca9L=MaTwGZ4Kw1F6DudA@mail.gmail.com>

Am 08.08.2012 19:37, schrieb João Távora:
> On Wed, Aug 8, 2012 at 6:37 AM, Andreas Röhler
> <andreas.roehler@easy-emacs.de> wrote:
>
>> Cursor on "i" in (spiel[i])
>>
>> C-M-b -->
>>
>> Debugger entered--Lisp error: (scan-error "Containing expression ends
>> prematurely" 349 349)
>
> The "\n" case moving to ".csv" is indeed an unexpected move, but I
> would say this error
> error is the expected behaviour. I mean, you can't `backward-sexp` there to go
> back one balanced sexp from 'i', so an error is expected, and the character
> positions are useful.
>
> --
> João
>

"\n" composes a balanced expression, obviously doublequotes are a matching pair of delimiters:

  Balanced expressions typically include individual symbols, numbers, and string constants, as well as pieces of code enclosed in a matching pair of delimiters.
http://www.gnu.org/software/emacs/manual/html_node/emacs/Expressions.html

also seen from usage, that command should never fail, unless beginning or end of buffers are reached.

backward-sexp can't deal with it, but that's just a bug.

Andreas



  reply	other threads:[~2012-08-09  5:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07 19:11 moving in js Andreas Röhler
2012-08-07 20:33 ` Peter Dyballa
2012-08-08  5:37   ` Andreas Röhler
2012-08-08 17:37     ` João Távora
2012-08-09  5:45       ` Andreas Röhler [this message]
     [not found]         ` <CALDnm512KSuJw+ZScjnn59x7OZLnWOfyZzLVBe_4CiLqdKTAkA@mail.gmail.com>
2012-08-09 16:20           ` Andreas Röhler
     [not found]             ` <CALDnm537EEG=6s9KJrqSZN35zBTg=GLcE7OBJy8h=N4zAD03cA@mail.gmail.com>
2012-08-09 17:19               ` Andreas Röhler
2012-08-10  1:14                 ` João Távora
2012-08-10  6:45                   ` Andreas Röhler
     [not found]                     ` <CALDnm52urB5ZD7gkDeGE4irOn+J-EWzLVcDfEetZVrf95ZESEA@mail.gmail.com>
2012-08-10 11:15                       ` Andreas Röhler

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=50234E6E.4060303@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joaotavora@gmail.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.
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).