From: Heime <heimeborgia@protonmail.com>
To: tomas@tuxteam.de
Cc: help-gnu-emacs@gnu.org
Subject: Re: Check whether an object is an alist
Date: Wed, 18 Sep 2024 04:52:08 +0000 [thread overview]
Message-ID: <S0RNQjfBTt-zmB3OC2RhfFUFDr6t9bPOxYhcKYGJaajex8sga0kLIcD1vDAPjuOwi-_-Ds7C6Z-qFBhmZiWxE99rOuzmCWD637CyfPnoxo0=@protonmail.com> (raw)
In-Reply-To: <ZupVW9wEJHb/9Cdz@tuxteam.de>
On Wednesday, September 18th, 2024 at 4:21 PM, tomas@tuxteam.de <tomas@tuxteam.de> wrote:
> On Tue, Sep 17, 2024 at 09:25:44PM +0000, Heime wrote:
>
> [...]
>
> > > After changing to the following, I am getting validation for list
> > > element (1 2 3), even though it is not an association.
> > >
> > > (defun torium-alist-p (obj)
> > > "Return t if object OBJ is an association list (alist)."
> > > (and (listp obj)
> > > (cl-every (lambda (x) #'consp) obj)))
> >
> > I remember. No requirements of lambda to run #'consp on obj
>
>
> Much more important: /why/ are you "getting a validation" for list '(1 2 3)
> with the above form and...
>
> > (defun torium-alist-p (obj)
> > "Return t if object OBJ is an association list (alist)."
> > (and (listp obj)
> > (cl-every #'consp obj)))
>
>
> ...(probably, you didn't tell us) not with this one?
>
> Why are they different?
>
> Cheers
> --
> t
Have solved the problem. Was not with that one, but that one solved the
problem.
Felicitations
next prev parent reply other threads:[~2024-09-18 4:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-16 10:29 Check whether an object is an alist Heime
2024-09-17 8:45 ` Heime
2024-09-17 9:38 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-09-17 9:46 ` tomas
2024-09-17 11:16 ` Heime
2024-09-17 11:23 ` tomas
2024-09-17 13:51 ` Heime
2024-09-17 13:58 ` tomas
2024-09-17 14:32 ` Heime
2024-09-17 15:20 ` tomas
2024-09-17 16:26 ` Heime
2024-09-17 17:57 ` tomas
2024-09-17 18:04 ` Heime
2024-09-17 18:28 ` tomas
2024-09-17 19:20 ` Heime
2024-09-17 19:35 ` tomas
2024-09-17 21:02 ` Heime
2024-09-17 21:25 ` Heime
2024-09-18 4:21 ` tomas
2024-09-18 4:52 ` Heime [this message]
2024-09-17 22:01 ` Stephen Berman
2024-09-17 19:22 ` [External] : " Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='S0RNQjfBTt-zmB3OC2RhfFUFDr6t9bPOxYhcKYGJaajex8sga0kLIcD1vDAPjuOwi-_-Ds7C6Z-qFBhmZiWxE99rOuzmCWD637CyfPnoxo0=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/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.
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).