From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#18059: 24.3.92; defvar and special variables Date: Mon, 19 Feb 2018 02:44:23 +0100 Message-ID: <87371xlpmw.fsf@web.de> References: <87ha2c7lxy.fsf@web.de> <87mv0gbq33.fsf@users.sourceforge.net> <87y3k0bdm9.fsf@web.de> <87inb4bbse.fsf@users.sourceforge.net> <873727bkud.fsf@users.sourceforge.net> <87efloa000.fsf@users.sourceforge.net> <87fu5y53w5.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519004605 23837 195.159.176.226 (19 Feb 2018 01:43:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 01:43:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 18059@debbugs.gnu.org, Stefan Monnier , Noam Postavsky To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 02:43:20 2018 Return-path: Envelope-to: geb-bug-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 1enaU3-0005QZ-HI for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 02:43:11 +0100 Original-Received: from localhost ([::1]:47140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enaW5-0006W5-Cw for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Feb 2018 20:45:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enaVv-0006Vb-O0 for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 20:45:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enaVq-0002UJ-QZ for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 20:45:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enaVq-0002UF-Mk for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 20:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1enaVq-0004kp-FQ for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 20:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2018 01:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18059 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18059-submit@debbugs.gnu.org id=B18059.151900468218227 (code B ref 18059); Mon, 19 Feb 2018 01:45:02 +0000 Original-Received: (at 18059) by debbugs.gnu.org; 19 Feb 2018 01:44:42 +0000 Original-Received: from localhost ([127.0.0.1]:50342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enaVW-0004ju-Bx for submit@debbugs.gnu.org; Sun, 18 Feb 2018 20:44:42 -0500 Original-Received: from mout.web.de ([212.227.17.12]:58629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enaVU-0004jh-W1 for 18059@debbugs.gnu.org; Sun, 18 Feb 2018 20:44:41 -0500 Original-Received: from drachen.dragon ([188.99.169.170]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M7snk-1eabxB3IuG-00vOWS; Mon, 19 Feb 2018 02:44:25 +0100 In-Reply-To: <87fu5y53w5.fsf@gmail.com> (Noam Postavsky's message of "Sun, 18 Feb 2018 17:28:26 -0500") X-Provags-ID: V03:K0:nNHvhQpLduaIqMKkKNOwVZPy1BJiEM/Eu2oLKNru2T55bQAUNb3 9tLLCcVbDHktB6P+lSrGpxsR/mH507xFiDI/FAEn8Aqqg4J6vL2G0d9pfowWsFQAcDCfb8U ExleEqKPx6XreXwLFhiZhgJ6IdVe8ZnxvWplx2y1Wb9TPSH4us8fZ1Ge2E+arWImmVN1b9A M8ybvXpMmEZBOJTRTjYIw== X-UI-Out-Filterresults: notjunk:1;V01:K0:QQhitjVop7U=:3eWmUeNE9mKiHHtAixdJqN IF9z+20a9uBL/+GlEUGaQ3b2dv4oDm2wBx2kwlgHlzNUfZDZ/qC2bMQoatcfEMCO64yys7jzQ hdPWhwR3fMRlwbckkh+T36kg6uwEgBxXXVdMtjUbQAwPov1WrdHZ3AbRXrpOLI0fQiwRkx72i iJaqH5lR4Fq1Vajm0muCGNHybIU/4mAA+Cd97pjazp/+T/6zyMlgAxYsqtud+YSwNxPZ8g2mG vzQnrFR6hXMaA8SHqeyKH0OVD2SdT05Z9wVFJ3lFDgiFhKCBMR14WC++z55HzajwYMaWUxN+Y 6CODfIm0IGMaQM280HPL1GvCi/lZyEHwfcSh+xvjJDS/viWVtWTzIoPClfotXrp9fp+NjxaFB QddIOKmTOV+nCpI68WJmqgHyHL4Td96K7WjMPvBLCwPb0cZ9ltxrk0oQVc51YkM3JH7/n4PaD hnsAwPGhcJkZbQ+IQT0bf9fLlPO4o5HCHQj5skVw6p7OSR+GTu+kHDOQUA1FXy15vXOPz5hwo Q+NEIink3GxPifyDztZt6xdsm+YkqcGoIp6HDIMTar68+mtUB+0mG+4mb7xCwzfTo7IjdusRn rWx/Pp9JxSEE3KDxFUrFRzbDjOQrRFwwAKV9YTr7vXtF3j/Z2GxvXroawPzNRwRfiYNVvRW4n LaqF0/tAxIJj+JUNLRTnVs7a1f1Y2ywgchKxh50wrm/HSWkysene8P6NA6Qx+WKT7u347AJpE erW8Kb79xKDReR+LgmOtXWQ2rwtmLmLchDj77ghICWQSkCCTBEKePfh/UlBM3BZbYd4I6Rla X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143446 Archived-At: Noam Postavsky writes: > This let-block thing feels more like a bug to me, so I'm inclined to > leave it out of the manual. Maybe somebody could clarify the rationale behind the behavior? It would not be good to leave this undocumented - it is something people actually do. > I'm also not so sure about putting in examples into the manual; the > shortest and simplest I could come up with is this, but I don't know > that it's worth putting in. > > This example demonstrates the effects of using @code{defvar} without > an initial value: > > @example > @group > (let ((x 'lexical)) > (defun get-lexical-x () > x)) > (defvar x) > (defun get-dynamic-x () > x) > > (let ((x 'dynamic)) > (list (get-dynamic-x) > (get-lexical-x))) > @result{} (dynamic lexical) > @end group > @end example Obviously I would like something like this being added. Michael.