From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode?
Date: Wed, 21 May 2008 20:46:25 -0600 [thread overview]
Message-ID: <g12mpn$u1l$1@ger.gmane.org> (raw)
In-Reply-To: <004a01c8b573$4f9c29c0$0200a8c0__47416.9436296963$1210737166$gmane$org@us.oracle.com>
Drew Adams wrote:
> emacs -Q
> In *scratch*, type a backslash followed by a TAB and a letter:
>
> \ b
>
> Put the cursor on the letter.
> M-: (skip-syntax-backward "\\s-")
>
> The cursor is on the backslash. IOW, it skipped not only the
> whitespace but also the \, which should have escape syntax.
>
> This is the first time I've noticed this, so I'm guessing there is a
> good explanation and this behavior is somehow correct. But looking at
> the Elisp manual, I don't get that impression. Willing to learn...
The SYNTAX argument to skip-syntax-forward and -backward is not a
regexp.
The argument in the example above means to skip any character with any
of 3 syntax classes:
\ escape
s [not a valid syntax class]
- whitespace
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2008-05-22 2:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 3:33 bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode? Drew Adams
2008-05-22 2:46 ` Kevin Rodgers [this message]
2008-05-22 21:39 ` Drew Adams
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='g12mpn$u1l$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=239@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/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).