emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#23548: closed (25.0.93; lists.texi (alist-get): Do


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#23548: closed (25.0.93; lists.texi (alist-get): Document optional arg 'remove'.)
Date: Wed, 08 Jun 2016 00:01:03 +0000

Your message dated Tue, 07 Jun 2016 20:00:27 -0400
with message-id <address@hidden>
and subject line Re: bug#23548: 25.0.93; lists.texi (alist-get): Document 
optional arg 'remove'.
has caused the debbugs.gnu.org bug report #23548,
regarding 25.0.93; lists.texi (alist-get): Document optional arg 'remove'.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
23548: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23548
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.0.93; lists.texi (alist-get): Document optional arg 'remove'. Date: Mon, 16 May 2016 23:13:35 +0900 (JST) User-agent: Alpine 2.20 (LRH 67 2015-01-07)


* doc/lispref/lists.texi (alist-get): Document optional arg. 'remove'.
Rename second argument to 'alist'.


In GNU Emacs 25.0.93.3 (x86_64-pc-linux-gnu, GTK+ Version 2.24.30)
Repository revision: 6de0715f5467d4b925e2dfe082174529ace3b174


From 23f7df037e23c867cfa0090936c9f974e6e83175 Mon Sep 17 00:00:00 2001
From: Tino Calancha <address@hidden>
Date: Mon, 16 May 2016 23:01:14 +0900
Subject: [PATCH] ; * lists.texi (alist-get): Document optional arg 'remove'.

---
 doc/lispref/lists.texi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index c18c408..7d411af 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -1556,12 +1556,17 @@ Association Lists
 @end smallexample
 @end defun

address@hidden alist-get key value &optional default
address@hidden alist-get key alist &optional default remove
 This function is like @code{assq}, but instead of returning the entire
 association for @var{key}, @code{(@var{key} . @var{value})}, it
 returns just the @var{value}.  It returns @var{default} if @var{key}
 is not found in @var{alist}, defaulting to @code{nil} if @var{default}
 is omitted.
+
+When using this function to set the value at @var{key}
+to @var{new-val}, if @var{remove} evaluates address@hidden and
address@hidden is @code{eql} to @var{new-val}, then the entry at
address@hidden is deleted.
 @end defun

 @defun rassq value alist
--
2.8.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#23548: 25.0.93; lists.texi (alist-get): Document optional arg 'remove'. Date: Tue, 07 Jun 2016 20:00:27 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 25.1

Thanks; I tweaked the docs.


--- End Message ---

reply via email to

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