From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#22819: 25.0.91; Don't try to indent region if the buffer is read-only Date: Tue, 08 Aug 2017 19:19:31 +0000 Message-ID: References: <87vam26amc.fsf@users.sourceforge.net> <83lgmywlo4.fsf@gnu.org> <83y3qtswvv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1a1e946d8563055642d876" X-Trace: blaine.gmane.org 1502220048 29321 195.159.176.226 (8 Aug 2017 19:20:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Aug 2017 19:20:48 +0000 (UTC) Cc: 22819@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 08 21:20:44 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfA3T-00075D-A5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Aug 2017 21:20:39 +0200 Original-Received: from localhost ([::1]:44173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfA3Z-0003lB-F9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Aug 2017 15:20:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfA2x-0003GN-Dx for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2017 15:20:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfA2s-0007sQ-L9 for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2017 15:20:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43547) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfA2s-0007sK-Gu for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2017 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dfA2r-0007SU-Qo for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2017 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Aug 2017 19:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 22819-submit@debbugs.gnu.org id=B22819.150221999028649 (code B ref 22819); Tue, 08 Aug 2017 19:20:01 +0000 Original-Received: (at 22819) by debbugs.gnu.org; 8 Aug 2017 19:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:52228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfA2f-0007S1-V8 for submit@debbugs.gnu.org; Tue, 08 Aug 2017 15:19:50 -0400 Original-Received: from mail-lf0-f45.google.com ([209.85.215.45]:32912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfA2e-0007Rm-AE for 22819@debbugs.gnu.org; Tue, 08 Aug 2017 15:19:48 -0400 Original-Received: by mail-lf0-f45.google.com with SMTP id d17so19132852lfe.0 for <22819@debbugs.gnu.org>; Tue, 08 Aug 2017 12:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4C2doeA3UG/jQO4M0S61l/hk+nDaUUvKqymNP8QPixw=; b=A2GyxoyWGu5npr16hlNQfTOaJQ+nzwUzbcecdrsDHXJ3fNnZVnv/jpRr1yj7UosU2n MQLgAqjEFQEgRJ1s7//adzziha9NIzs40ry8KUsun6OGo5WYxGmKS2WDY0rIrSCue1pq iMdyl5y3PHtGi662hAkENIV1pqY/CDYSIw+X9OAyf0hS9gZFOpysPn2KDX4oub+fTobC 5xufaRRf00URcVSN2UouG4eMfXaPdG8Y09pRiI3VGpM+352vW/vsWcPXVrMpRWlxajIo xdDVa4R+l/M8p01W5e8g0stqHB9oUG2jqlNlSiPIfdsT9h9S/M0kcrad+8MCnSzdjyot sRlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4C2doeA3UG/jQO4M0S61l/hk+nDaUUvKqymNP8QPixw=; b=LfSM0IwiETBbsO+K5HqltepY98OXeWkAdA7XqWvKTkdD6hWQf/lexbOX0tmMwv8Ir+ R1RHuf3n445EaRp2an48Wjlj5AtVsDWUjPrZE4+/SPwfgQoUmRImCl6u1VUt6GctVTOW pIPkjftiY/5mhEY8bAsVOI1cugOJm1kNo+BmkGyHBCQkapoy2MeE4MuMWbpHpkQiav0h NxzssZPpBPje9fULim1QDB5x6ogpKHXBRk8SuHKF+vlYglmUuw4yAQ8c9LjUMWcY7Cmx ZsC8robrUHunKt+l/s5FuH8ToZRtUA2mseXTRB49vS5Ot7xACI2zC9g3THzr3/PhuP5r 5DBw== X-Gm-Message-State: AHYfb5jM/3B9/gr8a7lEBaQhJmA6gEvSsOc7IfUfvb77E7hUhmEIpydf lZOWqVH+IZvO5dBzNUhFk9uufe1e7g== X-Received: by 10.25.72.21 with SMTP id v21mr1583105lfa.201.1502219982438; Tue, 08 Aug 2017 12:19:42 -0700 (PDT) In-Reply-To: <83y3qtswvv.fsf@gnu.org> 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: 208.118.235.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:135578 Archived-At: --94eb2c1a1e946d8563055642d876 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 8, 2017 at 3:06 PM Eli Zaretskii wrote: > > I'm not sure what is it that you are asking me. You already know my > opinion on this proposal, and it hasn't changed. > I don't know what the outcome should be in this case: - No one raised any issue moving forward with this in that emacs-devel. - The concern you raised about indent-region having side-effects doesn't seem practical. Indenting is a buffer-editing act for which the buffer should not be read-only. If there are some side-effects other than that, then that's a different problem. Also no one has presented a real scenario where this proposal would cause an issue. - Talking about pilot-error, this proposal simply alerts the user of the pilot-error (doing indentation in read-only buffer) sooner rather than later, thus saving the user's time. So I don't know how differences are resolved in cases like this. The proposal in this thread is to solve a real-life time-consuming annoyance, where-as the against-point is about side-effects getting masked, and which do not have any real-life examples. -- Kaushal Modi --94eb2c1a1e946d8563055642d876 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Aug 8,= 2017 at 3:06 PM Eli Zaretskii <eliz@gnu= .org> wrote:

I'm not sure what is it that you are asking me.=C2=A0 You already know = my
opinion on this proposal, and it hasn't changed.
<= br>
I don't know what the outcome should be in this case:
- No one raised any issue moving forward with this in that emacs-dev= el.
- The concern you raised about indent-region having side-effe= cts doesn't seem practical. Indenting is a buffer-editing act for which= the buffer should not be read-only. If there are some side-effects other t= han that, then that's a different problem. Also no one has presented a = real scenario where this proposal would cause an issue.
- Talking= about pilot-error, this proposal simply alerts the user of the pilot-error= (doing indentation in read-only buffer) sooner rather than later, thus sav= ing the user's time.

So I don't know how d= ifferences are resolved in cases like this. The proposal in this thread is = to solve a real-life time-consuming annoyance, where-as the against-point i= s about side-effects getting masked, and which do not have any real-life ex= amples.
--

Kaushal Modi

--94eb2c1a1e946d8563055642d876--