From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs-25 2460cfa: * doc/lispref/lists.texi (Association Lists): Document 'alist-get'. Date: Thu, 21 Jan 2016 20:26:36 +0200 Message-ID: <83d1su94bn.fsf@gnu.org> References: <20160116143238.27391.97533@vcs.savannah.gnu.org> <8737ttx5dm.fsf@web.de> <83oachbgz0.fsf@gnu.org> <87vb6pih39.fsf@web.de> <83h9i9besq.fsf@gnu.org> <87mvs1ieql.fsf@web.de> <83bn8hbcpp.fsf@gnu.org> <87a8o1ics6.fsf@web.de> <838u3lbbe8.fsf@gnu.org> <87vb6osb0o.fsf@web.de> <87h9i86tke.fsf@web.de> <878u3in7ye.fsf@web.de> <83fuxq95jt.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1453400810 13959 80.91.229.3 (21 Jan 2016 18:26:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 18:26:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: michael_heerdegen@web.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 21 19:26:45 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aMJwS-00079N-1B for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 19:26:44 +0100 Original-Received: from localhost ([::1]:49265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJwR-0007KH-65 for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 13:26:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJwA-0007GY-5k for emacs-devel@gnu.org; Thu, 21 Jan 2016 13:26:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMJw6-0008Bf-La for emacs-devel@gnu.org; Thu, 21 Jan 2016 13:26:26 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMJw6-0008BU-In; Thu, 21 Jan 2016 13:26:22 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4484 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aMJw5-0008Gd-Sp; Thu, 21 Jan 2016 13:26:22 -0500 In-reply-to: <83fuxq95jt.fsf@gnu.org> (message from Eli Zaretskii on Thu, 21 Jan 2016 20:00:06 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198514 Archived-At: > Date: Thu, 21 Jan 2016 20:00:06 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > From: Michael Heerdegen > > Date: Thu, 21 Jan 2016 18:44:25 +0100 > > > > --8<---------------cut here---------------start------------->8--- > > (defmacro alist-put (key value place &optional default remove) > > (gv-letplace (_ setter) `(alist-get ,key ,place ,default ,remove) > > (funcall setter value))) > > --8<---------------cut here---------------end--------------->8--- > > > > Would it make sense to add something like this? > > Not without a decent doc string. Sorry, that was probably uncalled-for. In my defense, I just came up from a few days of fixing bad or non-existent documentation for code like the above, which just pushed me off the edge. And it's not over yet. I hope we will never again admit such code into Emacs.