unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Hong Xu <hong@topbug.net>
To: 21990@debbugs.gnu.org
Subject: bug#21990: htmlfontify fails to generate highly highlighted regions
Date: Sun, 22 Nov 2015 20:43:14 -0800	[thread overview]
Message-ID: <56529962.10301@topbug.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1442 bytes --]

I'm able to reproduce this issue on both the latest snapshot and 24.4.
My OS is GNU/Linux.

To reproduce this issue, follow the following steps:

1. Start emacs with "-q" option in GUI mode and copy the following texts
to emacs and view them in diff mode:

BEGIN================================

diff --git a/gajim.py.orig b/gajim.py
index 57e61e62e8d1..82e36fee351d 100644
--- a/gajim.py.orig
+++ b/gajim.py
@@ -36,12 +36,12 @@
 ##

 import os
-import sys
+xxxxxxxxxxxximport sys
 import warnings

 if os.name == 'nt':
     log_path = os.path.join(os.environ['APPDATA'], 'Gajim')
-    if not os.path.exists(log_path):
+    f not os.path.exists(log_path):
         os.mkdir(log_path, 0o700)
     log_file = os.path.join(log_path, 'gajim.log')
     fout = open(log_file, 'a')
@@ -523,7 +523,7 @@ if __name__ == '__main__':
     check_paths.check_and_possibly_create_paths()

     interface = Interface()
-    interface.run()
+   interface.run()

     try:
         Gtk.main()

END ===================================

2. Press Meta-n multiple times to make sure all changed texts are
highlighted. It should look like the following:

    https://i.imgur.com/xVdQgxk.png

3. M-x htmlfontify-buffer, and save the output html file.

4. Look at it in a browser. The deeply highlighted region (such as the
"xxxxxxxxxx") is not highlighted at all.

My HTML output is attached so you can view it.


[-- Attachment #1.2: a.patch.html --]
[-- Type: text/html, Size: 10192 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

             reply	other threads:[~2015-11-23  4:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23  4:43 Hong Xu [this message]
2016-01-15 23:48 ` bug#21990: htmlfontify fails to generate highly highlighted regions Phillip Lord
2016-01-16  0:24   ` Hong Xu
2016-01-17  6:23     ` Hong Xu
2016-01-17 22:21       ` Phillip Lord
2016-01-18  8:22         ` Hong Xu
2016-01-18 17:31           ` Phillip Lord
2016-01-19  0:04             ` Hong Xu
2016-01-19 10:03               ` Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56529962.10301@topbug.net \
    --to=hong@topbug.net \
    --cc=21990@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).