From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58843: Print "decrypted" rot13 text is buffer is read-only Date: Sat, 29 Oct 2022 08:51:49 +0300 Message-ID: <835yg3jhxm.fsf@gnu.org> References: <877d0j3ix1.fsf@posteo.net> <838rkzkb99.fsf@gnu.org> <87zgdf20zr.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58843@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 07:55:06 2022 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 1ooeoC-0004wP-9p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 07:55:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooemu-0004YO-Gr; Sat, 29 Oct 2022 01:53:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooemH-0004FS-FI for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 01:53:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooemE-0002yN-S7 for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 01:53:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooemE-0001c0-Fj for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 01:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 05:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58843-submit@debbugs.gnu.org id=B58843.16670227236124 (code B ref 58843); Sat, 29 Oct 2022 05:53:02 +0000 Original-Received: (at 58843) by debbugs.gnu.org; 29 Oct 2022 05:52:03 +0000 Original-Received: from localhost ([127.0.0.1]:34808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooelG-0001ai-Rf for submit@debbugs.gnu.org; Sat, 29 Oct 2022 01:52:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooelC-0001aC-Pu for 58843@debbugs.gnu.org; Sat, 29 Oct 2022 01:52:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooel7-0002tt-7S; Sat, 29 Oct 2022 01:51:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TACBRWBjD1U3Dsp4NvfjrKfxSiudH2RU2M2WDSliIC4=; b=rsCZHXbT38/6 ShiMHEZbXfIRbQYHNMzUBOQeFgcyWMqq3hfqKrNwLW0695i9/cKDWHCX8LEYAZdStNGJKxpZMSrv6 mJCW+7t7DUXqhnBbxjxWHx4J5Hf557WT1OaBlkxDUqHyoaDTgTQ12glGkzaTNNBMN0ZvNXIgXBV0d iUTSu/nyM/kA6ZoeuyjxY4j/c4DD8IBrQFTx99kddtKIhgJeeHk4mPiNRftSGL3JkgnE9NrIUsAap SMPo/u0Pb1KBpvUnq9ImRfnQ9/lC6hK+qEC11zBgptvCkYz2khTr8qYVUmdWEBF6P8tg5vl6uVLHX VCeXKC1b20UlGzOJNyg40A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooel5-0006Se-N1; Sat, 29 Oct 2022 01:51:52 -0400 In-Reply-To: <87zgdf20zr.fsf@posteo.net> (message from Philip Kaludercic on Fri, 28 Oct 2022 19:37:28 +0000) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246485 Archived-At: > From: Philip Kaludercic > Cc: 58843@debbugs.gnu.org > Date: Fri, 28 Oct 2022 19:37:28 +0000 > > >> When someone sends you rot13'ed text but the buffer is read-only, it > >> seems the next best thing one can do is to print the decrypted text. I > >> don't think it makes sense in general for `translate-region' to do the > >> same, so I just modified the code in rot13.el. > > > > Thanks, but I see no patch in your message. I see a complete rot13.el > > file. > > Oops, I must have selected the wrong file. Showing the result in the echo-area is a good idea, but echo-area is not really suitable for displaying arbitrarily long text. How about popping a window with a temporary buffer instead? This also needs a NEWS entry, I think.