unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18517: 24.3.93; `--eval' option to "emacsclient -a ALTEDITOR" should be should ignored if it falls back to alternate editor
@ 2014-09-21 14:50 Jordan Wilson
  0 siblings, 0 replies; only message in thread
From: Jordan Wilson @ 2014-09-21 14:50 UTC (permalink / raw)
  To: 18517


Hello,
calling the command "emacsclient -a nano --eval '(message
"Hello world")'", if the emacs server is not started, nano (or any other
editor, including "-a emacs") will open a buffer with the name of
"(message "Hello world")". This is not in accordance with the man page
for "emacsclient":
   -e, --eval
   do not visit files but instead evaluate the arguments as Emacs Lisp
   expressions.

That suggests in the case of falling back to the alternate editor, the
argument following the `--eval' option be ignored. If not, the
documentation needs changing to clarify this.

I've produced this bug on both 24.3.93.1 and the trunk as of yesterday.

To reproduce:
1. Kill emacs or `server-force-delete'
2. emacsclient -a *alternate-editor* --eval '(message "Hello world")'.

Thanks,
Jordan.



In GNU Emacs 24.3.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2014-08-16 on arch-K53SC
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
Configured using:
 `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
 --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
  flyspell-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  global-anzu-mode: t
  anzu-mode: t
  winner-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading /home/jordan/.recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /home/jordan/.cache/emms/cache...done
Starting new Ispell process aspell with british dictionary...
For information about GNU Emacs and the GNU system, type C-h C-a.
Quit
gnus-user-agent

Memory information:
((conses 16 354510 7149)
 (symbols 48 42191 0)
 (miscs 40 159 188)
 (strings 32 103495 13654)
 (string-bytes 1 2959205)
 (vectors 16 34193)
 (vector-slots 8 661580 1782)
 (floats 8 337 14)
 (intervals 56 415 0)
 (buffers 960 14)
 (heap 1024 51680 1601))





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-21 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-21 14:50 bug#18517: 24.3.93; `--eval' option to "emacsclient -a ALTEDITOR" should be should ignored if it falls back to alternate editor Jordan Wilson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).