From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#33855: 27.0.50; Can't see markup in HELLO Date: Wed, 18 May 2022 15:07:59 +0200 Message-ID: <87czgbc7kg.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31568"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 33855@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 18 15:12:03 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 1nrJT9-0007zz-AO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 15:12:03 +0200 Original-Received: from localhost ([::1]:49782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrJT8-000742-1C for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 09:12:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrJQE-0003oe-FB for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 09:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrJQE-0006q3-6f for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrJQE-0001Wa-1d for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2022 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33855 X-GNU-PR-Package: emacs Original-Received: via spool by 33855-submit@debbugs.gnu.org id=B33855.16528793055808 (code B ref 33855); Wed, 18 May 2022 13:09:01 +0000 Original-Received: (at 33855) by debbugs.gnu.org; 18 May 2022 13:08:25 +0000 Original-Received: from localhost ([127.0.0.1]:59378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrJPY-0001VV-Hi for submit@debbugs.gnu.org; Wed, 18 May 2022 09:08:25 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:39590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrJPT-0001V1-MT for 33855@debbugs.gnu.org; Wed, 18 May 2022 09:08:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2uflGYsCn1xO4xoOk2ZC1FlG+ocUFsx5UPesIKW5FNE=; b=afGiUNRyfokNm1Bj4jFdA5GRO6 Ael+h/B9BLuX+8rwXPBcXaqcpIUmYchUT2WzCr7FavWGc4qHh4eley7xmyjVaQbtBZD9wte3xxfEL S7wEZAkSclzTocmOfL4pa5tA6AAUqIQ991tEuDUY2YrOYfIpUvmQh10jU2Vvvp1+lPmc=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrJPF-0007TK-VG; Wed, 18 May 2022 15:08:08 +0200 X-Now-Playing: Nils Petter =?UTF-8?Q?Molv=C3=A6r's?= _Solid Ether_: "Vilderness 2" In-Reply-To: (Stefan Monnier's message of "Sun, 23 Dec 2018 17:15:57 -0500") 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:232560 Archived-At: Stefan Monnier writes: > I can't seem to figure out how to conveniently edit the markup. > In modes like image-mode, postscript-mode, doc-view-mode, ..., we can > choose between the "edit source" and "view rendering", but for > enriched-mode buffers, all I find is find-file-literally which not only > makes the markup explicit but also shows me the bytes rather than the > chars, which is not what I want. > > I think we should add a way to see (and edit) the markup. > Maybe the corresponding command can be `enriched-mode` (tho currently > that command doesn't do this). > And maybe it can be bound to C-c C-c. This doesn't seem like it should be that difficult to implement. Round-tripping with (enriched-encode (point-min) (point-max) (current-buffer)) and (enriched-decode (point-min) (point-max)) seems to work fine (well, with some post-processing after the first to get rid of colours, so they're not doubly encoded). I'm not quite sure that having the `C-c C-c' command be `enriched-mode' would be all that helpful, though -- was there any particular reason for that in the feature spec? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no