From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Predicate for true lists Date: Sun, 15 Jul 2018 20:37:41 -0500 Message-ID: <3853bec8-2a17-9f84-8fb0-57e813999d26@cs.ucla.edu> References: <87fu3vdjjk.fsf@tcd.ie> <87bmcqhhsf.fsf@tcd.ie> <87in6xgtpb.fsf@tcd.ie> <2af892df-26cb-60b2-4fd8-067fcb3d32e9@cs.ucla.edu> <87r2kh9uwx.fsf@tcd.ie> <83h8lcnbxb.fsf@gnu.org> <87sh4s9poo.fsf@tcd.ie> <87k1q49p0i.fsf@tcd.ie> <87efgbbq2p.fsf@tcd.ie> <87efgaqocr.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------9E160513BA1B098A3A7E3B11" X-Trace: blaine.gmane.org 1531704988 22657 195.159.176.226 (16 Jul 2018 01:36:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2018 01:36:28 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: Eli Zaretskii , Emacs developers To: Wilfred Hughes , "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 03:36:24 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fesR5-0005lk-0w for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2018 03:36:23 +0200 Original-Received: from localhost ([::1]:48436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fesT9-0006xx-Uw for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2018 21:38:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fesT4-0006xh-1F for emacs-devel@gnu.org; Sun, 15 Jul 2018 21:38:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fesT3-0005OI-8z for emacs-devel@gnu.org; Sun, 15 Jul 2018 21:38:26 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34990) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fesSy-0005LA-7p; Sun, 15 Jul 2018 21:38:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E455C160721; Sun, 15 Jul 2018 18:38:17 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id p7oiEEmyKm3w; Sun, 15 Jul 2018 18:38:17 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 21D37160747; Sun, 15 Jul 2018 18:38:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id slfrTwP9aR8f; Sun, 15 Jul 2018 18:38:17 -0700 (PDT) Original-Received: from [192.168.1.29] (unknown [47.139.41.115]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 13BFB160721; Sun, 15 Jul 2018 18:38:06 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:227440 Archived-At: This is a multi-part message in MIME format. --------------9E160513BA1B098A3A7E3B11 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 07/15/2018 05:55 PM, Wilfred Hughes wrote: > Did we intentionally remove format-proper-list-p? This broke one of my > projects. I did, yes. I thought it obvious that it was intended only for use within format.el. Evidently not, so I added an obsolete aiias by installing the attached. --------------9E160513BA1B098A3A7E3B11 Content-Type: text/x-patch; name="0001-lisp-format.el-format-proper-list-p-New-alias.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-lisp-format.el-format-proper-list-p-New-alias.patch" >From f521161c1bc5a9cd10ee25ff5f4b7b8d753db55d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 15 Jul 2018 18:28:35 -0700 Subject: [PATCH] * lisp/format.el (format-proper-list-p): New alias. --- etc/NEWS | 3 ++- lisp/format.el | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index c69bbe9d0f..2a93bdf025 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -713,7 +713,8 @@ manual for more details. +++ ** New function 'proper-list-p'. Given a proper list as argument, this predicate returns its length; -otherwise, it returns nil. +otherwise, it returns nil. 'format-proper-list-p' is now an obsolete +alias for the new function. ** define-minor-mode automatically documents the meaning of ARG diff --git a/lisp/format.el b/lisp/format.el index 5bf1be3947..49d3c718ab 100644 --- a/lisp/format.el +++ b/lisp/format.el @@ -539,6 +539,8 @@ Compare using `equal'." (setq tail next))) (cons acopy bcopy))) +(define-obsolete-function-alias 'format-proper-list-p 'proper-list-p "27.1") + (defun format-reorder (items order) "Arrange ITEMS to follow partial ORDER. Elements of ITEMS equal to elements of ORDER will be rearranged -- 2.17.1 --------------9E160513BA1B098A3A7E3B11--