From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#18059: 24.3.92; defvar and special variables Date: Wed, 14 Mar 2018 07:15:41 -0400 Message-ID: <87o9jqx602.fsf@gmail.com> References: <87ha2c7lxy.fsf@web.de> <87efloa000.fsf@users.sourceforge.net> <87fu5y53w5.fsf@gmail.com> <87371xlpmw.fsf@web.de> <87a7w2m1cb.fsf@web.de> <874lm7u554.fsf@web.de> <878tb72zgl.fsf@gmail.com> <87vaeazw77.fsf@web.de> <87tvts11n8.fsf@gmail.com> <87muzhsh8a.fsf@web.de> <87h8pmzhl0.fsf@gmail.com> <37ac1e83-64a5-4427-b210-5f718e3affbc@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521026054 29733 195.159.176.226 (14 Mar 2018 11:14:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 11:14:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Michael Heerdegen , 18059@debbugs.gnu.org, Stefan Monnier To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 12:14:09 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 1ew4MD-0007Zg-6M for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 12:14:09 +0100 Original-Received: from localhost ([::1]:45485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ew4OE-0005nr-Ki for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 07:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ew4O8-0005nT-G3 for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 07:16:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ew4O2-0004W4-O3 for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 07:16:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ew4O2-0004Vu-Ih for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 07:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ew4O2-0006Q2-7k for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Mar 2018 11:16: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.152102615524659 (code B ref 18059); Wed, 14 Mar 2018 11:16:02 +0000 Original-Received: (at 18059) by debbugs.gnu.org; 14 Mar 2018 11:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:60457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ew4Nv-0006Pf-II for submit@debbugs.gnu.org; Wed, 14 Mar 2018 07:15:55 -0400 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:34430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ew4Nt-0006PR-Vb for 18059@debbugs.gnu.org; Wed, 14 Mar 2018 07:15:54 -0400 Original-Received: by mail-io0-f172.google.com with SMTP id e7so3939587ioj.1 for <18059@debbugs.gnu.org>; Wed, 14 Mar 2018 04:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1l4h8IygsktK1pAZAsMjGNrbzNPZ39LXBnDbFhWwgVM=; b=kgWMngqGfB5veulQRaC9ZdFNaTx5iGS1SGc01CpIoyZ0JZuVujnVYYwDuphp70LbQn LVPxj/f1l+YkUZZcQO0ZvJPTDRs0n2GWuhTZz6ayrWU2/ihzAFHY9QzsM3HYMc2SGhHB idg/K5xb41X52aTWwzumhheXauie4t2ak7ErWSHrM+ApMsMG+90PEOQxYwXVffjEqZna tpTUiQWI6lkQaX56RvRemC9LWh+WuaKn38j2+qMAV7VJG/bJkaz+tCp2rptJhj7pqV+k /WXG1TBei1tOAyt+A12jROlehiNl9FMmGbNQzr0aYQ8mFMG9AoaDqyHBKRVtMV7JdKAx wlyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1l4h8IygsktK1pAZAsMjGNrbzNPZ39LXBnDbFhWwgVM=; b=h0lNr30Kl2UeUTwnBS10XKeXUtzBDiIOxEOs3QYja8RBIhSebWMAOe9+DzUZoStsXA teuzb7m7gg4yuDf6+moNDOSqFzbm8gM/whjh+m2zKwhUElSVpi2SvLoWcVenY5wyoutN K52inj8lA0fxGMaYOFP0BqPgi9JmFTEliDk7l3TLI6CaWqa8iNnMKHMRK2MBxcIw9S4Q JZ+/jZGoM1jmS0A3t7SHcTj8I1sn0JfKLCHDPSnFJ8jFDSrqCylN8uJD2n3oXvjTd565 TDxy3UyJf/WxDtnMEHyrtNQqWvGb6wlclm31G1s0bMM4tjxKqTvW5thmvvuc5UdZOk2v eUTQ== X-Gm-Message-State: AElRT7F5flw7Pucj19EgIYKo6vwmg2YRkBDyZzUKmHsW/zJcQoWPfjIM Ldi4I5I/JBmOht4Aw4HUHEMIzQ== X-Google-Smtp-Source: AG47ELs2PkH+3hyUAzl8XiKhN7bpsaTi/Mc/0hy7CpfciOykmU+WQTifc5BeAP5IQ8kkrIZjr7ZQvg== X-Received: by 10.107.164.3 with SMTP id n3mr4311138ioe.88.1521026148302; Wed, 14 Mar 2018 04:15:48 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id q21-v6sm1191407itb.2.2018.03.14.04.15.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Mar 2018 04:15:47 -0700 (PDT) In-Reply-To: <37ac1e83-64a5-4427-b210-5f718e3affbc@default> (Drew Adams's message of "Sun, 11 Mar 2018 15:16:35 -0700 (PDT)") 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:144252 Archived-At: Drew Adams writes: >> So does "end of the current lexical scope" make sense? I think I've >> been looking at this for too long, it's hard for me to tell by now. >> >> Likewise, you can tell the compiler that a variable is defined using >> @code{defvar} with no initial value. (Note that this marks the >> variable as special, i.e.@: dynamically bound, but only until the end >> of the current lexical scope, or file if at top-level.) > > ... but only _within_ the current lexical scope, > or within the current file if at top-level. > > Lexical scope is defined lexically. It can have two > limits or "ends", but it's best to avoid speaking of > beginning and end, as that can suggest temporal end. I phrased it that way to rule out the interpretation where the defvar could affect statements occurring earlier in the file, though still within the scope. I guess there can be wrong interpretations for any phrasing though... https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18059#15: In the case of a file, does it mean that the variable is considered special for the rest of the file, or for the whole file?