[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in emacsclient operation

From: Bostjan Vilfan
Subject: Error in emacsclient operation
Date: Sat, 9 Jun 2007 23:30:07 -0700 (PDT)

I made the following experiment: Emacs had two buffers, <file 1> and <file 2>,
and I entered the following text on the command line,

emacsclient -e <RET>
(kill-buffer (string [file 1])) <RET>
(kill-buffer (string [file 2])) <RET>

where [file 1] and [file 2] are the string argument forms of <file 1> and
<file 2>, resp. The result was that only the first buffer was killed.

Since Emacs version 21.3 does not have a built in server, I used the program
gnuserv, and I checked the operation of the corresponding gnuclientw program
with Emacs v. 21.3 in the identical situation. I entered the following text:

gnuclientw -e (kill-buffer (string [file 1])) (kill-buffer (string [file 2]))

and the result was as expected, i.e., both buffers got killed. Therefore, I
think that emacsclient has a bug.

In addition, my suggestion is that gnuclient be equipped with a command line
option to accept arguments as a continuation of the command line (i.e.,
similarly to gnuclientw).

BV bostjanv@alum.mit.edu

Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]