From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Musings on creating an HTML-based WYSIWYG mode Date: Tue, 01 May 2018 21:45:00 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525225395 17147 195.159.176.226 (2 May 2018 01:43:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 01:43:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 02 03:43:11 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDgnU-0004IR-Fn for ged-emacs-devel@m.gmane.org; Wed, 02 May 2018 03:43:08 +0200 Original-Received: from localhost ([::1]:46992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDgpa-0008HS-UF for ged-emacs-devel@m.gmane.org; Tue, 01 May 2018 21:45:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDgpV-0008Gx-Ch for emacs-devel@gnu.org; Tue, 01 May 2018 21:45:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDgpQ-0005kK-HA for emacs-devel@gnu.org; Tue, 01 May 2018 21:45:13 -0400 Original-Received: from [195.159.176.226] (port=58925 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDgpQ-0005jc-9j for emacs-devel@gnu.org; Tue, 01 May 2018 21:45:08 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fDgnG-00041E-Ur for emacs-devel@gnu.org; Wed, 02 May 2018 03:42:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:6iQ/sQ5jHYYLa9jjR8LzGMZ+MlU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225019 Archived-At: > Let's say the user is typing away at something resembling this > paragraph, and then decides to make "typing" bold, so the user would go > back to that work, mark it and issue whatever command there is for "make > this bold". The mode would do the change to the HTML document, ask shr > to re-render it, and then display the results. Sounds OK. > This is, of course, not like what Emacs does normally when editing text, > and would break a lot of invariants that people are used to. I don't think so, actually. At least, I don't think it should be very serious issue (and in the worst case we could do a comparison between the old and new rendering to try and modify only the "relevant" portion of the buffer). IOW, nothing too worrisome. > So here's what I think: I think somebody (i.e., me) should try ^^ Huh? Me? No way! I think you meant you! > But like I said, I don't have time at the moment. :-) Sounds like the ideal moment to start hacking then! Stefan