From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#38818: Dired: mention deleting buffers, not just windows Date: Wed, 1 Jan 2020 19:29:50 -0800 (PST) Message-ID: References: <87imlxlrrv.5.fsf@jidanni.org> <87mub85ri0.fsf@web.de> <87h81f3our.5.fsf@jidanni.org> <87v9pv28qu.fsf@web.de> <87d0c33mdx.5.fsf@jidanni.org> <87o8vnq1ph.fsf@web.de> <875zhv3jyr.5.fsf@jidanni.org> <87eewjydyg.fsf@web.de> <87v9pv2230.5.fsf@jidanni.org> <87woabd9oc.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="79365"; mail-complaints-to="usenet@blaine.gmane.org" Cc: michael_heerdegen@web.de, jidanni@jidanni.org, 38818@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 02 04:32:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1imrDW-000KWH-F0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 04:32:10 +0100 Original-Received: from localhost ([::1]:36164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imrDU-0002Dr-SC for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 22:32:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55841) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imrDP-0002Dk-UW for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 22:32:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imrDO-00053p-R0 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 22:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imrDO-00053V-Nv for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 22:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1imrDO-0001Ko-KK for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 22:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2020 03:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38818 X-GNU-PR-Package: emacs Original-Received: via spool by 38818-submit@debbugs.gnu.org id=B38818.15779359215123 (code B ref 38818); Thu, 02 Jan 2020 03:32:02 +0000 Original-Received: (at 38818) by debbugs.gnu.org; 2 Jan 2020 03:32:01 +0000 Original-Received: from localhost ([127.0.0.1]:37905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imrDN-0001KZ-Bw for submit@debbugs.gnu.org; Wed, 01 Jan 2020 22:32:01 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:58824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imrDM-0001KM-1S for 38818@debbugs.gnu.org; Wed, 01 Jan 2020 22:32:00 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0023OSTU041394; Thu, 2 Jan 2020 03:31:54 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-2019-08-05; bh=UYigSa0xs5UYzOSYqhL5QRGqA2cFNrfZTQw3rAIwvw0=; b=cdQwnnBwSPiXnzmRed0GJrFVBACwRqZcx1YL0OFJARJ/ZNTaBuC4e7PFpZiGE/qJoKRa wa+CPm0bkQtrcc7+LDC4a1oDMWIhOkppdJr6NKLr49K/YlZ/oQ3lAdaGoDS2W/noJw76 NgqXTHLPnfZe/N+bxbYd8mloVnCsw54krj0yGnHq4ucki1q7yhHn5hBhjlO98IVjIOlx KcJesYNuutTKsSU8lmWQGUVDANtpfcQ9n1xgXzx4xCFrsHvFnbNlBjkzLGV72qaYdkNX NMhcycAvkS2XZyoEcsdMp6IExQyuXP4xbtOLckV80PFqP6Nzpqtxh5u8tN0JrVUh34GC QQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2x5ypqn9ck-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Jan 2020 03:31:54 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0023O1Zi097622; Thu, 2 Jan 2020 03:29:53 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2x7meecye0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Jan 2020 03:29:53 +0000 Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0023TpsU023293; Thu, 2 Jan 2020 03:29:51 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9487 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=651 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001020029 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9487 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=711 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001020029 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: 209.51.188.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:174057 Archived-At: > How about this addition? LGTM. > + It works to put a @code{lambda}-expression function on a hook, but > +we recommend avoiding this because it can lead to confusion. If you > +add the same @code{lambda}-expression a second time but write it > +slightly differently, you will get two equivalent but distinct > +functions on the hook. If you then remove one of them, the other will > +still be on it. But see Noam's reply to my message. Given that, we might want to describe better how two lambda forms that you might think represent the same function can be considered different in this context. (I know I've been bitten by that, in particular not recalling exactly how I wrote a lambda form that I added, when I later wanted to remove it, and not bothering to check its form on the hook. But I'm sure Noam is right in what he says.) Alternatively, maybe the language should just be vague enough to skirt the conditions that can treat two seemingly "equal" anonymous functions as different. IOW, that's not really the point here, which is just to tell users that they probably want to use named functions on hooks. Your "because it can lead to confusion" is maybe sufficient, here.