all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* additional functionality for html-helper-mode
@ 2017-05-22 22:34 ken
  2017-05-22 22:53 ` Jean-Christophe Helary
  2017-05-23  0:29 ` Emanuel Berg
  0 siblings, 2 replies; 16+ messages in thread
From: ken @ 2017-05-22 22:34 UTC (permalink / raw)
  To: help-gnu-emacs

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:

<h1>Chapter One</h1>

<p>This is a paragraph.  There would be many of these.

  </p>

<h1>Chapter Two</h1>

<p>Paragraph in Chapter II. blah blah blah

  </p>

<h1>Chapter Three</h1>

<p>More paragraphs for this chapter also.

  </p>

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

<h1>Chapter One</h1>

<h1>Chapter Two</h1>

<p>Paragraph in Chapter II. blah blah blah

  </p>

<h1>Chapter Three</h1>

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.





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-05-26 21:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-22 22:34 additional functionality for html-helper-mode ken
2017-05-22 22:53 ` Jean-Christophe Helary
2017-05-23 17:43   ` ken
2017-05-23 22:13     ` Jean-Christophe Helary
2017-05-24  4:46       ` Yuri Khan
2017-05-24 18:27         ` ken
2017-05-25 22:47         ` John Ankarström
2017-05-24 18:25       ` ken
2017-05-23  0:29 ` Emanuel Berg
2017-05-23 18:49   ` ken
2017-05-24 19:27     ` Emanuel Berg
2017-05-25 21:58       ` ken
2017-05-26  6:26         ` Yuri Khan
2017-05-26 12:39           ` Emanuel Berg
2017-05-26 13:34             ` Yuri Khan
2017-05-26 21:05               ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.