Possible bug in tests with emacs 23.2.1 (debian stable)

Tomi Ollila tomi.ollila at nixu.com
Tue Jan 3 05:07:04 PST 2012


On Mon, 02 Jan 2012 16:55:45 +0200, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> On Sun, 1 Jan 2012 10:05:59 +0000, Mark Walters <markwalters1009 at gmail.com> wrote:

[ ... ]

> > As far as I can see emacs is not exiting when sent the "(kill-emacs)"
> > command from test-lib.sh (line 931 called from line 869). It seems
> > that this version of emacs prompts before exit asking "The current
> > server still has clients; delete them? (yes or no) ".
> > 
> > This seems to have been "fixed" (i.e. emacs does not ask for a prompt
> > in emacs revision 100150
> > http://bzr.savannah.gnu.org/lh/emacs/emacs-23/revision/100150).
> > 
> > If I change test-lib.sh line 869 to send "(setq kill-emacs-hook 'nil)
> > (kill-emacs)" instead of just (kill-emacs) then the tests work
> > correctly (*). But I definitely don't know enough emacs to know if
> > this is a sensible solution.

[ ... ]

> ... so my "vote" is that we don't attempt to work around this bug. Do
> we have KNOWN ISSUES file where this kind of things can be documented ?
> 
> > Note I get exactly the same behaviour when trying to build the debian
> > package from squeeze backports so it could be a bug in my setup in
> > which case my apologies for the noise!
> 
> It is not a bug in your setup; I tested it with emacs 23.2.1; running
> emacs from command line, executing (server-start) there and then executed
> emacsclient --eval '(kill-emacs)' in another terminal window.

I did some more testing; doing

emacsclient --eval '(defun yes-or-no-p (prompt) t)' --eval '(kill-emacs)'

Will make emacs 23.2.1 exit also, so IMO this "workaround" could be
used to "fix" the problem. 

> > Best wishes
> > 
> > Mark
> 
> Tomi

Tomi




More information about the notmuch mailing list