From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#72241: 31.0.50; [PATCH] Use a dedicated buffer for `doc-view-open-text' Date: Mon, 22 Jul 2024 20:39:54 +0200 Message-ID: <87r0blw9s5.fsf@gnu.org> References: <87jzhd4ysy.fsf@ledu-giraud.fr> <87v80xwb3d.fsf@gnu.org> <86le1t9t5p.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="3497"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72241@debbugs.gnu.org, manuel@ledu-giraud.fr To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 22 20:41:14 2024 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 1sVxyD-0000lJ-Or for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Jul 2024 20:41:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVxy2-0007Va-GR; Mon, 22 Jul 2024 14:41:04 -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 1sVxxz-0007S8-8k for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2024 14:41:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sVxxz-0003Ii-0r for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2024 14:40:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sVxy2-0002V5-BY for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2024 14:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jul 2024 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72241-submit@debbugs.gnu.org id=B72241.17216736129535 (code B ref 72241); Mon, 22 Jul 2024 18:41:02 +0000 Original-Received: (at 72241) by debbugs.gnu.org; 22 Jul 2024 18:40:12 +0000 Original-Received: from localhost ([127.0.0.1]:58586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVxxD-0002Tj-QE for submit@debbugs.gnu.org; Mon, 22 Jul 2024 14:40:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVxxB-0002TU-UQ for 72241@debbugs.gnu.org; Mon, 22 Jul 2024 14:40:10 -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 1sVxx2-0002m5-82; Mon, 22 Jul 2024 14:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=JWH/dm7LimYmY8R+C+QSbJ41HRAJvXXbmWO56MZr8Yg=; b=qWKzxE349sEof/Xbu3cI pFF6CbvS53dCYdW3irWncDX73FgefwWhgJtXqLYpHBfxrI/y0Qu4DeVfFicdGSwd1UzQGpzdqpSdO 88P2N3AfSo4G9CQPcAqYnQlExgrHCyKIuwJaHgcgBIrjKIfru/RDesRXrh7zcxjDhvALH6MKniGFC TpXIk/PhFtQNI3QybQMxyhlU8LApUV53qBR51ZWNAg6e4bb8xT6SBMpKO4tpLqCp6RiM7Szo/Rjak +4K+V2O1Ak0nEb9ILpQVVq1d9UPiiy/5Y0aXkd1Pj5KOyMOwDtsLDgpdxxz3mZUXyHCRzpqyimgaV fCfM8uw4la4NDg==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheejgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepte eltdegheffhfetkeekveekkeevgfegkeetueffleeiheekhffgffeuueegieffnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdel kedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <86le1t9t5p.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Jul 2024 21:29:54 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289126 Archived-At: Eli Zaretskii writes: >> From: Tassilo Horn >> Date: Mon, 22 Jul 2024 20:11:34 +0200 >> >> I'm not sure if a NEWS entry is needed for that change. It certainly >> changes existing behavior but not in a way that usage patterns/muscle >> memory would need to be adapted... > > Can you tell in what way the behavior will change after this? I'd > like to think whether a NEWS entry is necessary and what to day there. Right now, when you open foo.pdf you see the images generated from the PDF. When you do C-c C-t, it'll replace the foo.pdf buffer contents with the plain text contents of the PDF. With another C-c C-c, the contents are again replaced with the PDF and you see the images again. With Manuel's patch, C-c C-t shows the plain text contents in a separate buffer foo.pdf/text. C-c C-c in there kills that separate buffer and switches back to the original foo.pdf buffer. So basically everything you have to do stays the same but there are now two instead of just one buffer. That has the advantage that you can switch between them and removes the possibility that you accidentally overwrite your PDF with the plain text contents (which in what Stefan's FIXME was about). Bye, Tassilo