unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13889: lenient loading, feature request
@ 2013-03-06 16:42 Andreas Röhler
  2013-03-06 17:09 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Röhler @ 2013-03-06 16:42 UTC (permalink / raw)
  To: 13889

Hi all,

when Emacs starts, sometimes it raises an error, for example if init loads a file where
paren didn't match when saved.

Unfortunately Emacs doesn't proceed than with loading the remaining stuff from init.
User might be left with a core Emacs.

Thus user is more or less compelled to look for the error, nonewithstanding of other tasks, also
sometimes that kind of error is hidden, it might take time to spot it.

Would welcome a feature "lenient loading", which signals the error, but goes on, tries to load the
remaining stuff from init.

Best regards,

Andreas Röhler






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

* bug#13889: lenient loading, feature request
  2013-03-06 16:42 bug#13889: lenient loading, feature request Andreas Röhler
@ 2013-03-06 17:09 ` Eli Zaretskii
  2013-03-06 18:42   ` Andreas Röhler
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2013-03-06 17:09 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 13889

> Date: Wed, 06 Mar 2013 17:42:20 +0100
> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
> 
> Would welcome a feature "lenient loading", which signals the error, but goes on, tries to load the
> remaining stuff from init.

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.






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

* bug#13889: lenient loading, feature request
  2013-03-06 17:09 ` Eli Zaretskii
@ 2013-03-06 18:42   ` Andreas Röhler
  2021-07-15  6:36     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Röhler @ 2013-03-06 18:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 13889

Am 06.03.2013 18:09, schrieb Eli Zaretskii:
>> Date: Wed, 06 Mar 2013 17:42:20 +0100
>> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
>>
>> Would welcome a feature "lenient loading", which signals the error, but goes on, tries to load the
>> remaining stuff from init.
>
> 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 ;)







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

* bug#13889: lenient loading, feature request
  2013-03-06 18:42   ` Andreas Röhler
@ 2021-07-15  6:36     ` Lars Ingebrigtsen
  2021-07-15  6:56       ` Andreas Röhler
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-15  6:36 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 13889

Andreas Röhler <andreas.roehler@easy-emacs.de> 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...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#13889: lenient loading, feature request
  2021-07-15  6:36     ` Lars Ingebrigtsen
@ 2021-07-15  6:56       ` Andreas Röhler
  2021-07-15  7:08         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Röhler @ 2021-07-15  6:56 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 13889


On 15.07.21 08:36, Lars Ingebrigtsen wrote:
> Andreas Röhler <andreas.roehler@easy-emacs.de> 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...)








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

* bug#13889: lenient loading, feature request
  2021-07-15  6:56       ` Andreas Röhler
@ 2021-07-15  7:08         ` Lars Ingebrigtsen
  2021-07-15  7:25           ` Andreas Röhler
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-15  7:08 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 13889

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Thought at something like
>
> (unwind-protect BODYFORM UNWINDFORMS...)
>
> here as
>
> (unwind-protect load-current load-remaining...)

Now you just have to implement load-remaining (and load-current).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#13889: lenient loading, feature request
  2021-07-15  7:08         ` Lars Ingebrigtsen
@ 2021-07-15  7:25           ` Andreas Röhler
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Röhler @ 2021-07-15  7:25 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 13889


On 15.07.21 09:08, Lars Ingebrigtsen wrote:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> Thought at something like
>>
>> (unwind-protect BODYFORM UNWINDFORMS...)
>>
>> here as
>>
>> (unwind-protect load-current load-remaining...)
> Now you just have to implement load-remaining (and load-current).
>
Yeah, that's why I appreciate Emacs :)





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

end of thread, other threads:[~2021-07-15  7:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-06 16:42 bug#13889: lenient loading, feature request Andreas Röhler
2013-03-06 17:09 ` Eli Zaretskii
2013-03-06 18:42   ` Andreas Röhler
2021-07-15  6:36     ` Lars Ingebrigtsen
2021-07-15  6:56       ` Andreas Röhler
2021-07-15  7:08         ` Lars Ingebrigtsen
2021-07-15  7:25           ` Andreas Röhler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).