New answers tagged variables
2
votes
Accepted
Output the VAR name and its VALUE
Yes, the function you're looking for is format:
(defun message-variable-t-nil-value (var)
(let* ((val (and (boundp var) (symbol-value var)))
(msg (format "The value of `%S' is now %...
1
vote
Output the VAR name and its VALUE
Use format. It's the Lisp equivalent of C's printf. Unlike Common Lisp, Emacs Lisp's format specifications are similar to C's, with % as the special character.
(defun show-value-of-variable (symbol)
...
Top 50 recent answers are included
Related Tags
variables × 160org-mode × 17
debugging × 16
elisp × 14
setq × 12
functions × 11
init-file × 10
symbols × 8
customize × 7
buffer-local × 7
quote × 6
local-variables × 6
faces × 5
byte-compilation × 5
let-binding × 5
org-export × 4
spacemacs × 4
helm × 4
warning × 4
environment × 4
lexical-scoping × 4
dynamic-scoping × 4
defvar × 4
buffers × 3
regular-expressions × 3