GNU bug report logs - #24166
With --eval, errors in string-match-p do not produce backtraces (but errors in string-match do?!)

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Sat, 6 Aug 2016 01:58:02 UTC

Severity: normal

Tags: fixed

Merged with 16294, 23949

Found in versions 24.3.50, 25.0.95

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: 24166 <at> debbugs.gnu.org
Subject: bug#24166: With --eval, errors in string-match-p do not produce backtraces (but errors in string-match do?!)
Date: Fri, 5 Aug 2016 21:56:56 -0400
[Message part 1 (text/plain, inline)]
Hey bug-gnu-emacs,

Is the following a bug?

    # No backtrace?!
    $ emacs -Q  --batch --eval '(setq debug-on-error t)' --eval '(string-match-p nil "A")'
    Wrong type argument: stringp, nil

    # Yes backtrace?!?
    $ emacs -Q  --batch --eval '(setq debug-on-error t)' --eval '(string-match nil "A")'
    Debugger entered--Lisp error: (wrong-type-argument stringp nil)
      string-match(nil "A")
      eval((string-match nil "A"))
      ...

This isn't new, but it behaved differently in Emacs 24.5:

    $ emacs-24.5 -Q  --batch --eval '(setq debug-on-error t)' --eval '(string-match nil "A")'
    Debugger entered--Lisp error: (wrong-type-argument stringp nil)
      string-match(nil "A")
      eval((string-match nil "A"))
      ...

    $ emacs-24.5 -Q  --batch --eval '(setq debug-on-error t)' --eval '(string-match-p nil "A")'
    Args out of range: 0

Clément.

In GNU Emacs 25.1.50.7 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-07-20 built on clem-w50-mint
Repository revision: a1a0c208e3e895a6ea0942e8e5c4077faf12c7ad
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	Linux Mint 18 Sarah

[signature.asc (application/pgp-signature, attachment)]

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

Previous Next


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