Bug 5962

Summary: imenu doesn't strip "\section" for LaTeX section with long titles
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: emacs21-commonAssignee: Alex Ott <ott>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: eugvv
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
LaTeX file containg a long section title none

Description Ivan Zakharyaschev 2005-01-26 11:48:11 MSK
Normally, in a display of LaTeX docuemnt structute we do not see keywords like
"\section", only the titles (in imenu, speedbar using imenu, ECB Methods buffer).

But when a title is too long, the keywords are not sripped by imenu for some reason.
Steps to Reproduce:
1.Visit the attached LaTeX file.
2.M-x imenu
Optional:
Look at speedbar or ECB Methods buffer for this file.

Actual Results:  
One item with "\section" in front of the name, the others with no "\section".

Expected Results:  
All items are given names consisting only of titles, with no \section-like
keywords in them.
Comment 1 Ivan Zakharyaschev 2005-01-26 11:49:18 MSK
Created attachment 706 [details]
LaTeX file containg a long section title

used to demonstrate the bug.
Comment 2 Eugene Vlasov 2005-11-11 15:20:27 MSK
Этот баг не воспроизводится с emacs21-21.4