* apropos to list defined local variables in buffer
@ 2024-07-28 13:03 Heime
0 siblings, 0 replies; only message in thread
From: Heime @ 2024-07-28 13:03 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor
I have put this function to give a list a defined variables in an emacs buffer,
but is giving me something else.
What am I doing wrong here ?
(defun vodil-bfmutov ()
"List all buffer-local variables in the current buffer."
(interactive)
(let ( (buffer-local-vars
(apropos-internal ""
(lambda (sym)
(and (boundp sym)
(local-variable-p sym (current-buffer)))))) )
(if buffer-local-vars
(with-output-to-temp-buffer "*Buffer Local Variables*"
(dolist (var buffer-local-vars)
(princ (symbol-name var))
(princ "\n")))
(message "No buffer-local variables found."))))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-28 13:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-28 13:03 apropos to list defined local variables in buffer Heime
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).