From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Storing sensitive data indefinitely in variables or buffers: Whether and how to fix? Date: Mon, 05 Jun 2023 05:31:38 +0300 Message-ID: <83zg5e4p2t.fsf@gnu.org> References: <5b541bf1-1d13-ac8e-a91c-e1b238cc6f84@alphapapa.net> <83v8g6bcls.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jschmidt4gnu@vodafonemail.de, emacs-devel@gnu.org, yantar92@posteo.net To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 05 04:32:35 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q601L-0008Q2-NU for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Jun 2023 04:32:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q600b-0004BV-TJ; Sun, 04 Jun 2023 22:31:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q600W-0004B8-Kp for emacs-devel@gnu.org; Sun, 04 Jun 2023 22:31:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q600U-0007Pd-9X; Sun, 04 Jun 2023 22:31:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ccq19uEDqr17P9dj+hGT2IR4/0uS8UXiSsi4rdo1ER4=; b=FhXgmLF/nxAU EicveVIkFQ903pJwsrrg0DYO/NpyA2LQFEf5vbudqpSWQO+1A8QZNemSq42heaYhyLOoXgOF/WYwM CR/auMrd38TUZhounHYawD2HKHWHctpxpNtHDW7GvyIcHQ2WlPNDjlkT4uPJ9l3vppozGoCda5c1J VwGeiD4uN0s0H3Ng8VvaixDsXh7K8FRX1esj2btas74+TPheKusPRbHKvj+rdbhEtHTz8QmAzEMoj q4mQSiuA39vYoekzVEZ80HD/HRiD5xWlf6/NKVjaeT/LV0Y/NRP7JkuR3KmN1vdZBcR8AmoYrIrZF 1k1WqBqqePyiorRnpPRpKw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q600T-00066i-PN; Sun, 04 Jun 2023 22:31:42 -0400 In-Reply-To: (message from Adam Porter on Sun, 4 Jun 2023 18:47:07 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306631 Archived-At: > Date: Sun, 4 Jun 2023 18:47:07 -0500 > Cc: jschmidt4gnu@vodafonemail.de, emacs-devel@gnu.org, yantar92@posteo.net > From: Adam Porter > > > But I don't really understand why you would care to use alist-get > > instead of, say, plstore-get. Why does it matter whether the storage > > is presented as an alist or as an opaque storage with accessor and > > setter? > > I don't mean that it should be an alist specifically. I mean that I'd > just like to get/put a Lisp object, which I could then use with standard > Lisp functions like alist-get, plist-get, gethash, as well as map-elt, > and setf wrappers for setting, etc. And I ask again: what's the problem of using plstore-get etc. instead? why does it have to be "standard Lisp functions"?