GNU bug report logs - #17233
24.3.50.1; wrong match-data

Previous Next

Package: emacs;

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

Date: Thu, 10 Apr 2014 06:17:02 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50.1

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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: 24.3.50.1; wrong match-data
Date: Thu, 10 Apr 2014 08:20:56 +0200
Emacs -Q  24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2014-02-19

Cursor at beginning of string "asdf"

Evaluating
(looking-at "asdf")asdf

(match-string-no-properties 0) ==> "asdf"

korrect

(progn (looking-at "[1-3]")(message "%s" (match-string-no-properties 0))asdfs

Evaluating this should set match-data back to nil

It is still "asdf"





This bug report was last modified 11 years and 126 days ago.

Previous Next


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