From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Corwin Brust Newsgroups: gmane.emacs.bugs Subject: bug#43844: 27.1; Mouse-3 avoid "Buffer is read-only" *patch* Date: Fri, 29 Jan 2021 09:10:04 -0600 Message-ID: References: <85pn5uxe3k.fsf@gmail.com> <87wnvz9byv.fsf@gnus.org> <87czxoxrml.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25612"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43844@debbugs.gnu.org, Noam Postavsky To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 29 16:11:14 2021 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 1l5VQX-0006RQ-8s for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jan 2021 16:11:13 +0100 Original-Received: from localhost ([::1]:33602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5VQV-000053-U5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jan 2021 10:11:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5VQM-0008WN-B3 for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 10:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5VQM-0004It-3u for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 10:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5VQL-0006jY-Vz for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 10:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Corwin Brust Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jan 2021 15:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43844 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 43844-submit@debbugs.gnu.org id=B43844.161193302625830 (code B ref 43844); Fri, 29 Jan 2021 15:11:01 +0000 Original-Received: (at 43844) by debbugs.gnu.org; 29 Jan 2021 15:10:26 +0000 Original-Received: from localhost ([127.0.0.1]:52785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5VPm-0006iY-Ed for submit@debbugs.gnu.org; Fri, 29 Jan 2021 10:10:26 -0500 Original-Received: from mail-ej1-f42.google.com ([209.85.218.42]:46468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5VPg-0006hb-LO for 43844@debbugs.gnu.org; Fri, 29 Jan 2021 10:10:25 -0500 Original-Received: by mail-ej1-f42.google.com with SMTP id rv9so13444946ejb.13 for <43844@debbugs.gnu.org>; Fri, 29 Jan 2021 07:10:20 -0800 (PST) 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=zQkQTZcaBj9xiB6iXCT9ipHID3s71wIrEKm5jGEgGRU=; b=IlwpAAhbiCEHXDw72hsuIJauTtauccoLS78oDE9fCgTlkNhKLeqtH9wY7Rx82pdw0c pPz5817tycNjsOfmlQZyrmVDbLN90qYFLbbQECfaw/OPKuruBaUthRLutOIPXinLsTNS qN9LTCHVb5prfeVMOoVRgRrTZlovgDJvgJXg4GNduBRlAQuQO0ObCNRlZ8MBR1G5Tp9g ETkSPKlFCO15mzr63QKcajHUTvqMrSuls9iwCXqXxPmYSNzdeu+/ggxz0qLDydgf18mm 1qbhzddVHmDFLHRQr8UIRkWCmi/lSmOel1aecaQPERsr2EzICRhZJfCHIhBg2So3WGe8 vwgQ== X-Gm-Message-State: AOAM531+PZ8gGQqSJdl1i2SiQ3N8NhPFqXXzk3G6+GhQocJnIpEkRtBX MMmcsSLerpau6A2/fWDQNWjXh1DWfEofHZB2R94= X-Google-Smtp-Source: ABdhPJwpWe+VMz3Ia57dmtFJlOKb6jbMaFmSIqWjxGo91aHICix+rfVKxgJSZB69P1a1rl2IcKyOh+3z5/yXyvfL5Dg= X-Received: by 2002:a17:906:b41:: with SMTP id v1mr5017316ejg.277.1611933014827; Fri, 29 Jan 2021 07:10:14 -0800 (PST) In-Reply-To: <87czxoxrml.fsf@gnus.org> 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:198872 Archived-At: Thanks again Lars. On Thu, Jan 28, 2021 at 11:02 PM Lars Ingebrigtsen wrote: > > Corwin Brust writes: > > > Should it be the users responsibility to set this variable (in some > > hook? which?) for any buffers that default to read-only? > > Yes. Some buffers have read-only text, and killing that text will > signal an error (by design), whether you kill the text using the mouse > or with `C-w'. If the user wants to be able to kill the text, then the > user should set that variable. Would you recommend packages such as ERC (or dired?) that essentially create only read-only buffers to set this such that unconfigured defaults don't lead to a user-error? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no Regards, Corwin