From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#13889: lenient loading, feature request Date: Thu, 15 Jul 2021 08:56:40 +0200 Message-ID: <2f169767-0ec9-bdb9-39ce-abee0747eb59@easy-emacs.de> References: <513771EC.5010908@easy-emacs.de> <83sj481ml5.fsf@gnu.org> <51378E07.2010705@easy-emacs.de> <871r80nkw6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="892"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Cc: 13889@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 15 08:57:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vJ4-000Ab5-26 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 08:57:14 +0200 Original-Received: from localhost ([::1]:48950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3vJ2-00039N-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 02:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3vIs-00039E-3x for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 02:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3vIr-0003Al-SU for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 02:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3vIr-0003m2-SI for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 02:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jul 2021 06:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13889 X-GNU-PR-Package: emacs Original-Received: via spool by 13889-submit@debbugs.gnu.org id=B13889.162633221014487 (code B ref 13889); Thu, 15 Jul 2021 06:57:01 +0000 Original-Received: (at 13889) by debbugs.gnu.org; 15 Jul 2021 06:56:50 +0000 Original-Received: from localhost ([127.0.0.1]:46596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vIg-0003lb-CD for submit@debbugs.gnu.org; Thu, 15 Jul 2021 02:56:50 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.134]:55149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vId-0003lN-U8 for 13889@debbugs.gnu.org; Thu, 15 Jul 2021 02:56:48 -0400 Original-Received: from [192.168.178.39] ([82.207.239.183]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N4NHS-1l2VIt2L6k-011Nnd; Thu, 15 Jul 2021 08:56:41 +0200 In-Reply-To: <871r80nkw6.fsf@gnus.org> Content-Language: en-US X-Provags-ID: V03:K1:GeH2EDIp4BKPxPvbKd2hJtZwSDASC2oxnni9wgvGuwNQJGTatbm jyS6xyamBZIjI9HbfjHb8jWTVdtLKJGNk9HRCIGmNAjZkt5YaxYoqnZrf1i2nxnsc4gnYDR n2YM81lbGIBxD25H7azxCUN6yQWVhI1Qy3vfk3OIlBMIRMZxqFOlIB7iMRXmSjH9F+CgbWX eOHiAc+swph+iCQoE7omg== X-UI-Out-Filterresults: notjunk:1;V03:K0:oZgTDQePH60=:PnG7oXOEPYyA+bfy8zLqVl XmRh+/nRMxL/GRP8BulxulunF9ire9dwBCeH31fD6qm1nCwfPd+UTvZ1leDuLRzGnW3yYKWZL k88ANrlBITAjt4ISkjlQgo2QxyLBXcmI0btD7D7CHYaKklcGpb1cBsGavxFIdB06uZii7zHpP qcOEjU/kq9qpCObk/sakEilKYa7D+XwqbJSS1k0+RDX39SFRaLqYgT+p4EGH5gQQYQu2PTGym tLfHwB3Ro1RbpgMLxb6/ZwWnrNmiI6DgQsO63tx2L+3OCmlfa9hbQUXr1gIfhqm+tIKWGGWqL ymeNpsSNL3FBtIQ1iqG13RAYqtX7aFjlAkWUSFq4BT9D77W5krAIVQO3dcJinl84Agp+UbFeo jDwatQUGJMQoePQKLZZ6FyAg3H9/p8w0hGSJ/XpRwPGX8dTUGS+cwedAKZXRZg4X1AacTZ0ME LxMjO+kC2HawhTswJysPnfuVXIMZW7wLt7HsHjHuzSb+Kbfwmvq3qdBANV/YQCJUAgIXEed4I B8/06jsa8wz8wJmuv81RHef1jUxOgRN400bZqZzZA57oeCouV79CVU/O2J/AQkbymkEbUNhpc 7MufX5iKukAf0gCD7DV8Wsqw1/rEkofGkJEkig8wX8yGgQHfh/J2499r9lWSS/ld/fI67o2sV IwWyAofyFQ4DhnL76i0J9I1VxPLW5TaZ31EBG9hgur0JszoPJHhpce8doMJC6yQyfh+UKn47T KM+RaiRzD+X81t8N8SAHJIpMrd/wVCzGHu5oXtTfllnNx8d3Ed1tFg/DKFFiP5Nan9Cefr0y X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210001 Archived-At: On 15.07.21 08:36, Lars Ingebrigtsen wrote: > Andreas Röhler writes: > >>> It might be a better idea to have a command that would continue >>> loading from where it stopped. This would allow the user to fix >>> manually whatever was broken, and then continue from there. >> Probably both is useful. >> Someone might face a deadline the very day. >> Emacs must work. No time to fix errors just now... >> Error must not be as simple as a missing parenthesis. >> Also imagine colleagues around, awaiting the result, wondering what >> the guy is doing ;) > Popping up the .emacs file with point where the error is would be more > helpful than the current: > > --- > Warning (initialization): An error occurred while loading ‘/home/larsi/.emacs’: > > Invalid read syntax: ), 1, 0 > --- > > I'm not sure how a general "continue loading" switch would work. It's > easy enough if there's a command that's erroring out -- we could ignore > the error and continue loading. But if it's a read-level error, then we > don't really know where to continue loading from. > > I guess we could advance point by one character and try again in a loop > -- that'd usually get us past the error points after a while... > Thought at something like (unwind-protect BODYFORM UNWINDFORMS...) here as (unwind-protect load-current load-remaining...)