From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Using "Emacs Configure" **and** modifying .emacs Date: Sat, 12 Aug 2017 10:02:05 +0200 Message-ID: <20170812080204.GC20873@tuxteam.de> References: <1502436066.2568371.1070085968.1D25E0E7@webmail.messagingengine.com> <87tw1ekxgo.fsf@127.0.0.1> <867ey9sva2.fsf@zoho.com> <86378xskth.fsf@zoho.com> <20170812073057.GB20873@tuxteam.de> <86bmnlqlic.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1502524975 7189 195.159.176.226 (12 Aug 2017 08:02:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2017 08:02:55 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 12 10:02:47 2017 Return-path: Envelope-to: geh-help-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 1dgRNZ-0000zR-Ao for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2017 10:02:41 +0200 Original-Received: from localhost ([::1]:35005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgRNe-0000ep-5J for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2017 04:02:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgRN5-0000eB-SG for help-gnu-emacs@gnu.org; Sat, 12 Aug 2017 04:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgRN1-00071N-R7 for help-gnu-emacs@gnu.org; Sat, 12 Aug 2017 04:02:11 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:44218 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgRN1-00070a-K9 for help-gnu-emacs@gnu.org; Sat, 12 Aug 2017 04:02:07 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1dgRMz-0005pa-1N for help-gnu-emacs@gnu.org; Sat, 12 Aug 2017 10:02:05 +0200 In-Reply-To: <86bmnlqlic.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114002 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Aug 12, 2017 at 09:43:23AM +0200, Emanuel Berg wrote: > tomas wrote: > > > Some dont want a validation to explode deep > > whithin the guts of some module loaded by > > another module, where the user has no clue > > about what the heck is going on, but next to > > the place where a variable is being set to > > a value it's not supposed to have. > > > > Sometimes I can sympathize with that :-) > > One could also put validation at the beginning > of the functions that use the value, where it > (the function) checks its own parameters rather > than some global loose-cannon variable! This is waht I meant by "guts": imagine Tramp, which uses some access method deep in another module, which then, for the first time, needs the variable. That happens dynamically, at the moment you try to access a file dependent on this method, long (perhaps weeks) after you set the variable. Not very debugging-friendly. Similarly (just another aspect of the same thing), this can do away with that pesky "eval-after-load" you'd need with the setq approach. > Which is also a much better design this > specific issue aside... Hm. I get your point, but I get the opposite point, too. "Better design" isn't always an absolute. Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlmOtfwACgkQBcgs9XrR2kaaiACdGSmdNM0CO+gN3cTuzbOk2m8e rMUAnA26pe7Oyk1yYJN/h9OPX/pNExBl =C1Ds -----END PGP SIGNATURE-----