GNU bug report logs -
#11474
emacsclient passes --eval arguments (but not the '--eval') to alternate editor
Previous Next
Reported by: Jason Lewis <jason <at> dickson.st>
Date: Tue, 15 May 2012 05:24:02 UTC
Severity: wishlist
Tags: fixed, patch, wontfix
Merged with 12154,
18517
Found in versions 24.1, 24.1.50, 24.3.93
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 11474 <at> debbugs.gnu.org (full text, mbox):
[ Thanks for your patience. ]
> emacsclient --alternate-editor "emacs" --eval "(make-frame-visible)"
> results in an Emacs with a buffer named "(make-frame-visible)".
Hmm... indeed, we have a problem here. But I think the problem is that
it's very unclear what should be the right behavior. IOW using both
"--alternate-editor" and "--eval" at the same time is "ill defined" and
the current behavior in that situation is particularly non-sensical.
> The patch provided below simply discards the Elisp arguments when
> emacsclient falls through to the alternate editor. There may be better
> fixes, but this does the least harm while retaining compatibility.
Silently dropping arguments is not very polite, so I'm not really happy
with your solution. I think the "right" behavior would be to call the
alternate editor while preserving most arguments; IOW the right fix
in this case would be to add a "--eval" argument, so that your
alternate_editor can decide whether to drop args when it gets an
"--eval" or to prepend all other args with a "--eval=" (or do whatever
else it fancies).
WDYT?
Stefan
This bug report was last modified 5 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.