Modeline scanning behavior does not match documentation (off-by-one error?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit |
Fix Released
|
Medium
|
|||
gedit (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: gedit
The modelines plugin doesn't quite work as documented in the gedit manual. Modelines are not recognized on some lines where there should be, and they are recognized on some lines where they should not be.
Expected results (according to the documentation):
* Emacs modelines are recognized on the first two lines of a file.
* Vim modelines are recognized on the first and last three lines of a file.
* Kate modelines are recognized on the first and last ten lines of a file.
Actual results:
* Emacs modelines are recognized on the first line of a file.
* Vim modelines are recognized on the first two and last four lines of a file.
* Kate modelines are recognized on the first nine and last ten lines of a file.
Perhaps the most annoying effect of this bug is that only the first line of a file is scanned for an Emacs modeline. This makes it impossible to use Emacs modelines in files that must begin with shebang lines.
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.26.1-0ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux 2.6.28-11-generic x86_64
Changed in gedit: | |
status: | Unknown → New |
Changed in gedit: | |
status: | New → Fix Released |
Changed in gedit: | |
importance: | Unknown → Medium |
Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http:// bugzilla. gnome.org/ show_bug. cgi?id= 580494