all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rob Riepel <riepel@networking.stanford.edu>
To: emacs-pretest-bug@gnu.org
Subject: incomplete comment colorization in terminals
Date: Tue, 11 Mar 2008 16:15:14 -0700 (PDT)	[thread overview]
Message-ID: <20080311231514.B718249C0BB@daedalus.stanford.edu> (raw)

When using font-locking in a terminal window (xterm and the like)
single-line comments are only highlighted to the first non-space
character after a space.  This happens in more than one language-
specific mode - I've tried Emacs-lisp and CPerl modes.

The bug does not occur when running Emacs under X, only in a terminal,
and only for certain terminal types.  The bug is present when TERM is
set to xterm or xterm-color, but not when TERM is set to xterm-16color.

This bug is in 22.1 and the pretest version of Emacs, so it is not new.
Emacs 21 does not have this bug.

Here are some screen shots showing the problem:

xterm-color with the bug:

  http://www.stanford.edu/~riepel/emacs/bug/xterm.png

xterm-16color without the bug:

  http://www.stanford.edu/~riepel/emacs/bug/xterm-16color.png

xterm-color with X selection to show exact end of highlights:

  http://www.stanford.edu/~riepel/emacs/bug/xterm-hilited.png

xterm-16color with X selection for completeness:

  http://www.stanford.edu/~riepel/emacs/bug/xterm-16color-hilited.png

If this bug turns out to be in ncurses or term{cap,info} please let me
know so I can submit a bug report to them.



In GNU Emacs 22.1.92.1 (i686-pc-linux-gnu, X toolkit)
 of 2008-03-11 on daedalus
configured using `configure  '--prefix=/usr/yocal''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tpu-edt-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-j C-n r e p o r t - e m TAB RET

Recent messages:
Loading minibuffer-complete-cycle...
Loading byte-opt...done
Loading minibuffer-complete-cycle...done
Loading /home/riepel/.tpu-control...done
For information about GNU Emacs and the GNU system, type <f1> C-a.
(New file)
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
call-interactively: Text is read-only [3 times]




             reply	other threads:[~2008-03-11 23:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 23:15 Rob Riepel [this message]
2008-03-12  4:26 ` incomplete comment colorization in terminals Eli Zaretskii
2008-03-12  6:44   ` Dan Nicolaescu
2008-03-12  8:17     ` Nick Roberts
2008-03-12 13:54       ` Stefan Monnier
2008-03-12 15:07         ` Dan Nicolaescu
2008-03-12 17:51       ` Richard Stallman
2008-03-13  6:38         ` Dan Nicolaescu
2008-03-13 22:24           ` Richard Stallman
2008-03-13 22:44             ` Dan Nicolaescu
2008-03-14  0:21               ` Nick Roberts
2008-03-14  0:34                 ` Dan Nicolaescu
2008-03-15  4:46                   ` Nick Roberts
2008-03-15  8:34                     ` Dan Nicolaescu
2008-03-15  0:49   ` Rob Riepel
2008-03-15 14:34     ` Eli Zaretskii
2008-03-12  4:45 ` Dan Nicolaescu
2008-03-12 13:57   ` Stefan Monnier
2008-03-13  6:40     ` Dan Nicolaescu
2008-03-13 15:01       ` Stefan Monnier
2008-03-13 18:55         ` Glenn Morris
2008-03-13 21:52           ` Dan Nicolaescu
2008-03-14  4:16           ` Dan Nicolaescu
2008-03-14 15:08             ` Stefan Monnier
2008-03-19  4:02         ` Dan Nicolaescu
2008-03-15  0:50     ` Rob Riepel
2008-03-12 13:10 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=20080311231514.B718249C0BB@daedalus.stanford.edu \
    --to=riepel@networking.stanford.edu \
    --cc=emacs-pretest-bug@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 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.