From unknown Fri Jun 20 07:09:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#29412 <29412@debbugs.gnu.org> To: bug#29412 <29412@debbugs.gnu.org> Subject: Status: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable Reply-To: bug#29412 <29412@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:04 +0000 retitle 29412 27.0.50; dired-toggle-read-only should (at some point!) check= that the direcory is writeable reassign 29412 emacs submitter 29412 Robert Marshall severity 29412 minor tag 29412 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 23 11:28:46 2017 Received: (at submit) by debbugs.gnu.org; 23 Nov 2017 16:28:46 +0000 Received: from localhost ([127.0.0.1]:54059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHuMo-0007Ya-Cp for submit@debbugs.gnu.org; Thu, 23 Nov 2017 11:28:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHuMm-0007YL-IH for submit@debbugs.gnu.org; Thu, 23 Nov 2017 11:28:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHuMg-0004xR-LA for submit@debbugs.gnu.org; Thu, 23 Nov 2017 11:28:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eHuMg-0004xH-IX for submit@debbugs.gnu.org; Thu, 23 Nov 2017 11:28:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHuMf-0003wJ-C8 for bug-gnu-emacs@gnu.org; Thu, 23 Nov 2017 11:28:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHuMb-0004sv-RO for bug-gnu-emacs@gnu.org; Thu, 23 Nov 2017 11:28:37 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:53114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHuMb-0004YZ-KA for bug-gnu-emacs@gnu.org; Thu, 23 Nov 2017 11:28:33 -0500 Received: from [167.98.27.226] (helo=ct-lt-579.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1eHu6X-0003kd-Cz for ; Thu, 23 Nov 2017 16:11:57 +0000 From: Robert Marshall To: bug-gnu-emacs@gnu.org Subject: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable Date: Thu, 23 Nov 2017 16:11:55 +0000 Message-ID: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) In a shell mkdir dired-err touch dired-err/xx chmod 555 dired-err emacs -Q M-x dired dired-err C-x C-q edit the xx file name to taste C-c C-c (finish the edit) You exit the filename editing mode with an error (not surprising) but all your edits are lost. It would be more helpful if either C-x C-q gave you a warning or the finish of the edit spotted that nothing was going to work and complained or that it didn't exit the mode (though I realise that there may be cases where some edits may have worked e.g. where the dired-err subdir has been inserted in another dired session before editing the file names) In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.25) of 2017-11-14 built on ct-lt-579 Repository revision: 13248f7444630508cfc3b78a07e8d96613af11c8 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.9 (jessie) Recent messages: Saving file /home/robertmarshall/.newsrc.eld... Wrote /home/robertmarshall/.newsrc.eld Saving /home/robertmarshall/.newsrc.eld...done Directory has changed on disk; type g to update Dired Press C-c C-c when finished or C-c ESC to abort changes 1 rename actions failed--type ? for details Auto-saving... Quit Type C-x 1 to delete the help window. Scanning for dabbrevs...done [2 times] Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t gnus-desktop-notify-mode: t diff-auto-refine-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 06:33:32 2020 Received: (at 29412) by debbugs.gnu.org; 12 Dec 2020 11:33:33 +0000 Received: from localhost ([127.0.0.1]:44063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko39Y-00034t-MS for submit@debbugs.gnu.org; Sat, 12 Dec 2020 06:33:32 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko39X-00034f-79 for 29412@debbugs.gnu.org; Sat, 12 Dec 2020 06:33:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=F0S7QjzntaqsZhcZIzVfD+79izwhQNeOgWZ1zEaCS7Y=; b=VSUjGO3u1GZiVe2E84dcjIxffy PO6aCK4g/FvZ2hxt/GJGEqzMBG3gzMyLSpyaYQnD8MmD/j1XKo2FpaxELjAvywFot2POmomW2y575 nKNmJSxhOdAT+S6D8wSmIYP4ErLluCUaWVzXu6I0/iUMEVVMywD417DJ4+ng8EZAJaio=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ko39N-00053z-II; Sat, 12 Dec 2020 12:33:23 +0100 From: Lars Ingebrigtsen To: Robert Marshall Subject: Re: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> X-Now-Playing: Sacred Paws's _Run Around The Sun_: "Almost It" Date: Sat, 12 Dec 2020 12:33:20 +0100 In-Reply-To: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> (Robert Marshall's message of "Thu, 23 Nov 2017 16:11:55 +0000") Message-ID: <87y2i35ke7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Marshall writes: > mkdir dired-err > touch dired-err/xx > chmod 555 dired-err [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29412 Cc: 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Marshall writes: > mkdir dired-err > touch dired-err/xx > chmod 555 dired-err [...] > You exit the filename editing mode with an error (not surprising) but > all your edits are lost. It would be more helpful if either C-x C-q gave > you a warning I've now made `C-c C-q' signal an error if the directory isn't writable in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 06:33:36 2020 Received: (at control) by debbugs.gnu.org; 12 Dec 2020 11:33:36 +0000 Received: from localhost ([127.0.0.1]:44066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko39b-000358-UX for submit@debbugs.gnu.org; Sat, 12 Dec 2020 06:33:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko39a-00034k-V2 for control@debbugs.gnu.org; Sat, 12 Dec 2020 06:33:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SRuaNsv7sg8ZLTK2Ptbcb1XNh+yBCRgS5cSI2QoHRr0=; b=KdTAHhlI82uUH65ojoWT/8ZBkM H4fyr9VNli4rsqOnD1vwH5EdcFPvO7ud4baZQBusCZHMMmNc2RMVGOBTd7NI/I034greL5G50S6lL FfjmV1eCFgOeOlhRf0fYE/RttYnv7aPx6xvbKDSUrn/jHpVUDaLzBx8Pzb8YtlnzKI8c=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ko39T-000548-9m for control@debbugs.gnu.org; Sat, 12 Dec 2020 12:33:29 +0100 Date: Sat, 12 Dec 2020 12:33:26 +0100 Message-Id: <87wnxn5ke1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29412 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 29412 fixed close 29412 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 29412 fixed close 29412 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 14:28:58 2020 Received: (at 29412) by debbugs.gnu.org; 12 Dec 2020 19:28:58 +0000 Received: from localhost ([127.0.0.1]:46618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAZe-0004DW-Ff for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:28:58 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:49774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koAZc-0004DI-Jb for 29412@debbugs.gnu.org; Sat, 12 Dec 2020 14:28:57 -0500 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 0BCJO100010547; Sat, 12 Dec 2020 19:28:44 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=1n8btaLv8fxRjkpL8uI5h5SeUZJdw1Nr9hmRIx6t5FU=; b=Xgc0QKkBQ5noKRMNXXIbhrNnxnDyT9JI2FPnnIpX+AggvvsxxvQcS3bNIapaUPDvMsfc 5M/oe0UoTyHm/4rtXMUXDxyjfvqLNo+vuB98aPNkWYPkr9O8ZS6DZcsIURTFW9gvdqAn koF5k4rRzw0bIIlyIXF+BgT4KryVp+7L7Jq7WP2bGvIaXEqD8ZiCHhb0UBNVuYQw/MEP RxITIyqZWPiIasKyaxGYyZJRaxuURGT/0+LAw8HsMel6NMA4RLmu9QarvqrFNf0h9D/1 aG6wrsvd4DRiLFix7rdQWre3G/rPbuD5mOjhCbW3k22gGMhtnd8IR8RqM9WBaybtnaqZ og== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 35cn9r17xp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 12 Dec 2020 19:28:44 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BCJQhOm126812; Sat, 12 Dec 2020 19:26:43 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 35cnnyyfne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 12 Dec 2020 19:26:43 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BCJQcN7011364; Sat, 12 Dec 2020 19:26:38 GMT MIME-Version: 1.0 Message-ID: <505c79af-0056-4f66-aca8-9559f6ef2bff@default> Date: Sat, 12 Dec 2020 11:26:37 -0800 (PST) From: Drew Adams To: Lars Ingebrigtsen , Robert Marshall Subject: RE: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> In-Reply-To: <87y2i35ke7.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9833 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012120152 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9833 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=999 impostorscore=0 lowpriorityscore=0 clxscore=1011 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-2012120151 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 29412 Cc: 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I've now made `C-c C-q' signal an error if the directory isn't writable > in Emacs 28. I don't feel strongly about this, but I wonder whether that's the right thing to do. We do NOT do that for files, for example. The use cases, for files and directories too, I believe, are these: 1. You can make changes in the buffer for other reasons, with no intention to save. You can do that to affect information gathering, analysis, discovery, sorting, searching whatever. 2. You can make changes and THEN make the file or dir writable (inside or outside Emacs), and THEN save the changes you've already prepared. #2 can be handy in a situation where the resource is shared, or where for some other reason you want to minimize the time during which it is writable: you=20 make it writable only for the duration of saving, not for the entire time you do the editing. Unless I'm missing some counter arguments, I'd say this request and the "fix", though well-meaning, are misguided. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 03:51:32 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 08:51:32 +0000 Received: from localhost ([127.0.0.1]:47391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koN6K-0002i7-07 for submit@debbugs.gnu.org; Sun, 13 Dec 2020 03:51:32 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:53869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koN6I-0002hg-L3 for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 03:51:31 -0500 Received: from mail.gandi.net (m91-129-99-98.cust.tele2.ee [91.129.99.98]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 18339100005; Sun, 13 Dec 2020 08:51:21 +0000 (UTC) From: Juri Linkov To: Drew Adams Subject: Re: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable Organization: LINKOV.NET References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> <505c79af-0056-4f66-aca8-9559f6ef2bff@default> Date: Sun, 13 Dec 2020 10:32:53 +0200 In-Reply-To: <505c79af-0056-4f66-aca8-9559f6ef2bff@default> (Drew Adams's message of "Sat, 12 Dec 2020 11:26:37 -0800 (PST)") Message-ID: <878sa2qfmq.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29412 Cc: Robert Marshall , Lars Ingebrigtsen , 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> I've now made `C-c C-q' signal an error if the directory isn't writable >> in Emacs 28. > > I don't feel strongly about this, but I wonder whether > that's the right thing to do. We do NOT do that for > files, for example. OTOH, displaying a warning might go unnoticed by the user. Then maybe better would be to ask a y-or-n question whether the user still wants to edit the unwritable buffer. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 08:18:21 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 13:18:22 +0000 Received: from localhost ([127.0.0.1]:47729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRGX-0008AF-NU for submit@debbugs.gnu.org; Sun, 13 Dec 2020 08:18:21 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRGV-00089p-Rv for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 08:18:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=STQvvbeSg/3MDgJNtKbEkukkvAbmSJpznlOR2N8AQm8=; b=fqYodpKSmdcaHCSugfOYefV/fV MuKzwTjMBl33QR2dPXdLjDxINowdsvyhgTbVEly+Zs+d03f5djJlb1iynqrwUxB+sKtVwU10vk+QO Qd3QjyRdhmSauu524XjmuEwKtt9irooF6xLvEZGmeAcz1L2pPvi6blinQhVhYpkWUqpA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koRGL-0005NW-GE; Sun, 13 Dec 2020 14:18:11 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> <505c79af-0056-4f66-aca8-9559f6ef2bff@default> <878sa2qfmq.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUCAQQSDAgVExA0 LiQmGxBzZEdjUikzJxS0lkKKcS2hjFZFNh6LdkvPx6n////4bZDmAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+QMDQ0NEaFdCwQAAAE8SURBVDjLY2CAAEZBIFAUZEACzGBxASB2YEABrAFAwjSBgYG9HchQ A6pgsCwAy6wGMYESjClAxq5ABga2NgGwhBsQs4CYCkBcCdRfWQC1F9lgkIpyBQbsgJFh4EHVBpCH QY7ZCOIiwsVnIpDYAeSztYAC6BBCC8jT7KBABGlliwZ6ciY2zxUCVU0baO/hArBksRnD2QwMVncY GLg7gB7kBiUGNgOgB0+DJdStgcw0oBj3dCAhCfQ+ezoiFh1RzHFB2IHT8gGREGJgYAoB0swbMCXA qd92AVTAtAAY7wvAEmDP3QUGCfsBIGNHAAMDDxArQRUmAjETyDh2BUj2UsJl+aCV0EgA0twgDPQX wzYg1lYAS0hOALKlHIB4MZAxE+i5msVgCZA/wXEvth1IlIPMUUG1A6wCYQeOGFECAIj5KsgiIEKG AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTEyLTEzVDEzOjEzOjE3KzAwOjAwsFDznwAAACV0RVh0 ZGF0ZTptb2RpZnkAMjAyMC0xMi0xM1QxMzoxMzoxNyswMDowMMENSyMAAAAASUVORK5CYII= X-Now-Playing: clipping.'s _Visions of Bodies Being Burned_: "Make Them Dead" Date: Sun, 13 Dec 2020 14:18:08 +0100 In-Reply-To: <878sa2qfmq.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 13 Dec 2020 10:32:53 +0200") Message-ID: <87ft494zfz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > OTOH, displaying a warning might go unnoticed by the user. > > Then maybe better would be to ask a y-or-n question > whether the user still wants to edit the unwritable buffer. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29412 Cc: Robert Marshall , 29412@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > OTOH, displaying a warning might go unnoticed by the user. > > Then maybe better would be to ask a y-or-n question > whether the user still wants to edit the unwritable buffer. Makes sense. I've now done this change. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 11:56:02 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 16:56:02 +0000 Received: from localhost ([127.0.0.1]:49966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koUfC-0000m0-I7 for submit@debbugs.gnu.org; Sun, 13 Dec 2020 11:56:02 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:39692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koUfB-0000lW-2l for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 11:56:01 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BDGrvPh094638; Sun, 13 Dec 2020 16:55:46 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=y1x8+AOltgsNdWkkWzsAvsv1+zxVtG6HXVqExOjBY4U=; b=gl+LISKKIFW/LUrv1n7MdfIzB0r70dOmw2sNiHk8Wh/NYyLXG0JR0IAZkuKwxUzR4Phv U0UPGcLyDMOFJdO2S+vfiNZwFYg8BuBanxUeEsoAH+lhv4ZKANSD7evs1f3RuBloZsU9 U1G5Sy7NNRGVUl44+l/9Owb2kiRw2PdI51AzgzvGMNOimTFH9f4iImWq6Y1/IUICUPJ8 nM0CIJwf2akCTHcUwJLH4RGrss79mEaVv9lnK2Wfv7jzXBrEdKxec27a+JLeZOA+WhVK LES0ghwFnLIngRbFuHEuZM8qlAFJ9TARXuCSdxQf+2w+yR52exSURHrXv8gteQHOa4Wn 1Q== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 35cntktj3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 13 Dec 2020 16:55:46 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BDGnxkH015833; Sun, 13 Dec 2020 16:55:45 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 35d7stj8ua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Dec 2020 16:55:45 +0000 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 0BDGtbhe012744; Sun, 13 Dec 2020 16:55:37 GMT MIME-Version: 1.0 Message-ID: <5aa02c80-bcf2-4e99-915b-013275f3328d@default> Date: Sun, 13 Dec 2020 08:55:36 -0800 (PST) From: Drew Adams To: Juri Linkov Subject: RE: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> <505c79af-0056-4f66-aca8-9559f6ef2bff@default> <878sa2qfmq.fsf@mail.linkov.net> In-Reply-To: <878sa2qfmq.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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9834 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 mlxlogscore=912 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012130132 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9834 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=932 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012130133 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 29412 Cc: Robert Marshall , Lars Ingebrigtsen , 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > >> I've now made `C-c C-q' signal an error if the directory isn't writabl= e > >> in Emacs 28. > > > > I don't feel strongly about this, but I wonder whether > > that's the right thing to do. We do NOT do that for > > files, for example. >=20 > OTOH, displaying a warning might go unnoticed by the user. > 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. For a file buffer, `C-x C-q' simply echoes: "Read-Only mode disabled in current buffer" That is perfectly clear. And any attempt to use a subsequent `C-x C-q to save edit changes should be the time to query a user for what to do (e.g. confirm saving the changes or ignore them). Come up with a good argument why this should be handled differently from the file-editing case and we can talk about it. There are very good use cases for allowing the _buffer_ to be edited, regardless of whether the user ultimately wants such changes applied to disk. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 12:03:06 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 17:03:06 +0000 Received: from localhost ([127.0.0.1]:49980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koUm1-0000yH-Ry for submit@debbugs.gnu.org; Sun, 13 Dec 2020 12:03:06 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:43804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koUm0-0000xn-RR for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 12:03:05 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BDGrYmK094169; Sun, 13 Dec 2020 17:02:52 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=v57G2MYU57q7XnAqwO7QqVJ2X9282zyXKVQ2zxAPS7U=; b=BeAMJkNiHKkSKBfcDUsV3ui7iZ4ivUcbPEakOw/A78Rre8RKmMo7QECdfvoCwaz9VXVH vx9I9mpoIQZd0w/Zd+TbYTVXdOYDO4g8y45QckPT8TLnYoDFkOutjANGb/TsDj45Hl/+ AnobJgLxkaUwof6N4lm5q8JYqFOyI3iz8lSq0O+HaEs4qA8gCrsMzNpURolUvvfzqYHV 63C5CR1bhcVbizb/IhlmJ/d/ekDGga1BtGOFFxZdVh6/ukJSkvta+R5qdrqdk10g3rKs MR3CoL+ts/7/P9ib3IJUPKdgMSQ6CoZQ0ksU+ZG3ylgvrfLOSN25075x+0JiSHDNO4WV Gw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 35cntktjd4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 13 Dec 2020 17:02:51 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BDH01Du034315; Sun, 13 Dec 2020 17:00:51 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 35d7stjbrw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Dec 2020 17:00:51 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0BDH0mX4006651; Sun, 13 Dec 2020 17:00:48 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 13 Dec 2020 09:00:47 -0800 (PST) From: Drew Adams To: Lars Ingebrigtsen , Juri Linkov Subject: RE: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> <505c79af-0056-4f66-aca8-9559f6ef2bff@default> <878sa2qfmq.fsf@mail.linkov.net> <87ft494zfz.fsf@gnus.org> In-Reply-To: <87ft494zfz.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9834 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012130134 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9834 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012130133 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 29412 Cc: Robert Marshall , 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > OTOH, displaying a warning might go unnoticed by the user. > > > > Then maybe better would be to ask a y-or-n question > > whether the user still wants to edit the unwritable buffer. >=20 > Makes sense. I've now done this change. Why do you keep making changes before even reading responses or giving people a chance to respond? Not one argument has been presented so far, by anyone, as to why this case should be treated any differently from the read-only file case. I've given arguments why it should be treated the same. (They're the same arguments as would be given for the file case.) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 14:04:58 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 19:04:58 +0000 Received: from localhost ([127.0.0.1]:50265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koWfy-0005up-AD for submit@debbugs.gnu.org; Sun, 13 Dec 2020 14:04:58 -0500 Received: from know-smtprelay-omc-8.server.virginmedia.net ([80.0.253.72]:48473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koWfw-0005uI-5Y for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 14:04:56 -0500 Received: from capuchin.co.uk ([82.7.142.59]) by cmsmtp with ESMTP id oWfYkXvkXcIlFoWfak67EB; Sun, 13 Dec 2020 19:04:47 +0000 X-Originating-IP: [82.7.142.59] X-Authenticated-User: X-Spam: 0 X-Authority: v=2.3 cv=KpdjJ1eN c=1 sm=1 tr=0 a=kVd0ZMA0rqDr/GbAHSEEcQ==:117 a=kVd0ZMA0rqDr/GbAHSEEcQ==:17 a=zTNgK-yGK50A:10 a=OocQHUDgAAAA:8 a=ucMQw-l_AAAA:8 a=1EsaE_6oAAAA:8 a=6HXAGCxJ9cDPyxvneuQA:9 a=xUZTl98r3Qw_uB5NK3jt:22 a=xkTruGkd22MpkFU079mG:22 a=3ZumFrijQQ-2J9H5h8ct:22 Received: from poulenc.faure (unknown [192.168.0.12]) by capuchin.co.uk (Postfix) with ESMTPS id 5F45D19F3BE; Sun, 13 Dec 2020 19:04:02 +0000 (GMT) From: Robert Marshall To: Lars Ingebrigtsen Subject: Re: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable Organization: The first against the wall References: <87o9nt2cvo.fsf@ctlt579.codethink.co.uk> <87y2i35ke7.fsf@gnus.org> <505c79af-0056-4f66-aca8-9559f6ef2bff@default> <878sa2qfmq.fsf@mail.linkov.net> <87ft494zfz.fsf@gnus.org> X-Home-Page: http://rmstar.blogspot.com/ Date: Sun, 13 Dec 2020 19:04:02 +0000 In-Reply-To: <87ft494zfz.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 13 Dec 2020 14:18:08 +0100") Message-ID: <87v9d54jfh.fsf@capuchin.co.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfGXICgcD5HPraJ5vYTSGtX2S2i6VU51EMXSUd844tcg5NjWFUX1uqGPKpP3jsJpPpaSze4K3HsnM61sluJ3jZhYzB5Ik1+erdqdX+GYdRRBfqU81bikg IPWsYVyf6PnrWyaGuP6ORlnonS5bIPU0K7Eg8LCSBE64CCPPcGa8XRLckfC864f7UoX6bn3Ohxdpj/KK73HDDHyU/A6O44wqDLs0361b7mfgKkQUC6T8d7an X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29412 Cc: 29412@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, Dec 13 2020, Lars Ingebrigtsen wrote: > Juri Linkov writes: > >> OTOH, displaying a warning might go unnoticed by the user. >> >> Then maybe better would be to ask a y-or-n question >> whether the user still wants to edit the unwritable buffer. > > Makes sense. I've now done this change. I'm in agreement with this! (as original bug submitter - you'll get bounces from my robert.marshall@codethink.co.uk address as I'm now retired ;) ) Robert -- Robert Marshall twitter: @rajm From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 15:04:55 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 20:04:55 +0000 Received: from localhost ([127.0.0.1]:50392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koXbz-0001yv-K1 for submit@debbugs.gnu.org; Sun, 13 Dec 2020 15:04:55 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:47141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koXbx-0001y4-70 for 29412@debbugs.gnu.org; Sun, 13 Dec 2020 15:04:54 -0500 Received: from mail.gandi.net (m91-129-99-98.cust.tele2.ee [91.129.99.98]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id DC325240002; Sun, 13 Dec 2020 20:04:44 +0000 (UTC) From: Juri Linkov To: Drew Adams Subject: Re: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable Organization: LINKOV.NET 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> Date: Sun, 13 Dec 2020 21:58:45 +0200 In-Reply-To: <5aa02c80-bcf2-4e99-915b-013275f3328d@default> (Drew Adams's message of "Sun, 13 Dec 2020 08:55:36 -0800 (PST)") Message-ID: <87im95eb0j.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29412 Cc: Robert Marshall , Lars Ingebrigtsen , 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> 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. 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: Buffer modified; save changes? (y or n) So now entering wdired mode does the same thing with 'C-x C-q' (dired-toggle-read-only): Directory isn't writable; edit anyway? (y or n) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 16:45:40 2020 Received: (at 29412) by debbugs.gnu.org; 13 Dec 2020 21:45:40 +0000 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 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 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== 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 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 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 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 MIME-Version: 1.0 Message-ID: Date: Sun, 13 Dec 2020 13:45:15 -0800 (PST) From: Drew Adams To: Juri Linkov Subject: RE: bug#29412: 27.0.50; dired-toggle-read-only should (at some point!) check that the direcory is writeable 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> 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 29412 Cc: Robert Marshall , Lars Ingebrigtsen , 29412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > >> 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. From unknown Fri Jun 20 07:09:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Jan 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator