From: Drew Adams <drew.adams@oracle.com>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: 28113@debbugs.gnu.org
Subject: bug#28113: 25.2; `ignore-errors' around `require'
Date: Wed, 16 Aug 2017 15:39:34 -0700 (PDT) [thread overview]
Message-ID: <e32ef7ee-1fb7-4de8-a18e-89fd7a73c9ad@default> (raw)
In-Reply-To: <CAM-tV-_jH_WeLsiMT-k7hsEWfdD78KhVjQhUoqvD-q0Ysb+0og@mail.gmail.com>
> tags 28113 + unreproducible
> quit
>
> 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.
OK, I won't worry about it. It's actually more complicated, and I
don't have the time or worry to track it down more.
FYI - The files all exist and are in my load path, when I byte-compile
them. If I then start with emacs -Q and set the load-path so that it
can see all except vline.el (which is in a different dir) then the error
is raised.
I'm guessing that it is because of the files being compiled (no error
was raised when compiling because the load-path then was fuller, picking
up vline.el).
Also (perhaps relevant), the condition-case is itself not at top level
but is wrapped in a (when...) test for an emacs-major-version minimum.
Anyway, thanks for taking a look.
prev parent reply other threads:[~2017-08-16 22:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-16 20:11 bug#28113: 25.2; `ignore-errors' around `require' Drew Adams
2017-08-16 21:59 ` Noam Postavsky
2017-08-16 22:39 ` Drew Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e32ef7ee-1fb7-4de8-a18e-89fd7a73c9ad@default \
--to=drew.adams@oracle.com \
--cc=28113@debbugs.gnu.org \
--cc=npostavs@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.