GNU bug report logs - #24907
26.0.50; Opening bracket in char-class :alnum:

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 9 Nov 2016 08:45:02 UTC

Severity: normal

Tags: notabug

Found in version 26.0.50

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24907 in the body.
You can then email your comments to 24907 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24907; Package emacs. (Wed, 09 Nov 2016 08:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 09 Nov 2016 08:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; Opening bracket in char-class :alnum:
Date: Wed, 9 Nov 2016 09:53:00 +0100
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:]]"))








Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24907; Package emacs. (Wed, 09 Nov 2016 12:46:01 GMT) Full text and rfc822 format available.

Message #8 received at 24907 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 24907 <at> debbugs.gnu.org
Subject: Re: bug#24907: 26.0.50; Opening bracket in char-class :alnum:
Date: Wed, 09 Nov 2016 07:45:54 -0500
tags 24907 notabug
close 24907
quit

Andreas Röhler <andreas.roehler <at> 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.




Added tag(s) notabug. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Wed, 09 Nov 2016 12:46:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 24907 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Wed, 09 Nov 2016 12:46:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24907; Package emacs. (Wed, 09 Nov 2016 15:35:02 GMT) Full text and rfc822 format available.

Message #15 received at 24907 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: npostavs <at> users.sourceforge.net
Cc: 24907 <at> debbugs.gnu.org
Subject: Re: bug#24907: 26.0.50; Opening bracket in char-class :alnum:
Date: Wed, 9 Nov 2016 16:43:03 +0100

On 09.11.2016 13:45, npostavs <at> users.sourceforge.net wrote:
> tags 24907 notabug
> close 24907
> quit
>
> Andreas Röhler <andreas.roehler <at> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 08 Dec 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.