From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: additional functionality for html-helper-mode Date: Wed, 24 May 2017 11:46:32 +0700 Message-ID: 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 1495601246 31448 195.159.176.226 (24 May 2017 04:47:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 May 2017 04:47:26 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 24 06:47:23 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 1dDOCg-00081f-Th for geh-help-gnu-emacs@m.gmane.org; Wed, 24 May 2017 06:47:23 +0200 Original-Received: from localhost ([::1]:52688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDOCj-0005qF-93 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 May 2017 00:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDOCF-0005pA-9r for help-gnu-emacs@gnu.org; Wed, 24 May 2017 00:46:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDOCE-0004Ph-O1 for help-gnu-emacs@gnu.org; Wed, 24 May 2017 00:46:55 -0400 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:37356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDOCE-0004PF-Hb for help-gnu-emacs@gnu.org; Wed, 24 May 2017 00:46:54 -0400 Original-Received: by mail-wm0-x230.google.com with SMTP id d127so51899308wmf.0 for ; Tue, 23 May 2017 21:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=FncsYSsSGurdwSXnbViqD+UEG7Vk8geCY9ri4/IlExA=; b=F/1AGRJcRoEUg7e2F2LrCdjtnTL5TJTed+HsciZSp/VsN3ikULqO952L8X8SA8Z1bZ UC+NF3NUyXVSxuHtABRqM8k7IpJXAcGyCZEaN2e0MOVXp7HwdQtMCcikSTG6eW60ybSL LCX9GjDBZnuzr0XcOL7Q+dgqch754KtwW4yDWeUp2u6QivHyqtRxRvYfisuTr5YXbTdX Jb49/BzT2sOmVG9W27qDKZMaJAe4MGwbQH3zdz2Pvg7mG9tMHX0s87jFsqPJext2AG5+ ++icbxcVTIpCiko1/j0+ndvLdHDXZZg0O3nbvFpwcT/nSLOvspMEF1Ns//kMEIqSLBAb r3aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=FncsYSsSGurdwSXnbViqD+UEG7Vk8geCY9ri4/IlExA=; b=HF4VwUPM7fy+1R5zhJRcj7MWaBDVLYjQ3m80Xj1NlW+4zbSkDqoON/C4Eq1pZhwYb7 VfammfF8MsjBwlnrRyCUF3KzTLzDlBJNl70aeQwRcyoct2iD5+mHfvtXCeJFRcCbV334 FqeGeUFpYdENIsYgEfCLtvKcXxiVR3gF/K4CI6gGwSRFYnH5GV2BKrhojdF0OuAjsckJ zJG0kwDc2Jk2LCNie4A+SPQb/3BGPZyxvzTXaQoNfCP40CQxT/8WCju8tLxHlWP3xd8/ Vsn4d2RbKuszSgg8psjuNreDeWW51+ciOwjr+QlMrNJTskxkuu1fAjLPwQphW77e0JrM QePA== X-Gm-Message-State: AODbwcD7fmirWSeSe4CWuzazn56HrVjW1OnusrL+dAhAp7z24cTeeHp7 tbfxUMFNcWktORwoFo+Wd6fZe0ICSQ== X-Received: by 10.223.146.166 with SMTP id 35mr2056393wrn.98.1495601212866; Tue, 23 May 2017 21:46:52 -0700 (PDT) Original-Received: by 10.223.163.196 with HTTP; Tue, 23 May 2017 21:46:32 -0700 (PDT) In-Reply-To: <13A306C5-EDE7-4E56-A9BB-80515BEAB437@gmail.com> X-Google-Sender-Auth: GW6ARavra9n-Vy0z1pPAcr5otnw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 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:113155 Archived-At: On Wed, May 24, 2017 at 5:13 AM, Jean-Christophe Helary wrote: >> However, it doesn't seem to understand html, i.e., only affects CSS defi= nitions enclosed within curly braces, { and }. > > Ok, a quick search with "html, folding, emacs) brought these: Keep in mind that with regard to HTML there are two possible interpretations of folding. * One is folding the contents between two paired tags:

{{=E2=80=A6}}

= . * 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

. The first is what a typical general-purpose folding library is going to implement. The second can arguably be called =E2=80=9Cunderstanding HTML= =E2=80=9D, and is what Ken is asking for. (And no, I don=E2=80=99t have any experience with HTML folding in Emacs.)