Package: emacs-goodies-el
Version: 33.6ubuntu1
Severity: normal

M-x dict reports return codes 20 & 21 from dict, which are not really
errors, since they mean “no match” or “approximate match only”.

This also results in the creation of tens of dict buffers most
containing just an error message.

As far as I can see, this is because dict-make-sentinel-with-buffer
tests the output of the process for “finished”, which it does not
contain when no definition is found; e.g.:

No definitions found for "food"

Process dict exited abnormally with code 20

A better strategy would seem to be to test the return code; less than
20 indicates success, and less than 30 indicates (broadly speaking) no
match; greater than or equal to 30 indicates some sort of error.

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 
'maverick-backports'), (500, 'maverick')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages emacs-goodies-el depends on:
ii  bash               4.1-2ubuntu4          The GNU Bourne Again SHell
ii  dpkg               1.15.8.4ubuntu3.1     Debian package management system
ii  emacs-snapshot [em 2:1.0                 The GNU Emacs editor (development
ii  install-info       4.13a.dfsg.1-5ubuntu1 Manage installed documentation in

Versions of packages emacs-goodies-el recommends:
ii  dict                    1.11.2+dfsg-2    dictionary client
ii  perl-doc                5.10.1-12ubuntu2 Perl documentation
ii  wget                    1.12-1.1ubuntu3  retrieves files from the web

emacs-goodies-el suggests no packages.

-- no debconf information



-- 
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