From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John =?utf-8?Q?Ankarstr=C3=B6m?= Newsgroups: gmane.emacs.help Subject: Re: additional functionality for html-helper-mode Date: Fri, 26 May 2017 00:47:42 +0200 Message-ID: <87wp945zap.fsf@ankarstrom.se> References: <650fe062-eeb2-168d-35a9-6da6bb8c5228@mousecar.com> <924DC588-7F0B-47B4-A7BC-3D9DA3D4650A@gmail.com> <97e2b3a5-52c1-178d-6d03-2fa86d7a9dbc@mousecar.com> <13A306C5-EDE7-4E56-A9BB-80515BEAB437@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495752505 3305 195.159.176.226 (25 May 2017 22:48:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 22:48:25 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Yuri Khan , Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 26 00:48:18 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1dE1YH-0000e8-CC for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2017 00:48:17 +0200 Original-Received: from localhost ([::1]:33980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dE1YM-0006SJ-Sz for geh-help-gnu-emacs@m.gmane.org; Thu, 25 May 2017 18:48:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dE1Xq-0006SD-R3 for help-gnu-emacs@gnu.org; Thu, 25 May 2017 18:47:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dE1Xm-0004Wm-UA for help-gnu-emacs@gnu.org; Thu, 25 May 2017 18:47:50 -0400 Original-Received: from pusjkin.ankarstrom.se ([172.104.152.215]:38100) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dE1Xm-0004V6-ML for help-gnu-emacs@gnu.org; Thu, 25 May 2017 18:47:46 -0400 Original-Received: from localhost (c83-253-24-36.bredband.comhem.se [83.253.24.36]) by pusjkin.ankarstrom.se (Postfix) with ESMTPSA id 2E1E53DA52; Fri, 26 May 2017 00:47:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ankarstrom.se; s=default; t=1495752459; bh=xU2FvXzeCyAnS/O8yFXoXlVg6ne7NWl2Q15WSNebgA8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DinBd0UapMX+ffZSRfjpHVyj29CvYjZLgStFhRDo1Pn3t9TYFuDBvMQmwPHG21JRA ZkytXmexvpS9a+MbOAeZfvTVT+CtqpBqdcRoZ8W4vxDqlqoy29hQeJmh8YjpBQlTjC 7hW3EYmBUH6uDVXVXyDU79cIU1x568oleSfHlAco= In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 172.104.152.215 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113171 Archived-At: Yuri Khan writes: > Keep in mind that with regard to HTML there are two possible > interpretations of folding. > [...] > * Another is folding the contents after a heading up to (but not > including) the next heading of that or higher level on the same level > of element nesting:

Foo

{{=E2=80=A6}}

Bar

. I'm not sure that's an optimal way to interpret or write HTML. Modern tags like
make it easier and more reliable to divide documents into sections, for both humans and programs. The second approach you describe seems a little prone to breaking, as it's hard to know the writer's original intent without explicit
's. Though, there is a case where a similar approach is necessary: for example, to fold paragraphs without a closing

tag (which is valid HTML), or list items without , etc. Though it would surprise me if any HTML folding packages for Emacs supported it ... :-)