From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#58843: Print "decrypted" rot13 text is buffer is read-only Date: Sat, 29 Oct 2022 06:28:43 +0000 Message-ID: <87k04j16uc.fsf@posteo.net> References: <877d0j3ix1.fsf@posteo.net> <838rkzkb99.fsf@gnu.org> <87zgdf20zr.fsf@posteo.net> <835yg3jhxm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58843@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 08:29:23 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 1oofLO-0003LT-IY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 08:29:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oofL7-00039U-8I; Sat, 29 Oct 2022 02:29:05 -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 1oofL4-00038i-KY for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 02:29:02 -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 1oofL4-0000BG-BY for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 02:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oofL4-0002UH-69 for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 02:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 06:29: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.16670249359548 (code B ref 58843); Sat, 29 Oct 2022 06:29:02 +0000 Original-Received: (at 58843) by debbugs.gnu.org; 29 Oct 2022 06:28:55 +0000 Original-Received: from localhost ([127.0.0.1]:34820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oofKw-0002Tw-OV for submit@debbugs.gnu.org; Sat, 29 Oct 2022 02:28:55 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:50745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oofKs-0002Td-E5 for 58843@debbugs.gnu.org; Sat, 29 Oct 2022 02:28:52 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A3356240027 for <58843@debbugs.gnu.org>; Sat, 29 Oct 2022 08:28:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667024924; bh=eF04Eh790q8XjXTp8ilEOldqmjsGx+ezLsRQTTVEe98=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=U/aR/8go1zjZodutVu9PIN8lbfO2qz+zq06ZG50tCcQlgMTOLJNxqxEr0Bq0s1U+X HyYTpZpLSpWMQtpqa0xkXXrQLfukRuo7kZF7j+bOCeCvfi3thf0Ot6GgicK+4GP26C 95ryugGZ8p4Yrd3LRXsVO0bfd9BGSxe+HLOjPTVlmaGkpEk+ybXVd1cQBGNGMwFy0E 2CD6cf1N6uNAxX/vsTYzo7/BjiBZO1rOlJrRJucHbUD8eD5JoZlTx2d+SuL1h2o+/a bySUDv02cZC9wM4Tqvb3dy40VLSwT6h/pEo9sHODYRg5YDemgGK6Gj+ZiP13jN2Du0 CwsWZ1Me3ERhQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MzqHb6txdz6tmp; Sat, 29 Oct 2022 08:28:43 +0200 (CEST) In-Reply-To: <835yg3jhxm.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Oct 2022 08:51:49 +0300") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB 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:246487 Archived-At: Eli Zaretskii writes: >> 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? Is there a way to re-use shell-command's behaviour of displaying short messages in the echo area and longer messages in a separate buffer? Popping up a buffer just for one or two lines can be annoying, especially if the information is not something you want to keep around. > This also needs a NEWS entry, I think. Will do.