all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Manuel Giraud <manuel@ledu-giraud.fr>,
	Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Printing alist pairs to a dedicated buffur
Date: Fri, 19 Apr 2024 19:42:34 +0000	[thread overview]
Message-ID: <RErk7z78z8vhzB3rAdi3RQYfkNKOpnkZ1sJs2N80CwuIgFjhIpmNuOdwbP8fs6BRN7dUVVmwOFVXk0I_-LfENKOfCdgrDDuUbDmsZotkaH8=@protonmail.com> (raw)
In-Reply-To: <Qu_Cy2EEochyzIz6ElJ3ACoE08a6sw_26_2x9_KGjEDjXqhY0bYsmdLGHku2ENaaFx340vXx8iBomy-kCO_-Iabg--fbicOjFT2IoDwfpjg=@protonmail.com>






Sent with Proton Mail secure email.

On Saturday, April 20th, 2024 at 7:26 AM, Heime <heimeborgia@protonmail.com> wrote:

> 
> 
> 
> 
> 
> Sent with Proton Mail secure email.
> 
> 
> On Saturday, April 20th, 2024 at 1:24 AM, Manuel Giraud via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org wrote:
> 
> > Heime heimeborgia@protonmail.com writes:
> > 
> > > 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)))) ))
> > 
> > Hi,
> > 
> > I don't understand. With tema-vodilac defined like this:
> > 
> > (defvar tema-vodilac '((a . 2) (b . 1)))
> > 
> > Your command works for me. > -- > Manuel Giraud
> 
> 
> When I use message, all is good, but not with insert to the buffer.
> 
> (cdr pair) and (car pair) are not getting printed in the tema buffer,
> but they get printed in the messages buffer.

This is how I am filling my alist named tema-lugar


(defun tema-mark (kfrz)
  "Associate line number at cursor position with key phrase KFRZ."
  (interactive "sString: ")

  (let ( (lnum (line-number-at-pos)) )

    (setq-local tema-lugar
                 (append tema-lugar
                          (list (cons kfrz lnum)))) ))



  reply	other threads:[~2024-04-19 19:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19 12:57 Printing alist pairs to a dedicated buffur Heime
2024-04-19 13:24 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-04-19 19:26   ` Heime
2024-04-19 19:42     ` Heime [this message]
2024-04-20  9:55       ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-04-20 10:08         ` Emanuel Berg
2024-04-25 11:13           ` Heime
2024-04-26  0:27             ` Emanuel Berg
2024-04-25 15:55           ` [External] : " Drew Adams
2024-04-25 16:18             ` Heime
2024-04-25 22:43               ` Emanuel Berg
2024-04-25 22:29             ` Emanuel Berg
2024-04-25 23:38               ` Drew Adams
2024-04-26  0:03                 ` Emanuel Berg
2024-04-26 15:55                   ` Drew Adams
2024-04-26 16:57                     ` Heime
2024-04-26 17:27                       ` Yuri Khan
2024-04-27 22:20                         ` Heime
2024-04-26  0:41                 ` Emanuel Berg
2024-04-26  1:08                 ` Emanuel Berg
2024-04-20 16:37         ` Heime
2024-04-20 17:23           ` Heime
2024-04-20 20:48             ` Yuri Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='RErk7z78z8vhzB3rAdi3RQYfkNKOpnkZ1sJs2N80CwuIgFjhIpmNuOdwbP8fs6BRN7dUVVmwOFVXk0I_-LfENKOfCdgrDDuUbDmsZotkaH8=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=manuel@ledu-giraud.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.