help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing alist pairs to a dedicated buffur


From: Heime
Subject: Printing alist pairs to a dedicated buffur
Date: Fri, 19 Apr 2024 12:57:08 +0000

I want to print the value pairs of an alist named tema-vodilac.

Although I can insert tema-vodilac: using

(insert (concat "\n" "tema-vodilac:\n"))

I cannot print the value pairs to the tema buffer

(defun tema-alist ()
  "Display the content of the association list ALIST."
  (interactive)

  (with-current-buffer (get-buffer-create "tema")
    (goto-char (point-max))
    (insert (concat "\n" "tema-vodilac:\n"))
    (dolist (pair tema-vodilac)
      (insert (format "\n %d  %s \n" (cdr pair) (car pair)))) ))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]