From: npostavs@users.sourceforge.net
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 24907@debbugs.gnu.org
Subject: bug#24907: 26.0.50; Opening bracket in char-class :alnum:
Date: Wed, 09 Nov 2016 07:45:54 -0500 [thread overview]
Message-ID: <874m3gom7x.fsf@users.sourceforge.net> (raw)
In-Reply-To: <1318a0f3-ebef-345c-8af6-734dfdf71f4f@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Wed, 9 Nov 2016 09:53:00 +0100")
tags 24907 notabug
close 24907
quit
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>
> Behind some opening brackets:
>
> [[[[[
>
> Funktion below would skip backward over
>
> (defun my-skb ()
> (interactive)
> (skip-chars-backward "[[:alnum:]]"))
Yes, skip-chars-backward doesn't take a regexp, it takes a character
set. You wanted (skip-chars-backward "[:alnum:]")
(skip-chars-backward STRING &optional LIM)
Move point backward, stopping after a char not in STRING
Move point backward, stopping after a char not in STRING, or at pos LIM.
See ‘skip-chars-forward’ for details.
[...]
(skip-chars-forward STRING &optional LIM)
Move point forward, stopping before a char not in STRING, or at pos LIM.
STRING is like the inside of a ‘[...]’ in a regular expression
except that ‘]’ is never special and ‘\’ quotes ‘^’, ‘-’ or ‘\’
(but not at the end of a range; quoting is never needed there).
Thus, with arg "a-zA-Z", this skips letters stopping before first nonletter.
With arg "^a-zA-Z", skips nonletters stopping before first letter.
Char classes, e.g. ‘[:alpha:]’, are supported.
next prev parent reply other threads:[~2016-11-09 12:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 8:53 bug#24907: 26.0.50; Opening bracket in char-class :alnum: Andreas Röhler
2016-11-09 12:45 ` npostavs [this message]
2016-11-09 15:43 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874m3gom7x.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=24907@debbugs.gnu.org \
--cc=andreas.roehler@easy-emacs.de \
/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.