From unknown Sun Sep 21 03:54:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30685: end-of-file mode should respect read-only mode Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Mar 2018 03:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 30685@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15200461897190 (code B ref -1); Sat, 03 Mar 2018 03:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2018 03:03:09 +0000 Received: from localhost ([127.0.0.1]:41717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erxS1-0001rp-ML for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erxRz-0001rU-E2 for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erxRt-0001on-IS for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_50,DATE_IN_PAST_03_06, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erxRt-0001oW-G2 for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erxRs-0003Yy-7W for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 22:03:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erxRn-0001co-4G for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 22:03:00 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:59850 helo=homiemail-a38.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erxRm-0001aR-S1 for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 22:02:55 -0500 Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 5E51E10AFB5 for ; Fri, 2 Mar 2018 19:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=lfwoQlLaW1hVh97WQuOTa+7RDYY=; b=H3Te0QT41be8+QKp t6fDDwVHSMglCWKYlUwooROrah3cP+CLm2HJK+B3+yZqwf3CAV//NNBXTPNmlAzn XZ3ctHQ3AT0WW6fNV8Goeb8yxDvK++3tf7Duh4SJo6XjIAa9ISUps0+VK1gzXEf5 7MeKekbhTgM3HcX1yfJ9YjqWnNc= Received: from jidanni.org (111-246-86-115.dynamic-ip.hinet.net [111.246.86.115]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id C5C5E10AFB0 for ; Fri, 2 Mar 2018 19:02:51 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Sat, 03 Mar 2018 07:34:10 +0800 Message-ID: <87371injbh.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [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: -3.9 (---) 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.9 (---) In the modeline the curious user sees a ":" and clicks it. and sees [DOS], [Mac], etc. Frightened, the user keeps clicking until he cycles back to its original ":" state, and breathes a sigh of relief. But wait, it's time for lunch and time to close the editor program. But now it's asking him about saving the file. "I thought that -r--r--r-- file owned by the boss and which I viewed in read-only mode, or even view-mode, was understood by everybody to be something I didn't intend to meddle with." "Now it thinks I wanted to modify it..." Now with extra sweat dripping, he hits undo, command-execute: Buffer is read-only: # "G*d@*m it, half of the editor knows things are read-only, the other half doesn't." Sure, he can just answer "no" when asked to save the file. But why embroil him this way in the first place. Readonly should be Readonly. Now Curious Other User 2 also clicks the ":". At the end when closing emacs she is asked if she wants to save the file, to which she agrees. Which results in even more warnings and eventual failure to save the file anyway... From unknown Sun Sep 21 03:54:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30685: end-of-file mode should respect read-only mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Mar 2018 08:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 30685@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 30685-submit@debbugs.gnu.org id=B30685.15200658635266 (code B ref 30685); Sat, 03 Mar 2018 08:32:02 +0000 Received: (at 30685) by debbugs.gnu.org; 3 Mar 2018 08:31:03 +0000 Received: from localhost ([127.0.0.1]:41795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1es2ZK-0001Ms-Jo for submit@debbugs.gnu.org; Sat, 03 Mar 2018 03:31:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1es2ZI-0001MM-Mg for 30685@debbugs.gnu.org; Sat, 03 Mar 2018 03:31:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es2Z8-0002yB-Is for 30685@debbugs.gnu.org; Sat, 03 Mar 2018 03:30:55 -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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es2Z8-0002xv-Eu; Sat, 03 Mar 2018 03:30:50 -0500 Received: from [176.228.60.248] (port=4128 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1es2Z7-00015K-QS; Sat, 03 Mar 2018 03:30:50 -0500 Date: Sat, 03 Mar 2018 10:31:06 +0200 Message-Id: <83sh9hv9v9.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87371injbh.fsf@jidanni.org> References: <87371injbh.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) > From: 積丹尼 Dan Jacobson > > Date: Sat, 03 Mar 2018 07:34:10 +0800 > > In the modeline the curious user sees a ":" and clicks it. > and sees [DOS], [Mac], etc. > > Frightened, the user keeps clicking until he cycles back to its original > ":" state, and breathes a sigh of relief. > > But wait, it's time for lunch and time to close the editor program. > > But now it's asking him about saving the file. > > "I thought that -r--r--r-- file owned by the boss and which I viewed in > read-only mode, or even view-mode, was understood by everybody to be > something I didn't intend to meddle with." "Now it thinks I wanted to > modify it..." > > Now with extra sweat dripping, he hits undo, > > command-execute: Buffer is read-only: # > > "G*d@*m it, half of the editor knows things are read-only, the other > half doesn't." > > Sure, he can just answer "no" when asked to save the file. But why > embroil him this way in the first place. Readonly should be Readonly. > > Now Curious Other User 2 also clicks the ":". > At the end when closing emacs she is asked if she wants to save the > file, to which she agrees. Which results in even more warnings and > eventual failure to save the file anyway... If the user had Read the Fine Manual, she'd have known that just two characters to the right, there's that "*" indicator, clicking on which would make the buffer not-modified, and that would have solved all her problems. From unknown Sun Sep 21 03:54:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30685: end-of-file mode should respect read-only mode In-Reply-To: <87371injbh.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Mar 2018 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30685@debbugs.gnu.org Received: via spool by 30685-submit@debbugs.gnu.org id=B30685.152036960817252 (code B ref 30685); Tue, 06 Mar 2018 20:54:02 +0000 Received: (at 30685) by debbugs.gnu.org; 6 Mar 2018 20:53:28 +0000 Received: from localhost ([127.0.0.1]:48076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etJaR-0004UB-TN for submit@debbugs.gnu.org; Tue, 06 Mar 2018 15:53:28 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:40682 helo=homiemail-a3.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etJaO-0004Tv-P0 for 30685@debbugs.gnu.org; Tue, 06 Mar 2018 15:53:25 -0500 Received: from homiemail-a3.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 3AE0128408F; Tue, 6 Mar 2018 12:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=QxwA7+HuTY0O9Z0dDAa GF4hPUrU=; b=KrRynU4t8tT6NDDVZc1SEBf/1qthD3E+Dx6x764UwBJnDZpyG74 wE0lMuKxpzVxg95gr1czr92Fui9ds+c3bbU5CCkLU0MMuHTfrzrfjLFK3VoD0psS j8HTwQ68wcFwXQFN/SPuV7vDC8PB+sxQjJiu7PyS4E41ojorPLmSvlkM= Received: from jidanni.org (114-41-17-253.dynamic-ip.hinet.net [114.41.17.253]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTPSA id F3900284093; Tue, 6 Mar 2018 12:53:23 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87371injbh.fsf@jidanni.org> <83sh9hv9v9.fsf@gnu.org> Date: Wed, 07 Mar 2018 04:35:15 +0800 Message-ID: <87po4h0wos.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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: -0.0 (/) >>>>> "EZ" =3D=3D Eli Zaretskii writes: EZ> If the user had Read the Fine Manual... (info "(emacs) Misc Buffer") A buffer can be =E2=80=9Cread-only=E2=80=9D, which means that commands to= change its contents are not allowed. So add: "'Contents' do not include end-of-line conventions. There is currently no way to protect against them getting changed." From unknown Sun Sep 21 03:54:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30685: end-of-file mode should respect read-only mode Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Mar 2018 22:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=C3=A7=C2=A9=C2=8D=C3=A4=C2=B8=C2=B9=C3=A5=C2=B0=C2=BC?= Dan Jacobson Cc: eliz@gnu.org, 30685@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 30685-submit@debbugs.gnu.org id=B30685.152046349323991 (code B ref 30685); Wed, 07 Mar 2018 22:59:01 +0000 Received: (at 30685) by debbugs.gnu.org; 7 Mar 2018 22:58:13 +0000 Received: from localhost ([127.0.0.1]:49977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eti0j-0006Es-1f for submit@debbugs.gnu.org; Wed, 07 Mar 2018 17:58:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eti0h-0006Ee-Gy for 30685@debbugs.gnu.org; Wed, 07 Mar 2018 17:58:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eti0b-0000De-1l for 30685@debbugs.gnu.org; Wed, 07 Mar 2018 17:58:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eti0Y-0000C8-PX; Wed, 07 Mar 2018 17:58:02 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eti0Y-00054a-22; Wed, 07 Mar 2018 17:58:02 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-reply-to: <87po4h0wos.fsf@jidanni.org> References: <87371injbh.fsf@jidanni.org> <83sh9hv9v9.fsf@gnu.org> <87po4h0wos.fsf@jidanni.org> Message-Id: Date: Wed, 07 Mar 2018 17:58:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] In general, modes and settings of a buffer are not part of its contents. The contents of a buffer are the characters and their text properties. I see the manual doesn't state this basic point anywhere, so would someone please install this patch? I think it belongs in the Emacs 26 manual as well as the current manual. diff -u /home/rms/emacs-git/build-nov-15/doc/emacs/buffers.texi.\~1\~ /home/rms/emacs-git/build-nov-15/doc/emacs/buffers.texi --- /home/rms/emacs-git/build-nov-15/doc/emacs/buffers.texi.~1~ 2017-11-09 12:20:47.729828394 -0500 +++ /home/rms/emacs-git/build-nov-15/doc/emacs/buffers.texi 2018-03-07 04:43:40.211708142 -0500 @@ -32,6 +32,12 @@ that window is current. When there are multiple windows, the buffer displayed in the @dfn{selected window} is current. @xref{Windows}. +@cindex buffer contents +@cindex contents of a buffer + A buffer's @dfn{contents} consist of a series of characters, each of +which optionally carries a set of text properties (@pxref{Enriched Text}) +which can specify more information about that character. + Aside from its textual contents, each buffer records several pieces of information, such as what file it is visiting (if any), whether it is modified, and what major mode and minor modes are in effect Diff finished. Wed Mar 7 04:43:48 2018 -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) Skype: No way! See https://stallman.org/skype.html. From unknown Sun Sep 21 03:54:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30685: end-of-file mode should respect read-only mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Mar 2018 15:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: 30685@debbugs.gnu.org, jidanni@jidanni.org Reply-To: Eli Zaretskii Received: via spool by 30685-submit@debbugs.gnu.org id=B30685.152052409710484 (code B ref 30685); Thu, 08 Mar 2018 15:49:01 +0000 Received: (at 30685) by debbugs.gnu.org; 8 Mar 2018 15:48:17 +0000 Received: from localhost ([127.0.0.1]:51401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etxmD-0002j1-1D for submit@debbugs.gnu.org; Thu, 08 Mar 2018 10:48:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etxmB-0002io-Tm for 30685@debbugs.gnu.org; Thu, 08 Mar 2018 10:48:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etxm3-0000X6-J8 for 30685@debbugs.gnu.org; Thu, 08 Mar 2018 10:48:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etxm3-0000Wy-Fc; Thu, 08 Mar 2018 10:48:07 -0500 Received: from [176.228.60.248] (port=3917 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1etxlw-0002mv-AK; Thu, 08 Mar 2018 10:48:00 -0500 Date: Thu, 08 Mar 2018 17:47:55 +0200 Message-Id: <83y3j2o9g4.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Richard Stallman on Wed, 07 Mar 2018 17:58:02 -0500) References: <87371injbh.fsf@jidanni.org> <83sh9hv9v9.fsf@gnu.org> <87po4h0wos.fsf@jidanni.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) > From: Richard Stallman > CC: eliz@gnu.org, 30685@debbugs.gnu.org > Date: Wed, 07 Mar 2018 17:58:02 -0500 > > I see the manual doesn't state this basic point anywhere, > so would someone please install this patch? Done. From unknown Sun Sep 21 03:54:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Subject: bug#30685: closed (Re: bug#30685: end-of-file mode should respect read-only mode) Message-ID: References: <83woymo9ex.fsf@gnu.org> <87371injbh.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 30685 X-Gnu-PR-Package: emacs Reply-To: 30685@debbugs.gnu.org Date: Thu, 08 Mar 2018 15:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1520524142-10567-1" This is a multi-part message in MIME format... ------------=_1520524142-10567-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #30685: end-of-file mode should respect read-only mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 30685@debbugs.gnu.org. --=20 30685: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30685 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1520524142-10567-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 30685-done) by debbugs.gnu.org; 8 Mar 2018 15:48:52 +0000 Received: from localhost ([127.0.0.1]:51404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etxmm-0002ju-9X for submit@debbugs.gnu.org; Thu, 08 Mar 2018 10:48:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etxml-0002jf-1B for 30685-done@debbugs.gnu.org; Thu, 08 Mar 2018 10:48:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etxmc-00010p-TE for 30685-done@debbugs.gnu.org; Thu, 08 Mar 2018 10:48:46 -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.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etxmc-00010f-QE; Thu, 08 Mar 2018 10:48:42 -0500 Received: from [176.228.60.248] (port=3918 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1etxmc-0002oG-7R; Thu, 08 Mar 2018 10:48:42 -0500 Date: Thu, 08 Mar 2018 17:48:38 +0200 Message-Id: <83woymo9ex.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-reply-to: <87po4h0wos.fsf@jidanni.org> (message from =?utf-8?B?56mN5Li5?= =?utf-8?B?5bC8?= Dan Jacobson on Wed, 07 Mar 2018 04:35:15 +0800) Subject: Re: bug#30685: end-of-file mode should respect read-only mode References: <87371injbh.fsf@jidanni.org> <83sh9hv9v9.fsf@gnu.org> <87po4h0wos.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30685-done Cc: 30685-done@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: 積丹尼 Dan Jacobson > Cc: 30685@debbugs.gnu.org > Date: Wed, 07 Mar 2018 04:35:15 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > EZ> If the user had Read the Fine Manual... > > (info "(emacs) Misc Buffer") > A buffer can be “read-only”, which means that commands to change its > contents are not allowed. > > So add: > > "'Contents' do not include end-of-line conventions. There is currently > no way to protect against them getting changed." I clarified this in a different way. Thanks. ------------=_1520524142-10567-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Mar 2018 03:03:09 +0000 Received: from localhost ([127.0.0.1]:41717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erxS1-0001rp-ML for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erxRz-0001rU-E2 for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erxRt-0001on-IS for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_50,DATE_IN_PAST_03_06, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erxRt-0001oW-G2 for submit@debbugs.gnu.org; Fri, 02 Mar 2018 22:03:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erxRs-0003Yy-7W for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 22:03:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erxRn-0001co-4G for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 22:03:00 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:59850 helo=homiemail-a38.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erxRm-0001aR-S1 for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 22:02:55 -0500 Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 5E51E10AFB5 for ; Fri, 2 Mar 2018 19:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=lfwoQlLaW1hVh97WQuOTa+7RDYY=; b=H3Te0QT41be8+QKp t6fDDwVHSMglCWKYlUwooROrah3cP+CLm2HJK+B3+yZqwf3CAV//NNBXTPNmlAzn XZ3ctHQ3AT0WW6fNV8Goeb8yxDvK++3tf7Duh4SJo6XjIAa9ISUps0+VK1gzXEf5 7MeKekbhTgM3HcX1yfJ9YjqWnNc= Received: from jidanni.org (111-246-86-115.dynamic-ip.hinet.net [111.246.86.115]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id C5C5E10AFB0 for ; Fri, 2 Mar 2018 19:02:51 -0800 (PST) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: end-of-file mode should respect read-only mode Date: Sat, 03 Mar 2018 07:34:10 +0800 Message-ID: <87371injbh.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [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: -3.9 (---) 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: -3.9 (---) In the modeline the curious user sees a ":" and clicks it. and sees [DOS], [Mac], etc. Frightened, the user keeps clicking until he cycles back to its original ":" state, and breathes a sigh of relief. But wait, it's time for lunch and time to close the editor program. But now it's asking him about saving the file. "I thought that -r--r--r-- file owned by the boss and which I viewed in read-only mode, or even view-mode, was understood by everybody to be something I didn't intend to meddle with." "Now it thinks I wanted to modify it..." Now with extra sweat dripping, he hits undo, command-execute: Buffer is read-only: # "G*d@*m it, half of the editor knows things are read-only, the other half doesn't." Sure, he can just answer "no" when asked to save the file. But why embroil him this way in the first place. Readonly should be Readonly. Now Curious Other User 2 also clicks the ":". At the end when closing emacs she is asked if she wants to save the file, to which she agrees. Which results in even more warnings and eventual failure to save the file anyway... ------------=_1520524142-10567-1--