all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24907: 26.0.50; Opening bracket in char-class :alnum:
@ 2016-11-09  8:53 Andreas Röhler
  2016-11-09 12:45 ` npostavs
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2016-11-09  8:53 UTC (permalink / raw)
  To: 24907

In GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5)
  of 2016-10-11


Behind some opening brackets:

[[[[[

Funktion below would skip backward over

(defun my-skb ()
   (interactive)
   (skip-chars-backward "[[:alnum:]]"))









^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24907: 26.0.50; Opening bracket in char-class :alnum:
  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
  2016-11-09 15:43   ` Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: npostavs @ 2016-11-09 12:45 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 24907

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24907: 26.0.50; Opening bracket in char-class :alnum:
  2016-11-09 12:45 ` npostavs
@ 2016-11-09 15:43   ` Andreas Röhler
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2016-11-09 15:43 UTC (permalink / raw)
  To: npostavs; +Cc: 24907



On 09.11.2016 13:45, npostavs@users.sourceforge.net wrote:
> 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.

Ah, thanks and sorry for the noise.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-09 15:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-11-09 15:43   ` Andreas Röhler

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.