From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable Date: Sun, 13 Dec 2020 13:45:15 -0800 (PST) Message-ID: References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> <505c79af-0056-4f66-aca8-9559f6ef2bff@default> <878sa2qfmq.fsf@mail.linkov.net> <5aa02c80-bcf2-4e99-915b-013275f3328d@default> <87im95eb0j.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3329"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Robert Marshall , Lars Ingebrigtsen , 29412@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 22:49:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1koZEu-0000l3-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 22:49:12 +0100 Original-Received: from localhost ([::1]:60602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koZEt-0001wJ-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 16:49:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koZBr-0006po-VQ for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 16:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koZBr-0006cT-KH for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 16:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koZBq-0000so-FG for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 16:46: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: Sun, 13 Dec 2020 21:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29412 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 29412-submit@debbugs.gnu.org id=B29412.16078959403295 (code B ref 29412); Sun, 13 Dec 2020 21:46:02 +0000 Original-Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 21:45:40 +0000 Original-Received: from localhost ([127.0.0.1]:50619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koZBT-0000r2-Tw for submit@debbugs.gnu.org; Sun, 13 Dec 2020 16:45:40 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:40516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koZBR-0000qY-5p for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 16:45:38 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BDLgelI046711; Sun, 13 Dec 2020 21:45:22 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=zi3o/02XH/daHod7MPAZ4ZJaRmniLJNTUp7lrJdwcW8=; b=XDf5y8GzUrp+T8FdcwaeGDvpGEQAHwBnuQcqHHOL/n9mHqu+piuTQW66KFA15pwFULhS bfEzl2zo8eV1LTIlyB/uKNRFSyatu6BzGf6zV42f2n7fmexH8y/yATNgh9TwRlBS408l 3qmcx1siHPIVU4Dwyj9h/hVH4GtOivfq0LUnoIBPaMpH3V2OZv8YXTFQ7xnflVp56VM0 Sb42PdMlsstR+6x5lWFHuzp4rbbFx68P0l8qlTA1LuugNKcZ1uKFIG5U9NSDcyCVacUW 9229Ov7fWG6pn09OPScagKi3eZ2uK9a1kL3fvfiLjrh0tI9vfIuso28PsoYuQ1/QhAU5 pg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 35cn9r2tj2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 13 Dec 2020 21:45:21 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BDLj3Mk120646; Sun, 13 Dec 2020 21:45:21 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 35d7ejt6gt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Dec 2020 21:45:21 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BDLjGRe021886; Sun, 13 Dec 2020 21:45:16 GMT In-Reply-To: <87im95eb0j.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9834 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012130171 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9834 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=999 impostorscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 malwarescore=0 priorityscore=1501 phishscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012130170 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196019 Archived-At: > >> Then maybe better would be to ask a y-or-n question > >> whether the user still wants to edit the unwritable buffer. > > > > I disagree. This should be handled _exactly_ the > > same way we handle a buffer for a file that is > > read-only. I see no argument why we should treat > > a directory buffer different from a file buffer. >=20 > Asking a y-or-n question is _exactly_ what > 'C-x C-q' does in wdired, i.e. after typing > 'C-x C-q' (wdired-exit) it asks a question: >=20 > Buffer modified; save changes? (y or n) Yes, for saving changes. That's just what I suggested. > So now entering wdired mode does the same thing with > 'C-x C-q' (dired-toggle-read-only): >=20 > Directory isn't writable; edit anyway? (y or n) That is NOT the same way we handle a file buffer. We are both repeating ourselves, it seems. I gave 2 good reasons why this should be handled the same way as we handle read-only files. And they are no doubt among the reasons (perhaps the only reasons?) Emacs has always behaved as it does for file buffers. So far, no one has given ANY reasons why we should not handle directory visits and editing the same way as file visits and editing.