Subject: bug#2864: emacsclient bugs..

From: "Alfred M. Szmidt" <[email-masked]>
Date: Thu, 02 Apr 2009 15:14:28 -0400

There are a few problems with emacsclient in CVS, first one is that
one cannot run emacsclient from the build directory, you can do this
with emacs just fine.  But emacsclien gets confused as to where things
are, and you must do a `make install' to be able to use emacsclient
properly.

The second one is that the handling of -a/--alternative-editor is
problematic,

$ emacs/lib-src/emacsclient -a -c
emacs/lib-src/emacsclient: file name or argument required
Try `emacs/lib-src/emacsclient --help' for more information

According to the docstring, the argument to -a is optional, but one
must supply a empty string explicitly for things to work as
advertised.

In GNU Emacs 22.1.1 (x86_64-pc-linux-gnu)
 of 2008-01-22 on osmium, modified by Ubuntu
configured using `configure  '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=no' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
n n n n n n n n n n n n n n n n n n n n n n n n n n 
n n n n n n n n SPC SPC n n n n n n n n n SPC n n n 
n n n n n n C-x o C-r j o b C-g C-x o g n n g n n n 
n n n n n n n C-x C-s g g n n n n n n n n n n n n n 
n n n C-x C-s g n n n n n n n n n n n n C-x C-s g n 
n n C-x C-s n g g C-x C-s g g g g C-x C-s g g g n n 
C-x C-s g C-x d RET C-x 1 n p p d n n d d d d d RET 
h C-x k RET C-x o C-x k RET C-x o C-x 1 C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p x y e s RET C-n C-n C-n C-n C-n C-n C-n C-n 
g x n n g ESC x r m RET h n n n n n n n n n n n n n 
n n n n n n n n n n n n n n n n n n n n n n n n n C-x 
o C-x C-s C-x C-s g g n n n n n C-x C-s g n n n n n 
n g n n n n n n C-x C-s g n ESC x e m a DEL DEL DEL 
r e p o TAB r t TAB RET

Recent messages:
Saving file /home/a/ams/RMAIL...
Wrote /home/a/ams/RMAIL
Getting mail from /srv/data/mail/ams...
Counting new messages...done (2)
Saving file /home/a/ams/RMAIL...
Wrote /home/a/ams/RMAIL
Computing summary lines...done
2 new messages read
Making completion list...
Loading emacsbug...done