From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: run-with-timer does not display message Date: Sat, 19 Jul 2014 11:04:53 -0700 (PDT) Message-ID: <167e76cf-1894-4bd2-9141-51d1361da288@default> References: <87k37e4tjw.fsf@gmail.com> <87d2d2e4ga.fsf@debian.uxu> <83bnsl5pxo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1405793134 19855 80.91.229.3 (19 Jul 2014 18:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2014 18:05:34 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 19 20:05:26 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1X8Z0g-0001Up-6I for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 20:05:26 +0200 Original-Received: from localhost ([::1]:55183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8Z0f-00035E-4e for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 14:05:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8Z0M-0002tl-SC for help-gnu-emacs@gnu.org; Sat, 19 Jul 2014 14:05:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8Z0E-0002GU-5i for help-gnu-emacs@gnu.org; Sat, 19 Jul 2014 14:05:06 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:36027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8Z0D-0002GQ-U9 for help-gnu-emacs@gnu.org; Sat, 19 Jul 2014 14:04:58 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s6JI4t52024301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 19 Jul 2014 18:04:56 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s6JI4sns007277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Jul 2014 18:04:55 GMT Original-Received: from ubhmt120.oracle.com (ubhmt120.oracle.com [156.151.24.25]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s6JI4sbO007274; Sat, 19 Jul 2014 18:04:54 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98798 Archived-At: > >> M-: (run-with-timer 5 nil '(lambda () (message "hello"))) > > ^^^^^^^^ >=20 > I'm focusing on trying to kill the nasty '(lambda ...) habit that > people keep reproducing all over the place because it appears in > so many examples. And we might as well say *why* it should be killed: When you quote a lambda form, the code simply creates a *list* (whose car is `lambda' etc.) when it is evaluated. That list can then be interpreted as a function (or not, depending on the context - it is just a list). But if you do not quote, then the lambda form is understood immediately as being a *function*. And that means that occurrences of that function can be byte-compiled etc.