GNU bug report logs - #28113
25.2; `ignore-errors' around `require'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 16 Aug 2017 20:13:02 UTC

Severity: minor

Tags: unreproducible

Found in version 25.2

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 28113 <at> debbugs.gnu.org
Subject: Re: bug#28113: 25.2; `ignore-errors' around `require'
Date: Wed, 16 Aug 2017 17:59:16 -0400
tags 28113 + unreproducible
quit

On Wed, Aug 16, 2017 at 4:11 PM, Drew Adams <drew.adams <at> oracle.com> wrote:
> I'm guessing that there is not a bug here, as this seems to happen for
> all Emacs versions I have.

Works for me. I tried

    emacs -Q -f toggle-debug-on-error -l start.el

where start.el has

    (condition-case err
        (let ((load-path (cons default-directory load-path)))
          (require 'load-some-nonexistent-files))
      (error (message "caught error: %S" err)))

And load-some-nonexistent-files.el has

    (require 'there-is-no-such-file)

    (provide 'load-some-nonexistent-files)

I get

    Debug on Error enabled globally
    caught error: (file-error "Cannot open load file"
                  "no such file or directory"
                  "there-is-no-such-file")

in *Messages*.


Tested in 24.3 and 25.1.




This bug report was last modified 7 years and 340 days ago.

Previous Next


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