From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Better startup error handling (was: proposal to make null string handling more emacs-y) Date: Fri, 27 Apr 2012 22:07:56 -0400 Message-ID: References: <83d36wfcf1.fsf@gnu.org> <834ns7g9r8.fsf@gnu.org> <87ty06nnxp.fsf@catnip.gol.com> <87vckmm2z7.fsf@catnip.gol.com> <87ehr9vp0r.fsf@destructor.i-did-not-set--mail-host-address--so-tickle-me> <87ehr9n8nh.fsf@catnip.gol.com> <87y5phu8o3.fsf@destructor.i-did-not-set--mail-host-address--so-tickle-me> <878vhhn6oq.fsf@catnip.gol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335578889 14701 80.91.229.3 (28 Apr 2012 02:08:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2012 02:08:09 +0000 (UTC) Cc: Jeremiah Dodds , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 28 04:08:08 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SNx4u-0006zA-Q3 for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2012 04:08:04 +0200 Original-Received: from localhost ([::1]:38217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNx4u-0001f9-2f for ged-emacs-devel@m.gmane.org; Fri, 27 Apr 2012 22:08:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNx4s-0001ez-0u for emacs-devel@gnu.org; Fri, 27 Apr 2012 22:08:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNx4q-0001hJ-C3 for emacs-devel@gnu.org; Fri, 27 Apr 2012 22:08:01 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:23605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNx4q-0001gz-84; Fri, 27 Apr 2012 22:08:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUIACxOgk9soXnu/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjBQs/EhQYDSSIHAW2MothhHkEpEWBXYMD X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="177277122" Original-Received: from 108-161-121-238.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([108.161.121.238]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 Apr 2012 22:07:57 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id DB024AE233; Fri, 27 Apr 2012 22:07:56 -0400 (EDT) In-Reply-To: <878vhhn6oq.fsf@catnip.gol.com> (Miles Bader's message of "Fri, 27 Apr 2012 13:24:05 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.143.162 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150104 Archived-At: > Moreover, if Emacs is clumsy at handling errors during startup (and I > agree that it is), that's a problem that should be addressed generally If someone wants to attack this, I'm all ears. The way I see it, we should ideally be able to load the .emacs in such a way that an error doesn't prevent the rest of the file from being loaded, and the error should be clearly signaled to the user with some kind of line-number information. In my wildest dreams I also imagine that we'd check for obsolete vars, hooks, and functions. Maybe even give the same kind of feedback that the byte-compiler gives about the code. Stefan