all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#28113: 25.2; `ignore-errors' around `require'
@ 2017-08-16 20:11 Drew Adams
  2017-08-16 21:59 ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2017-08-16 20:11 UTC (permalink / raw)
  To: 28113

I'm guessing that there is not a bug here, as this seems to happen for
all Emacs versions I have.  But it seems like it should be a bug.  I
would like to understand it, in any case.

In crosshairs.el I require vline.el and hl-line+.el:

(require 'vline)
(require 'hl-line+)

In start.el I wrap requiring crosshairs.el with `ignore-errors'
(`condition-case', for compatibility with older releases):

(condition-case nil
   (require 'crosshairs nil t)
  (error nil))

If I remove vline.el from my load-path and then try to load
crosshairs.el then I get this error:

Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "vline")
  require(vline)
  byte-code("..." [require vline custom-declare-group column-highlight nil "..."] 20)
  require(col-highlight)
  byte-code("..." [require hl-line+ col-highlight custom-declare-group crosshairs nil "..." ...] 20)
  require(crosshairs nil t)

Why is that?  Shouldn't the `condition-case' cause the load error for
vline.el to be ignored, since it occurs as part of the loading of
crosshairs.el?

In GNU Emacs 25.2.1 (x86_64-w64-mingw32)
 of 2017-04-24 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
 'configure --without-dbus --without-compress-install 'CFLAGS=-O2
 -static -g3''





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-16 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.