Previous patch is incomplete. Here is additional patch to get 
the job done. I hope this would be useful.

-------------
--- a/debian/postinst
+++ b/debian/postinst
@@ -2,5 +2,8 @@
 set -e
 update-alternatives --install /usr/bin/editor editor /usr/bin/mg 30 \
      --slave /usr/share/man/man1/editor.1.gz editor.1.gz 
/usr/share/man/man1/mg.1.gz
+update-alternatives --install /usr/bin/emacs emacs /usr/bin/mg 0 \
+     --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
+     /usr/share/man/man1/mg.1.gz
 
 #DEBHELPER#
--- a/debian/prerm
+++ b/debian/prerm
@@ -1,7 +1,9 @@
 #!/bin/sh
 set -e
 if test remove = "$1"
-then update-alternatives --remove editor /usr/bin/mg
+then
+  update-alternatives --remove editor /usr/bin/mg
+  update-alternatives --remove emacs /usr/bin/mg
 fi
 
 #DEBHELPER#
-------------


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to