Variable: hfy-optimizations

hfy-optimizations is a customizable variable defined in htmlfontify.el.gz.

Value

(keep-overlays)

Documentation

Optimizations to turn on.

So far, the following have been implemented:

  merge-adjacent-tags: If two (or more) span tags are adjacent, identical and
                       separated by nothing more than whitespace, they will
                       be merged into one span.
  zap-comment-links : Suppress hyperlinking of tags found in comments.
  zap-string-links : Suppress hyperlinking of tags found in strings.
  div-wrapper : Add <div class="default"> </div> tags around the
                       output.
  keep-overlays : More of a bell (or possibly whistle) than an
                       optimization - If on, preserve overlay highlighting
                       (cf ediff or goo-font-lock) as well as basic faces.

  body-text-only : Emit only body-text. In concrete terms,
                       1. Suppress calls to hfy-page-header and
                          hfy-page-footer
                       2. Pretend that div-wrapper option above is
                          turned off
                       3. Don't enclose output in <pre> </pre> tags
  And the following are planned but not yet available:

  kill-context-leak : Suppress hyperlinking between files highlighted by
                       different modes.

Note: like compiler optimizations, these optimize the _output_ of the code, not the processing of the source itself, and are therefore likely to slow htmlfontify down, at least a little. Except for skip-refontification, which can never slow you down, but may result in incomplete fontification.

Probably introduced at or before Emacs version 25.1.

Aliases

hfy-optimisations (obsolete since 9.0)

Source Code

;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defcustom hfy-optimizations (list 'keep-overlays)
  "Optimizations to turn on.
So far, the following have been implemented:

  merge-adjacent-tags: If two (or more) span tags are adjacent, identical and
                       separated by nothing more than whitespace, they will
                       be merged into one span.
  zap-comment-links  : Suppress hyperlinking of tags found in comments.
  zap-string-links   : Suppress hyperlinking of tags found in strings.
  div-wrapper        : Add <div class=\"default\"> </div> tags around the
                       output.
  keep-overlays      : More of a bell (or possibly whistle) than an
                       optimization - If on, preserve overlay highlighting
                       (cf ediff or goo-font-lock) as well as basic faces.

  body-text-only     : Emit only body-text.  In concrete terms,
                       1. Suppress calls to `hfy-page-header' and
                          `hfy-page-footer'
                       2. Pretend that `div-wrapper' option above is
                          turned off
                       3. Don't enclose output in <pre> </pre> tags
  And the following are planned but not yet available:

  kill-context-leak  : Suppress hyperlinking between files highlighted by
                       different modes.

Note: like compiler optimizations, these optimize the _output_ of the code,
not the processing of the source itself, and are therefore likely to slow
htmlfontify down, at least a little.  Except for skip-refontification,
which can never slow you down, but may result in incomplete fontification."
  :type  '(set (const :tag "merge-adjacent-tags"  merge-adjacent-tags )
               (const :tag "zap-comment-links"    zap-comment-links   )
               (const :tag "zap-string-links"     zap-string-links    )
               (const :tag "skip-refontification" skip-refontification)
               (const :tag "kill-context-leak"    kill-context-leak   )
               (const :tag "div-wrapper"          div-wrapper         )
               (const :tag "keep-overlays"        keep-overlays       )
               (const :tag "body-text-only"       body-text-only      ))
  :tag   "optimizations")