unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: mode-specific sexps
Date: Mon, 11 Oct 2004 18:27:01 GMT	[thread overview]
Message-ID: <jwvd5zpp128.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.2316.1097365320.2017.help-gnu-emacs@gnu.org

> Note that the syntax of sexps is not quite right for use in all
> modes.  For example, <1000 is considered to be one sexp and you can
> legitimately set it in lisp modes -- (setq <1000 10) -- however, in
> LaTeX mode I think this should be regarded as two sexps, a `<'
> together with a `1000'.  Advice on to change the definition of a
> sexp for LaTeX mode would be appreciated.  My initial investigations
> led to `scan-sexps' but this is in C code and I'm hesitant about
> messing with that if I don't need to.

Read the section about syntax-tables in the elisp manual.
It won't answer your question, but it should hopefully help you rewrite your
question so we can give you a more useful answer.

If the question was

   how do I get (forward-sexp 2) to step over "<1111", then the answer is
   somewhere between "you can't" and "maybe try forward-sexp-function".


-- Stefan

       reply	other threads:[~2004-10-11 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2316.1097365320.2017.help-gnu-emacs@gnu.org>
2004-10-11 18:27 ` Stefan Monnier [this message]
2004-10-09 23:34 mode-specific sexps Joe Corneli

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=jwvd5zpp128.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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).