From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [ELPA] New package: transient Date: Sat, 2 May 2020 10:08:56 -0700 (PDT) Message-ID: References: <87368npxw4.fsf@bernoul.li> <87v9ljo5d0.fsf@bernoul.li> <87ftcnxu5m.fsf@bernoul.li> <83y2qezlpd.fsf@gnu.org> <83tv12zjx1.fsf@gnu.org> <837dxyz83p.fsf@gnu.org> <978f970b-b5c2-bd83-39da-f632d069d7d5@yandex.ru> <98ab19cf-680b-9cd2-7c42-89dd0b2f470a@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jonas Bernoulli , Emacs developers , Stefan Monnier , Dmitry Gutov , Adam Porter , Eli Zaretskii , Kyle Meyer To: Philippe Vaucher , Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 19:11:46 2020 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 1jUvg1-000DuR-EW for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 19:11:45 +0200 Original-Received: from localhost ([::1]:58284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUvfz-0003UQ-Ss for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 13:11:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUvfS-00029C-Qw for emacs-devel@gnu.org; Sat, 02 May 2020 13:11:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUvfS-0002c3-56 for emacs-devel@gnu.org; Sat, 02 May 2020 13:11:10 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:48030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUvfP-0002PN-A1; Sat, 02 May 2020 13:11:07 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042H9WTH183436; Sat, 2 May 2020 17:11:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=VmN/NNccLSO51+9sCWjehg0SqmMc22di5KkD1ll6LMU=; b=FRAtoifIgrKAmnhmXGz6o4pqk1TSPeK63RdQA3MVI/PldAOApfj29TD0P+hN7xlsZ7GZ DifmhSaMCKkTAEKTgl2HbBbM5afK+ud9daFwRgiFGxRzufzgFmWHKENeRdCzZ3RKGu4d nZ2wvvZk8NVtWvVfmP8yPDU5NN4K2JsJP8U2WD03PesN+SK1WBnfD/v/HR3t8Ar5aw1y myzxN6gwZrSNavFtBsVutLZ5NhcERnPvLS6yRZ4qTwhJqMk2NVHL/W/k6cSfQyNdegii DF/XWHzvPKhnAbpTcfsa7Ab7TGewxL7WYrU2RKStwTgdqPJS/AW+Le41oeCnIFjP7IYy 2Q== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 30s1gmsd5a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 17:11:00 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042H8Kqo064807; Sat, 2 May 2020 17:09:00 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 30s06htfrt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 17:09:00 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 042H8vkC006770; Sat, 2 May 2020 17:08:58 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=1 mlxlogscore=623 phishscore=0 spamscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020151 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=1 mlxscore=0 spamscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=678 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020151 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/02 13:11:05 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.85 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:248506 Archived-At: [Please consider using plain-text mail for Emacs mailing lists. Thx.] > With alist, searching for `.*alist.*`=C2=A0 is not > so bad, but with `file-name` the problem shows > more clearly: you have a lot of results that > you'd like to ignore (functions from tramp, etc). The question is how to tell the program (Emacs, here) which results you'd like to ignore. You can try using a fancy search pattern. You can try to use a fancy matching method. Or you can try to _combine_ simple matches (patterns and methods). But with all of that it's hard to filter out just what _you know_ you don't want. You can use matching itself to exclude an existing set of matches. But that has to be a separate operation - after matching: Toss these results from matching. That was the subject of a previous message of mine, where I pointed out the value of having a key that removes a set of matches. You _cannot_ express non-matching with a regexp, for example. The approach to take is to instead explicitly get matches for what you do NOT want, and then subtract those from a larger set of matches that includes what you want. That's what we do in Lisp code. And it's what's most helpful interactively, as well. https://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#ChippingAway