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: Tue, 31 Dec 2019 22:53:22 -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="103274"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38818@debbugs.gnu.org To: Michael Heerdegen , =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 01 07:55: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 1imXuQ-000Qgu-9t for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 07:55:10 +0100 Original-Received: from localhost ([::1]:48890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imXuO-0004tr-Fq for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2020 01:55:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40371) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imXuJ-0004tl-GD for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 01:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imXuI-0004sE-FY for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 01:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imXuI-0004rQ-Bb for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 01:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1imXuI-0003GP-9g for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2020 01:55: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: Wed, 01 Jan 2020 06:55: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.157786165212485 (code B ref 38818); Wed, 01 Jan 2020 06:55:02 +0000 Original-Received: (at 38818) by debbugs.gnu.org; 1 Jan 2020 06:54:12 +0000 Original-Received: from localhost ([127.0.0.1]:35515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imXtT-0003FH-TG for submit@debbugs.gnu.org; Wed, 01 Jan 2020 01:54:12 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:47082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imXtQ-0003F4-Ed for 38818@debbugs.gnu.org; Wed, 01 Jan 2020 01:54:09 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 0016s2Ms115458; Wed, 1 Jan 2020 06:54:02 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=t/yCOuhb2ZhuTwyBMVl5Nq4+C8TERGvQMdXunDiPYss=; b=W/SmpbT5pYsbCbTUa9cZPQHZyskC4bn12KUnnoM1B7FZBM3pM3i/i5aKYeHK8ThgNywY Q9M/XI+XZs/lLje1ZOiDpBMKzw0VHb6Us94umWdXZR4Ef04kx11IDvESsjWLVoCSQ62T uYgNO/I8TVsiYhKTP/tUzmh10zGkjjDohSR19YSWr+5SMzn0SgZk+wvJp45pVPpUHDdJ 5CxPUu2l/OtMldb9ii1XkJZRwGrBlmNUVwi/70nhKWfv2l6Ik3f75feyFz3o5phKjJMr RxR7xNoR+0eQah9TFD6UPitnWsPs/d4SJR5hyO2eEvJMOf5v4gdKbm4QX598h/sYsNjX VA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2x5xftkj2e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Jan 2020 06:54:02 +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 0016rw29118301; Wed, 1 Jan 2020 06:54:00 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2x7medpm09-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Jan 2020 06:53:59 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0016rNt5018783; Wed, 1 Jan 2020 06:53:23 GMT In-Reply-To: <87woabd9oc.fsf@web.de> 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=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=809 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001010063 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=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=868 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001010063 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:174024 Archived-At: > Using lambdas should be ok most of the time. But there's a certain > risk > of unintentionally having two copies of a function in a hook when the > code is executed multiple times, e.g. if you load your init file twice, > once compiled, and once the lisp source, because `add-hook' then can't > know that it's the same function. Most of the time even this has no > visible effect, but when it has, it can be surprising and finding the > cause can be hard, so I try to just avoid adding lambdas to hooks in my > init file. Also, if you're testing stuff and you add a lambda form to a hook, and later you want to remove it, you need to use exactly the same text - same whitespace, everything. The lambda form is taken, in effect, as text, and it looks for an exact textual match. It's very good to get in the habit of not using lambdas on hooks.