Package: e3
Version: 1:2.61-2
Severity: normal

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Nathan Collins <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: e3: Starts in `WS' mode when invoked through alternatives system as 
`vi' or
 `emacs'
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: reportbug 3.18
Date: Thu, 29 Dec 2005 05:00:21 -0800

Package: e3
Version: 1:2.61-2
Severity: normal


I will just describe the emacs problem in detail.  The vi problem is
analogous.

The alternatives system has set up the following series of links for me:

crunk:~# FILE=$(which emacs); while [ -h $FILE ]; do ls -l $FILE;
FILE=$(readlink $FILE); done
lrwxrwxrwx  1 root root 23 2005-01-02 17:13 /usr/bin/emacs ->
/etc/alternatives/emacs
lrwxrwxrwx  1 root root 13 2005-12-29 02:33 /etc/alternatives/emacs ->
/usr/bin/e3em
lrwxrwxrwx  1 root root 2 2005-12-28 07:16 /usr/bin/e3em -> e3
crunk:~#

When I invoke e3 by typing `emacs' it starts in `WS' mode.  It starts in
`EMACS' mode as expected if I type `e3em'.

I tried adding `emacs' to the list of names e3 checks to see if it was
invoked as like this:

crunk:~/e3-2.61# diff e3.asm.original e3.asm
3616a3618,3619
>       jz  IsEm
>       cmp ecx,'emacs'                 ;check if called as `emacs'
3619c3621
<       mov byte [eax],EM
---
> IsEm: mov byte [eax],EM

but I guess that doesn't work, as the registers are 32 (not 40) bits, making me
think there is a problem with this sort of simple approach (although I don't
really know jack about assembly programming).

A simple fix that does work is to add a script which invokes e3em and
have the alternatives system link to that instead:

crunk:~/debugging-e3# cat >e3em-script
exec e3em
^D
crunk:~/debugging-e3#

Hope that helps,

-nathan

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

-- no debconf information

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to