From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 16 16:12:15 2017 Received: (at submit) by debbugs.gnu.org; 16 Aug 2017 20:12:15 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <07193cef-cdb9-4f39-a44e-920cf072411b@default> Date: Wed, 16 Aug 2017 13:11:56 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 25.2; `ignore-errors' around `require' X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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'' From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 16 17:59:24 2017 Received: (at 28113) by debbugs.gnu.org; 16 Aug 2017 21:59:24 +0000 Received: from localhost ([127.0.0.1]:41625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di6LU-0004bj-1Z for submit@debbugs.gnu.org; Wed, 16 Aug 2017 17:59:24 -0400 Received: from mail-oi0-f43.google.com ([209.85.218.43]:34204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di6LS-0004bQ-BP for 28113@debbugs.gnu.org; Wed, 16 Aug 2017 17:59:22 -0400 Received: by mail-oi0-f43.google.com with SMTP id x3so49753160oia.1 for <28113@debbugs.gnu.org>; Wed, 16 Aug 2017 14:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+cf4cChrOv5e2yh5Uz0fbchMdExe87YIEpdYu5gO0+w=; b=dhdZ+2ndRKahV9nowhtG2h2QFXwlLfxt1DTOX/MGKlNnA7qzFe0D5temG9lSwMT/lY 1WvEuc21qKNv/oEPKQU4jdwj1tkcCBb3qTgv9SVjXqDyho6PLCdplF+rJWoyY58AB1Vs boraQT1+s0jR6OJox2ktbjKTSOx1qZI3jRuZX0ze68/qDU7PJTwQAEo61yo6aLWudMF2 k9auOIO8GXbKb/gKFm81v3sGZ9shrCQgRgl3YyR670lrME9G4XKWCYbuhjbsm3Xd+DO9 U4MiEAh1KpnoqMbErmBLnwmqdgwT+z+C+rwFRcV39ixEIgBCkBGKtWHT9t4lNxOX0bZw LZLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+cf4cChrOv5e2yh5Uz0fbchMdExe87YIEpdYu5gO0+w=; b=rRMEKdq4W17lcaZCdsG5oW0Pvz0nrecchVOfAkpaPhiBS55sxiOwzq3kbCWrE90SPL YJlbFtcZ1jREdWh1meVRf+EPbqdTGPR1pvMmWYeBY8muJJyCHcHZFXhak2PHc8eRvkrl dQWj7DhRDov/Defd9At/RkbhAZjHRo0dsOJIVE85xGAtuHutGldJe/D2eeRWSGeZlCwf cOwqz8BCz5ou20AfnNDWvV1GEfAOkT20k5raKVS37byyJDWyzGKH5HtcREW0vjCNDVzo /jGiCPDmqTbaAkL95NjLBMI0L6jy7tmMViq4vGjqME/pdfT0OXAavCkK99/xepNNuLQS EzmA== X-Gm-Message-State: AHYfb5i/axzt0JIjdoCvyOAED67MVAu7z4ZOiVRHMS9uwOPQwM+M9Im3 F7I5Kmtvh/EmPKjDhcfClp/wF8+tXQ== X-Received: by 10.202.208.79 with SMTP id h76mr4140374oig.65.1502920756633; Wed, 16 Aug 2017 14:59:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.18.129 with HTTP; Wed, 16 Aug 2017 14:59:16 -0700 (PDT) In-Reply-To: <07193cef-cdb9-4f39-a44e-920cf072411b@default> References: <07193cef-cdb9-4f39-a44e-920cf072411b@default> From: Noam Postavsky Date: Wed, 16 Aug 2017 17:59:16 -0400 X-Google-Sender-Auth: urDprtOBk-TtN8Es_2u68tTPOR4 Message-ID: Subject: Re: bug#28113: 25.2; `ignore-errors' around `require' To: Drew Adams Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 28113 Cc: 28113@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) tags 28113 + unreproducible quit On Wed, Aug 16, 2017 at 4:11 PM, Drew Adams 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 16 18:39:46 2017 Received: (at 28113) by debbugs.gnu.org; 16 Aug 2017 22:39:46 +0000 Received: from localhost ([127.0.0.1]:41659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di6yY-0007WB-IJ for submit@debbugs.gnu.org; Wed, 16 Aug 2017 18:39:46 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:20595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di6yW-0007Vx-3X for 28113@debbugs.gnu.org; Wed, 16 Aug 2017 18:39:44 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v7GMdamD013014 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Aug 2017 22:39:37 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v7GMdaVl024721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Aug 2017 22:39:36 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v7GMdZAb001395; Wed, 16 Aug 2017 22:39:36 GMT MIME-Version: 1.0 Message-ID: Date: Wed, 16 Aug 2017 15:39:34 -0700 (PDT) From: Drew Adams To: Noam Postavsky Subject: RE: bug#28113: 25.2; `ignore-errors' around `require' References: <07193cef-cdb9-4f39-a44e-920cf072411b@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28113 Cc: 28113@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > tags 28113 + unreproducible > quit >=20 > 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) >=20 > 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") >=20 > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 16 19:17:50 2017 Received: (at control) by debbugs.gnu.org; 16 Aug 2017 23:17:50 +0000 Received: from localhost ([127.0.0.1]:41669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di7ZO-0008QK-J1 for submit@debbugs.gnu.org; Wed, 16 Aug 2017 19:17:50 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:36031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di7ZN-0008Q7-Or for control@debbugs.gnu.org; Wed, 16 Aug 2017 19:17:50 -0400 Received: by mail-it0-f50.google.com with SMTP id 77so24349151itj.1 for ; Wed, 16 Aug 2017 16:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=u2yyT/UrNyhahOEFd5k5k8BpAP4tTDL1ctlKOThwBmM=; b=lmuT9KEdAlfUycPtx/6lVEj5B6Vg61MvocB43VCEk3G1w/sNix0lnNV03pNm5X6stP I2HfYHU0XiUoMxJLUTC5lKd4Cnqrr1nIovU9bnQaVqbjYWys0ob3nXxX4ClV1y4uokVt V6IpqpfbK6SlvbVpNjvYzyzsVywBbnfBYKX1DKv6eafb0bzxDsI6GUdwxPpWQuJKCp2H PFYSQXakkjQZIGb4IWzWY+RqyizIB8+gSOdTyK438MCEl17U06iy/PHEskRCCJNIcAp6 xb6jpV//VT5nSaJ8kmYqqfLSRiDPPFl5uQX4kttCinyrKYJvos5ULpkzPCRBTUxm7o5e tQLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=u2yyT/UrNyhahOEFd5k5k8BpAP4tTDL1ctlKOThwBmM=; b=WnhJAS6v17kr2bsZHlbAkCbYbQlOOZKx040XtiehLbshHTj13XLi/10pO+Xa5wOnRN 2IGEiWGWSK/5jeNI4UCDAlhicNavbTFRk68yOQK3w9cU6otY/5XQW6vW3D/yrQ9Dg/4k 4qkcbm6y9uiydnzdCgBZWM3CP3uvQD2QSUq9nMZmvmGyJsW4Zwcx0b1CTgonDz2O6YvE n34DwBRIxHHNgtxthCC6FYR0oM7mCtdGR+294Ct60vr5BhcsycVpzPLyPsUrOrgx29sJ 1TcK44NcHDbuIy/sXCG7XR9bp8hzAKgpPYnZCRh7DOYgu3GMTcor33aQTNGAFGI32zdj 72WQ== X-Gm-Message-State: AHYfb5jMCwAMRR2dXAXD3hf8mbyUeBQj/O4aSXk1FGX7QfC7AiG0alkp c13mconS6/2gYwWS X-Received: by 10.36.94.15 with SMTP id h15mr70693itb.71.1502925463923; Wed, 16 Aug 2017 16:17:43 -0700 (PDT) Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id i190sm45193itb.3.2017.08.16.16.17.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Aug 2017 16:17:43 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #28113 Date: Wed, 16 Aug 2017 19:19:21 -0400 Message-ID: <87efsbyubq.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) close 28113 quit From unknown Mon Aug 18 15:39:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Sep 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator