sml-modeline-vis disappears sometimes

Bug #905589 reported by tkf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
In Progress
Medium
Unassigned

Bug Description

When this happens, `start' variable in `sml-modeline-create' is larger than `end'.
I attached a (rather ad-hoc) patch to fix this problem.

Revision history for this message
tkf (aka-tkf) wrote :
Revision history for this message
lborgman (lennart-borgman) wrote :

Thanks for the bug report, tkf!

It looks to me like I have forgotten to add (length sml-begin) to the variable "end". Can you try this instead of your patch:

     (setq start (+ start (length sml-begin)))
+ (setq end (+ start (length sml-begin)))

Changed in nxhtml:
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
lborgman (lennart-borgman) wrote :

Sorry ;-)

     (setq start (+ start (length sml-begin)))
+ (setq end (+ end (length sml-begin)))

Revision history for this message
tkf (aka-tkf) wrote :

Thank you very much for the fix! I thought it was working good, until
I found sometimes sml-modeline-vis-face disappears. In my Emacs, I can
reproduce this by doing the following:

1. open a buffer which has 3000 lines, in a window which has 42 lines
2. go to the x-th line (2720 < x < 2978)
3. hit C-l

I noticed that line 2977 is the largest line number that you don't see
the last line in the buffer.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.