From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#28113: 25.2; `ignore-errors' around `require' Date: Wed, 16 Aug 2017 13:11:56 -0700 (PDT) Message-ID: <07193cef-cdb9-4f39-a44e-920cf072411b@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1502914503 26974 195.159.176.226 (16 Aug 2017 20:15:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 20:15:03 +0000 (UTC) To: 28113@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 22:14:57 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di4iP-0006eh-2i for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 22:14:57 +0200 Original-Received: from localhost ([::1]:46182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di4iV-0006sG-H2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 16:15:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di4ge-0005MP-Fp for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:13:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di4gY-000753-LK for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:13:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32886) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1di4gY-00074z-IN for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1di4gY-0001ut-Cl for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Aug 2017 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28113 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15029143357304 (code B ref -1); Wed, 16 Aug 2017 20:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Aug 2017 20:12:15 +0000 Original-Received: from localhost ([127.0.0.1]:41567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di4fm-0001tk-SP for submit@debbugs.gnu.org; Wed, 16 Aug 2017 16:12:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di4fk-0001tV-Ka for submit@debbugs.gnu.org; Wed, 16 Aug 2017 16:12:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di4fe-0006lp-Mv for submit@debbugs.gnu.org; Wed, 16 Aug 2017 16:12:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1di4fe-0006lj-Jt for submit@debbugs.gnu.org; Wed, 16 Aug 2017 16:12:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di4fd-0004Xf-IN for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di4fa-0006kT-Bq for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:12:05 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30988) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1di4fa-0006ig-2m for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 16:12:02 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v7GKBwnt018428 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 Aug 2017 20:11:59 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v7GKBwrJ000398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 Aug 2017 20:11:58 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v7GKBwDn027407 for ; Wed, 16 Aug 2017 20:11:58 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135840 Archived-At: 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 cros= shairs 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=3D-O2 -static -g3''