From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: additional functionality for html-helper-mode Date: Mon, 22 May 2017 18:34:33 -0400 Message-ID: <650fe062-eeb2-168d-35a9-6da6bb8c5228@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1495492527 3520 195.159.176.226 (22 May 2017 22:35:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 May 2017 22:35:27 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 23 00:35:17 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 1dCvv2-0000fQ-Qp for geh-help-gnu-emacs@m.gmane.org; Tue, 23 May 2017 00:35:16 +0200 Original-Received: from localhost ([::1]:45186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCvv8-0003Di-0I for geh-help-gnu-emacs@m.gmane.org; Mon, 22 May 2017 18:35:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCvua-0003DN-AT for help-gnu-emacs@gnu.org; Mon, 22 May 2017 18:34:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCvuW-0007DL-8l for help-gnu-emacs@gnu.org; Mon, 22 May 2017 18:34:48 -0400 Original-Received: from mout.perfora.net ([74.208.4.196]:55328) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCvuW-0007Cn-0i for help-gnu-emacs@gnu.org; Mon, 22 May 2017 18:34:44 -0400 Original-Received: from nv.mousecar.net ([96.27.75.237]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LvSth-1du8Wj2HuV-010eG3 for ; Tue, 23 May 2017 00:34:38 +0200 Content-Language: en-US X-Provags-ID: V03:K0:lGFTFSNoGAC63JfuckUNePp0Acg78IY3GTnbINATRYnvC+P2Cva dpeKuL+qBqdIAONBv42kXLgvh8jrOTQMfM6+kXujx7oiwWVxAnvPjNj3Y5tAxFYbdgkJywT ftdgGz3GJVfR3fw+zH7IhNxogWK0glUgJ21mruACVC4z/Bxde+Mv2wo+3SkHOFtpuvYkLUy eB/eJagh3zFLwFikpvUzQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:BY6hcE6QNsg=:XJ5c+Cl7J4J/6LrJ4uKsCo JkR6bFFEHphDwqnX5Z+3rVqiUWZkzNkqPNuSlfYPyCfOWazQzjdC0qe8zF1i5SzRfr3mW87OI Dmg8XaDn0P5OkfA2MOrmHuzb1cVJSrMrhHXRaPS9TqlyHRxVaF1Fb2oBLW6nmD6+VfJV9g4UL um1BuYx+W8DwuZMPykcIH76iTZ3QoDBDn3mPS087VWOaGfBfzMwi0wVX43XdfJWdZW1kDuUWQ QDE8qCj2wnW6R1V5wtOAXz5Wanl08ErRNEnQ9o/5CIoKp4IYovYbDE4DOSL3sZSSFq5EorDPe 3r3ek3cjxMMzDrGl2nTJAvlm+1sG29vIo8RO6pAxIBwmNeN4G+jW1/OTs5KdSflpmSfxhVJ6F G+ReaVHo8QqcuKVj/nNIAnV8is7aBk6GPYAkwYgPaqUqV07rNL+qAL8rSnR0MOcITR4C8DB94 nxopB2Wu8nLleJVLdVw80UxnEJzf4+JGtWmGEOG2Uvj72U/i1EvZF+P5LbyQVPiWmzvvzpH+B JcCIPeEloxJ29I4rd095Iz0uz7IQMkZj8a+OzVDUX71fbWD5XHfQ2shWDIQ7MDjujq0CSSsUj 5KAjfAO24rfRAJ9oExFrXbT3ZTBXxsS3E6Ks3y18iRfub8zm8LnlqoLNywWT+m8zLN8tOdgZv esumZZU1ouNtxssdvGkrwehKodFtM1tOgToV5IN/owtzPZ3t79YwaD+jC3a6G9uL27VquxsDR AWjNECmTVoP4bpEK X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.208.4.196 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:113129 Archived-At: Another current conversation about emacs & elisp programming got me thinking again.... There is some mode in emacs which can selectively and flexibly "collapse" and "expand" selected blocks of text; that is, make it/them visible to the user or not display them. It was a long time ago, but I believe that was org-mode. Would it be possible to integrate that functionality into html-helper-mode so that chapters could be selectively collapsed or expanded? For example, I might have:

Chapter One

This is a paragraph. There would be many of these.

Chapter Two

Paragraph in Chapter II. blah blah blah

Chapter Three

More paragraphs for this chapter also.

Then I'd want to not see the contents of chapter 2 only, like this:

Chapter One

Chapter Two

Paragraph in Chapter II. blah blah blah

Chapter Three

Of course all the text for all chapters would still be there in the file, just not visible in emacs. I could still pull the file into a browser and see the entire thing. I'm fairly certain this would be possible. The question is, I guess, what would be the easiest way to do it? Much thanks.