Skip to content

Instantly share code, notes, and snippets.

@nex3
Created May 16, 2010 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nex3/403208 to your computer and use it in GitHub Desktop.
Save nex3/403208 to your computer and use it in GitHub Desktop.
(defvar foo 1)
(make-variable-frame-local 'foo)
(modify-frame-parameters (selected-frame) '((foo)))
(message "Before: %d" foo) ;; Prints "Before: 1"
(let ((foo 2))
(message "During: %d" foo)) ;; Prints "During: 2"
(message "After: %d" foo) ;; Prints "After: 2"
;; Note that the value of `foo' after the `let' is the same as the
;; value within the `let', and different from the value before the
;; `let'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment