From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29489: Obsolete gnus-remove-if and gnus-remove-if-not Date: Tue, 28 Nov 2017 19:40:47 -0500 Message-ID: <87mv35nchc.fsf@users.sourceforge.net> References: <87o9nmgwue.fsf@ericabrahamsen.net> <87r2sim0je.fsf@users.sourceforge.net> <87a7z6c5i0.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511916074 22663 195.159.176.226 (29 Nov 2017 00:41:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2017 00:41:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29489@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 01:41:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eJqR3-0005Hn-FI for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Nov 2017 01:41:09 +0100 Original-Received: from localhost ([::1]:40712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJqR7-0007uT-HQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Nov 2017 19:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJqR1-0007uO-Oq for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2017 19:41:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJqQw-0004o0-P9 for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2017 19:41:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54893) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJqQw-0004nr-KT for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2017 19:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJqQv-0001eC-O7; Tue, 28 Nov 2017 19:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 29 Nov 2017 00:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29489 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: patch Original-Received: via spool by 29489-submit@debbugs.gnu.org id=B29489.15119160596317 (code B ref 29489); Wed, 29 Nov 2017 00:41:01 +0000 Original-Received: (at 29489) by debbugs.gnu.org; 29 Nov 2017 00:40:59 +0000 Original-Received: from localhost ([127.0.0.1]:35340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJqQs-0001do-Sv for submit@debbugs.gnu.org; Tue, 28 Nov 2017 19:40:59 -0500 Original-Received: from mail-it0-f47.google.com ([209.85.214.47]:38088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJqQq-0001db-Rh for 29489@debbugs.gnu.org; Tue, 28 Nov 2017 19:40:57 -0500 Original-Received: by mail-it0-f47.google.com with SMTP id r6so2061638itr.3 for <29489@debbugs.gnu.org>; Tue, 28 Nov 2017 16:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=3sdagyD/2g7fXfZrKrV293/TCYsRfKGKu3Z+Uk26nMA=; b=A1RcDnHz3+gPoPTwPQiCdssQuBM7t23jlNIXcGa0xao+AQcL0ShZPjlRvBo3uKIwyH /5gqojXm27VqIDPJDabGYpJ9qSYl5sZVGuX1TwzkFQTYxBm2NQtVKzBrAc/MwuUm9p7+ +v8wYcCUchptAl5FjvEGACj9x2jOEsmGIc3O4CftW2HltWcyqxcoJ+4oq0mpbGbhvecj n8znoSFi9kE8U6s0lLxTNteyfUCM1p+yXbTIOp5d8NJ2vrmuyoRMKoJKiRizLssknqh8 c9PU5/Hgs9DruSCYkZQVsmxS0m9J4mwMdo5/qzbzKyhySkuUbQTstSeb5q9R7SFRLbEZ uyAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=3sdagyD/2g7fXfZrKrV293/TCYsRfKGKu3Z+Uk26nMA=; b=BJn6Qmr+P6lBnGNOsBSc/ZxYpiP34cYrddV+taCSxJgOy5iLYvitvwGLAavjNmBYRN g/YW23coM9BSreisv3XSb/74V1Lywb1MlhNotv+/SPIp/xygHCG3F23F5cTxC0Eg2Wh/ yLN+Lv/NGEHHx4BDfB+uZ46AzZ1LQ05Ct4J70sSmgOXwtZ648BTOhtfqaogHvFb1unPR XVjOoI+uEu0tbfTSMgaG2O5SdMNs0dTbu2mKtfkqiT2QGVGkEOK/J8QLft2Zv3nDQB4p b7ogqPj3uvB73jZi7G7Mn2ZGWvSznVcXWa/7V2dIYGgNRqEFbcJ/ku5FLXl0F+pYBxpm 1Idg== X-Gm-Message-State: AJaThX4ZKW/fsPJ6t/h2RqVxdDPlS6FaOYbZcZn5Z++186JnDPo34L7S NyMcn0xMXriC7Grm7bg2vQrJCQ== X-Google-Smtp-Source: AGs4zMaBUxgPMPNpb3rFiGC1V9uJAHAQx5F/e4MOvrJ4lcdrwNveUPEWvv/WLLw7H3EYw6U8S9Vj6g== X-Received: by 10.36.105.66 with SMTP id e63mr5135230itc.46.1511916050733; Tue, 28 Nov 2017 16:40:50 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 134sm234794ion.0.2017.11.28.16.40.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Nov 2017 16:40:49 -0800 (PST) In-Reply-To: <87a7z6c5i0.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 28 Nov 2017 16:07:03 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140513 Archived-At: Eric Abrahamsen writes: >> Although the docstring claims "hash table", while the code says... >> >>> - (if hash-table-p >>> - (mapatoms (lambda (symbol) >>> - (unless (funcall predicate symbol) >>> - (push symbol out))) >>> - sequence) >> >> obarray? > > Shhh, that's my next patch to Gnus! Turning its "hash tables" into > actual hash tables. The obarrays are an impressive and horrible hack. > > For this version of the patch, `seq-filter' works on vectors. In the > next patch, it's replaced by seq-filter->map-keys. Hmm, seq-filter works on vectors, but it's not reliable for obarrays: (let ((list nil) (ob (make-vector 3 0))) (intern "foo" ob) (intern "bar" ob) (intern "xxx" ob) (seq-filter (lambda (_) t) ob)) ;=> (xxx 0 0)