From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Proposal: emacsclient --readonly Date: Tue, 26 Mar 2013 22:33:41 -0400 Message-ID: References: <87zjxtq304.fsf@michael-laptop.hsd1.ma.comcast.net> <1364142142.92134.YahooMailNeo@web160904.mail.bf1.yahoo.com> <1364266566.22342.YahooMailNeo@web160905.mail.bf1.yahoo.com> <1364349727.76978.YahooMailNeo@web160905.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364351628 7186 80.91.229.3 (27 Mar 2013 02:33:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Mar 2013 02:33:48 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Michael Mauger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 27 03:34:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UKgBo-0001q6-2D for ged-emacs-devel@m.gmane.org; Wed, 27 Mar 2013 03:34:12 +0100 Original-Received: from localhost ([::1]:50061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKgBQ-00042O-50 for ged-emacs-devel@m.gmane.org; Tue, 26 Mar 2013 22:33:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKgBM-00040f-J2 for emacs-devel@gnu.org; Tue, 26 Mar 2013 22:33:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKgBL-00046z-EX for emacs-devel@gnu.org; Tue, 26 Mar 2013 22:33:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:53806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKgBL-00046u-Ak for emacs-devel@gnu.org; Tue, 26 Mar 2013 22:33:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLSu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IPAS-Result: Av4EABK/CFFFxLSu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5878976" Original-Received: from 69-196-180-174.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Mar 2013 22:33:40 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 513C86789F; Tue, 26 Mar 2013 22:33:41 -0400 (EDT) In-Reply-To: <1364349727.76978.YahooMailNeo@web160905.mail.bf1.yahoo.com> (Michael Mauger's message of "Tue, 26 Mar 2013 19:02:07 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158258 Archived-At: > In the C code, if there are any unrecognized options they will be sent ov= er=A0 > as a -custom option followed by the non-option parameters as -args I'm not sure I understand right, but it doesn't sound like it's going a direction I like: I'd like to reduce the difference between the C-level command line argument vector received by emacsclient and the list of strings received by server.el. > On the server side, the elisp will call the handler for each -custom opti= on=A0 > and=A0pass the args along with it. The --diff and --eval options don't take just one "argument", which is why I don't want to hardcode this idea of a "--option ARG" format. > The other required change will be to break out some of the file=A0process= ing > so that the logic can be reused in custom options.=A0 > * file-name generation > * visit a file > This will make the change more complex but won't really alter the=A0 > behavior,=A0just refactor it so it's more useful to custom options. Refactoring sounds fine. Stefan