[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: Printing alist pairs to a dedicated buffur
From: |
Emanuel Berg |
Subject: |
Re: [External] : Re: Printing alist pairs to a dedicated buffur |
Date: |
Fri, 26 Apr 2024 03:08:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Drew Adams wrote:
> Let us know, when you use lexical binding for _all_ your
> defuns, as well as for defface and all the rest. ;-)
What does it really mean to have a global
static/lexical variable?
See this, the `let' which is lexical evaluates to (3 4), not
(3 2) - ?
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/emacs-init/globals.el
(defvar global-special 1)
(defvar global-lexical)
(setq global-lexical 2)
(defun test-vars ()
(when (and (special-variable-p 'global-special)
(not (special-variable-p 'global-lexical)) )
(list global-special global-lexical) ))
(let ((global-special 3)
(global-lexical 4) )
(test-vars) )
;; (test-vars)
(provide 'globals)
--
underground experts united
https://dataswamp.org/~incal
- RE: [External] : Re: Printing alist pairs to a dedicated buffur, (continued)
- Re: [External] : Re: Printing alist pairs to a dedicated buffur, Emanuel Berg, 2024/04/25
- RE: [External] : Re: Printing alist pairs to a dedicated buffur, Drew Adams, 2024/04/25
- Re: [External] : Re: Printing alist pairs to a dedicated buffur, Emanuel Berg, 2024/04/26
- RE: [External] : Re: Printing alist pairs to a dedicated buffur, Drew Adams, 2024/04/26
- RE: [External] : Re: Printing alist pairs to a dedicated buffur, Heime, 2024/04/26
- Re: [External] : Re: Printing alist pairs to a dedicated buffur, Yuri Khan, 2024/04/26
- Re: [External] : Re: Printing alist pairs to a dedicated buffur, Heime, 2024/04/27
- Re: [External] : Re: Printing alist pairs to a dedicated buffur, Emanuel Berg, 2024/04/26
- Re: [External] : Re: Printing alist pairs to a dedicated buffur,
Emanuel Berg <=