[Pkg-jed-devel] Bug#223794: jed: -g does not work
Rafael Laboissiere
223794@bugs.debian.org, Rafael Laboissiere <rafael@debian.org>, 223794@bugs.debian.org
Thu, 31 Mar 2005 00:39:11 +0200
John,
The following bug report has been filled against the Debian jed package
some time ago (see http://bugs.debian.org/223794):
* Marc Haber <mh+debian-bugs@zugschlus.de> [2003-12-12 10:40]:
> the manpage says:
>
> -g 'n'
> goto line n in buffer
>
> This does not work. jed -g 5 .bashrc still has the cursor at the top of the
> file.
* Jörg Sommer <joerg@alea.gnuu.de> [2005-03-08 00:23]:
> this is not a bug. jed handles command line arguments as sequent calls.
> The commandline "jed -g 5 /etc/bash.bashrc" means open jed, goto line 5
> (in the *scratch* buffer), open bash.bashrc. What you want happens with
> "jed /etc/bash.bashrc -g 5"
A patch like the following one will make things clear in the manpage:
--- jed.1 2005-03-23 18:23:33.000000000 +0100
+++ jed.1-new 2005-03-31 00:29:59.435743296 +0200
@@ -45,7 +45,8 @@
.RS
goto line
.I n
-in buffer
+in buffer (notice that in order to this option to take effect, it must
+appear after the file name in the command line, like 'jed file -g 3')
.RE
.I -l 'file'
.RS
--
Rafael