[Pkg-haskell-maintainers] Bug#741856: yi is not in the alternatives system for /usr/bin/editor

Marcel Fourné debian at marcelfourne.de
Sun Mar 16 15:18:39 UTC 2014

Package: yi
Version: 0.7.0-1
Severity: wishlist
Tags: patch


I tried to change my default editor to yi, but right now one needs to manually add it for update-alternatives.
Since yi is a full fledged (programmable) text editor, it would be nice to simply

$ update-alternatives --config editor

and select yi from the list or have it selected automatically if no other editor is installed.

Also yi is listed under Section "misc" instead of "editors", which is counterintuitive to me but no big annoyance.

I took the freedom to attach yi.postinst and yi.prerm files compatible to the current yi packaging, which are almost identical to those in the zile package. They are tested to be idempotent and quiet.

A patch to debian/control to move yi from "misc" to "editors" is also attached and would make yi more discoverable to people looking for a new editor, raising the usefulness of yi in Debian.

Thank you and have a good time,

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14.0-rc6 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages yi depends on:
ii  libatk1.0-0          2.10.0-2
ii  libc6                2.18-4
ii  libcairo2            1.12.16-2
ii  libffi6              3.0.13-12
ii  libfontconfig1       2.11.0-5
ii  libfreetype6         2.5.2-1
ii  libgdk-pixbuf2.0-0   2.30.6-1
ii  libghc-yi-dev        0.7.0-1+b5
ii  libghc-yi-doc        0.7.0-1
ii  libglib2.0-0         2.38.2-5
ii  libgmp10             2:5.1.3+dfsg-1
ii  libgtk2.0-0          2.24.22-1
ii  libncurses5          5.9+20140118-1
ii  libpango-1.0-0       1.36.2-2
ii  libpangocairo-1.0-0  1.36.2-2
ii  libpangoft2-1.0-0    1.36.2-2
ii  libtinfo5            5.9+20140118-1
ii  zlib1g               1:1.2.8.dfsg-1

yi recommends no packages.

yi suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yi.postinst
Type: text/x-shellscript
Size: 195 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140316/86e4c1db/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yi.prerm
Type: text/x-shellscript
Size: 123 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140316/86e4c1db/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yi-section-editor.patch
Type: text/x-diff
Size: 347 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140316/86e4c1db/attachment.patch>

More information about the Pkg-haskell-maintainers mailing list