From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Strange eval behaviour Date: Wed, 23 Nov 2016 10:19:46 +0100 Message-ID: <8760ney2ml.fsf@web.de> References: <87vavrul0k.fsf@mail.de> <878tsl1p7b.fsf@mail.de> <878tshjyvy.fsf@web.de> <87shqo68ai.fsf@mail.de> <87lgwgl6kd.fsf@web.de> <878tsbxe40.fsf@mail.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479892832 21414 195.159.176.226 (23 Nov 2016 09:20:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2016 09:20:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Huchler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 23 10:20:28 2016 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 1c9Tj6-0004uh-Kl for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2016 10:20:24 +0100 Original-Received: from localhost ([::1]:60374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9TjA-0000CJ-19 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2016 04:20:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9Tie-0000Bv-Rw for help-gnu-emacs@gnu.org; Wed, 23 Nov 2016 04:19:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9Tia-0003bJ-Sj for help-gnu-emacs@gnu.org; Wed, 23 Nov 2016 04:19:56 -0500 Original-Received: from mout.web.de ([212.227.17.12]:50903) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9Tia-0003aM-IK for help-gnu-emacs@gnu.org; Wed, 23 Nov 2016 04:19:52 -0500 Original-Received: from drachen.dragon ([90.186.3.19]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MYeuk-1cENGw2tyU-00VRET; Wed, 23 Nov 2016 10:19:48 +0100 In-Reply-To: <878tsbxe40.fsf@mail.de> (Stefan Huchler's message of "Wed, 23 Nov 2016 00:57:03 +0100") X-Provags-ID: V03:K0:0xHTpcXmxwSWCzl5Vm2m6Xcy3Bnmc59GxONrjw8Z+fd4XEldj6J GZVGSIX7WkzhnmHg4xfVvAf3m83wj+DNx09nUlFmu9U+M5W4ofQ5o0tcTooatVklOdUxr4m 5Hkg6pOpqAnveskl9keh9WtFE9F+BrVOhVe/bNB99EamSjcADbyrSFYJfansa+fauZ3CHiD P71P9R2MY3NpwoltPvlGg== X-UI-Out-Filterresults: notjunk:1;V01:K0:QJEgMoAeHUY=:iYFaw5HaVmVJLeWQVR224k pnr1OEiIek8jzpf91T3SqYZ/ggktgEUu/B7+R/oqt2+fL5X+Rw4V5rT/aOsss8yVFEVnhUtjm gKZSbW+ZkVaB/O4ERsR/2k4R0xKJyB6vWIM2gZTMelnW4fhOqjWbd7xz1sFB7K+TzMWPBk4wH KfAGq7ESZttEtdi/aXi8NUQojv2rzeuw27dq+Z0+zbPf+YEEQRAs90hN+kjeMEy9PuAWke2/5 mrn+YFBiY6WjsouCfPKo4SwFE+Rc+K715WWppDg9iIcTZLWC7sPCGpEMAQcRY87i+QtAuP+7D ktjb47c/u0tlyuW4joazgrfG6Dp4aZEmvfoTmSOq3tlX3bI/Hcnxk4wPo/ec43G+uqjUn/vx9 7W/ciXHGO+U+kiFUIiamL9znlH6hsbfY2gfnJtFGDibrj9I5VmxqY1lzbSd8mjy4tKzGeV+XP tFn1VNiSxCMWYsWEXZM2Yb/aB8+C5oqWPtN0NoFSUwMQlguAyKT6yiFvhcGdn0HlCKSx/UTpc fYZ7gsunlQc5mG3WaJc31QcJky77dUDJxWQ8HHmAgarVlcgJE5Urmt3TYtf1SExneHB63L2G5 xcIF8Z4poaqdC9xWv5TXzCRZAJpK/QT1M3q+hS0SFssQnO90jpfihS6xQ778zs6KZnwRua8U5 V9JFjDLbt8CANHTqE66O0iU9auzi8Z6oyy4UjNydFbVK+eGtzUTvz6EPgMEJceZUNgI4WfzSC Nryknjq/OBtftbh0K85XihBuUFJZMuHYFGlNLVOmCNIg7OQYe9iR5xKJQgSD4R0wtTwqL5jv X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.12 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:111771 Archived-At: Stefan Huchler writes: > If code only throughs errors when you bytecompile it but not when you > evaluate it, or run it, its hard to find the error. Aperently that > happens with such macros like function*? What do you mean specifically? Of cause can running code produce errors. The compiler does some analysis of the code and helps you to discover potential problems, like typos, or function calls with an invalid number of arguments. This makes it much easier to detect such problems, contrary to running that code and then debugging it. With respect to the environment (which functions and macros are defined, which libraries are loaded, etc), of cause the Lisp evaluator doesn't check if evaluating the same code in a different Emacs session could potentially error. Apart from the fact that it would slow down running code, it would not make any sense because it is impossible to do in general. The compiler OTOH has the means (and the time) to do some checks. Since compiling your code will be part of your working style, that is hardly a problem. On the contrary, you'll see that it's a big help that the compiler catches most common errors without the need to run your code. Regards, Michael.