Public bug reported:

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

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
Modeline scanning behavior does not match documentation (off-by-one error?)
https://bugs.launchpad.net/bugs/367160
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to