unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4281: 23.1; displaying line-prefix properties and global-hl-line-mode
@ 2009-08-28  9:14 Jean-Marie Gaillourdet
  2009-09-18  9:59 ` Juanma Barranquero
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Marie Gaillourdet @ 2009-08-28  9:14 UTC (permalink / raw)
  To: bug-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When there are lines with a line-prefix property and hl-line-mode is
enabled, the highlighting is misplaced. The
line-prefix is not highlighted in the current line but in the next line.

This can be triggered by using the latest org-mode in git. The
maintainer of org-mode said it is a bug in Emacs, therefore I do
report it here.

http://thread.gmane.org/gmane.emacs.orgmode/16909

In order to reproduce this create a file with the following contents:
- ---
#+STARTUP: indent showall

* Test
** Test 2
Fooobar
* Bar
- ---

Enable global-hl-line-mode and place the cursor on "Test 2".


In GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2009-08-16 on black.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

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
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Org

Minor modes in effect:
  shell-dirtrack-mode: t
  org-indent-mode: t
  TeX-PDF-mode: t
  show-paren-mode: t
  yas/global-mode: t
  yas/minor-mode: t
  diff-auto-refine-mode: t
  global-hl-line-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
k k k k k k k k k k C-x C-h C-c a u j j j j j C-g <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <down> <down> <down> <f1> q C-c a u <help-echo>
<help-echo> <help-echo> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <down> <down> <down> <down> <down> <down>
<down> <down> <up> <up> <up> <up> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report> C-g q <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Press key for agenda command (unrestricted):
OVERVIEW
File mode specification error: (error ":END: line missing at position 5272")
OVERVIEW [5 times]
CONTENTS...done
OVERVIEW
Mark set
Quit
Switched to domain: :softech
Press key for agenda command (unrestricted):
Quit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqXoBEACgkQNIUNP/I5YOiRVwCZAezNjNcjABPybj3sqXtucWk9
6VwAn3bdohJVN+KrQv6SrgPSGDe66wXP
=ktuo
-----END PGP SIGNATURE-----






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

* bug#4281: 23.1; displaying line-prefix properties and  global-hl-line-mode
  2009-08-28  9:14 bug#4281: 23.1; displaying line-prefix properties and global-hl-line-mode Jean-Marie Gaillourdet
@ 2009-09-18  9:59 ` Juanma Barranquero
  0 siblings, 0 replies; 2+ messages in thread
From: Juanma Barranquero @ 2009-09-18  9:59 UTC (permalink / raw)
  To: Jean-Marie Gaillourdet; +Cc: 4281

On Fri, Aug 28, 2009 at 11:14, Jean-Marie Gaillourdet
<jmg@gaillourdet.net> wrote:

> When there are lines with a line-prefix property and hl-line-mode is
> enabled, the highlighting is misplaced. The
> line-prefix is not highlighted in the current line but in the next line.

It happens also with a `line-prefix' variable, instead of text properties:

   emacs -Q -f view-emacs-news --eval '(setq line-prefix "-")' -f
global-hl-line-mode

Curiously, for the first line in the window, the prefix of the current
line is also highlighted.

    Juanma





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

end of thread, other threads:[~2009-09-18  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28  9:14 bug#4281: 23.1; displaying line-prefix properties and global-hl-line-mode Jean-Marie Gaillourdet
2009-09-18  9:59 ` Juanma Barranquero

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).