GNU bug report logs - #11474
emacsclient passes --eval arguments (but not the '--eval') to alternate editor

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Scott Turner <srt19170 <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 11474 <at> debbugs.gnu.org
Subject: bug#11474: Patch for Emacsclient --eval bug
Date: Wed, 2 Apr 2014 11:34:13 -0400
[Message part 1 (text/plain, inline)]
On Wed, Apr 2, 2014 at 10:57 AM, Stefan Monnier <monnier <at> iro.umontreal.ca>wrote:

> Silently dropping arguments is not very polite, so I'm not really happy
> with your solution.
>

I think as long as it is documented that the alternate_editor is not passed
the arguments intended for Emacs, that behavior is not terrible.


> 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).
>

On a practical level, I doubt the alternate_editor is going to be prepared
to deal with Emacs flags, so that's not terribly useful.

Maybe the best solution would be to have something like
"--alternate-editor-arguments" so that the user can specifically provide
the arguments to use with the alternate editor?
[Message part 2 (text/html, inline)]

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.