From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Re: Proposal: emacsclient --readonly Date: Sat, 30 Mar 2013 16:03:42 -0700 (PDT) Message-ID: <1364684622.32042.YahooMailNeo@web160906.mail.bf1.yahoo.com> 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> <1364392041.32259.YahooMailNeo@web160906.mail.bf1.yahoo.com> Reply-To: Michael Mauger 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 1364684629 20458 80.91.229.3 (30 Mar 2013 23:03:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Mar 2013 23:03:49 +0000 (UTC) Cc: Stefan Monnier To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 31 00:04:16 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 1UM4oq-00062L-31 for ged-emacs-devel@m.gmane.org; Sun, 31 Mar 2013 00:04:16 +0100 Original-Received: from localhost ([::1]:34117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UM4oR-00033R-M7 for ged-emacs-devel@m.gmane.org; Sat, 30 Mar 2013 19:03:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UM4oN-00031G-D3 for emacs-devel@gnu.org; Sat, 30 Mar 2013 19:03:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UM4oK-0006qF-Mz for emacs-devel@gnu.org; Sat, 30 Mar 2013 19:03:47 -0400 Original-Received: from nm24-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.161]:27473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UM4oK-0006qA-Fx for emacs-devel@gnu.org; Sat, 30 Mar 2013 19:03:44 -0400 Original-Received: from [98.139.212.153] by nm24.bullet.mail.bf1.yahoo.com with NNFMP; 30 Mar 2013 23:03:42 -0000 Original-Received: from [98.139.212.207] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 30 Mar 2013 23:03:42 -0000 Original-Received: from [127.0.0.1] by omp1016.mail.bf1.yahoo.com with NNFMP; 30 Mar 2013 23:03:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 906282.2829.bm@omp1016.mail.bf1.yahoo.com Original-Received: (qmail 69338 invoked by uid 60001); 30 Mar 2013 23:03:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1364684622; bh=N3Ifcg2FgKghXP15N/8sLo8R5+CH+qrbcPUg4tsWelk=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=r4WP7kw4rtInaj3ZC+aVYZNpy14pq8kNnsjwqcoN3jBJ7HqmoXB56pHhZ5ZmHRERULLGC82twQFP7wF3FHEbwTa6lyGnUo3DaronjtM95w6qJf2cyX2SYmw/QUSpoEieFEker56pgtAfNRK7xiXimQQaHvCdS2/UzRz4BKWiXE0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=grogFqrGxhB/w1fVmkX/PueW9DUXzF99yoRQ21ywL83cxl8LTvlraAt39jNzv7BFv4eexadVmq+pSRkZVoCBMCi9Pfa8GRmbQQdjP7Y7nf+JdINX8kxvwOnmQZQJMvkCHDYFbl3YDUHmQwswu+ibYaIyTvR2iscqo0x73xdIqAA=; X-YMail-OSG: ggyhD8cVM1lu0NnMUw72YLWG2khgfTHcAtt_74hiuFdPjHD HmjR_3ar4.pL9sc78b6BS3.0zFGfVKqDsplxuT.FnHOkiErE1sNTzGSVL4K0 dN32k8vT4ANQiGIqmHTsQRyeuVBt8NaaJGXlT0OOWn8bkmGYUMmfoCoHZBZP ay1ZBgtT5snHvtxd1RF0SlJin.h90aTtx03lPRxxn6GnLw4tPCrdU5kd_n0w cU_aRMe_xdIVcMbyiRsc.ch2IqcikjJpGKRxJeNSLpRtFoMIOruxTCp38KSv 2Svjs9JqBzrBmMToRe2.LsRwcxL6iSBEStLJ7rIEJH1iPR98z.g11SwgAwMk zx0IZ6YJDP39vZNCuQPpvHwug.xXkoApgkHFgjRw_2M1AVjNZS5YsyJCGtiM v_81m4a4tozhc_CnJD3HndzqRwOtg4sLDWfzEEDKa4EgekHhZcxeSmPBZh9h Qe426gkopndKsNlM1XCS63HqhbEHIoSGIkZs0W5vpyFVEX0hgXqgPmxa3.Zg 1CNU- Original-Received: from [75.68.204.200] by web160906.mail.bf1.yahoo.com via HTTP; Sat, 30 Mar 2013 16:03:42 PDT X-Rocket-MIMEInfo: 002.001, Pj4gIEknbSBub3Qgc3VyZSBJIHVuZGVyc3RhbmQgcmlnaHQsIGJ1dCBpdCBkb2Vzbid0IHNvdW5kIGxpa2UgaXQncyAKCj4.ICBnb2luZyBhIGRpcmVjdGlvbiBJIGxpa2U6IEknZCBsaWtlIHRvIHJlZHVjZSB0aGUgZGlmZmVyZW5jZSBiZXR3ZWVuCj4.ICB0aGUgQy1sZXZlbCBjb21tYW5kIGxpbmUgYXJndW1lbnQgdmVjdG9yIHJlY2VpdmVkIGJ5IAo.PiBlbWFjc2NsaWVudCBhbmQgdGhlIGxpc3Qgb2Ygc3RyaW5ncyByZWNlaXZlZCBieSBzZXJ2ZXIuZWwuCj4.IMKgCgpJJ20gZ2l2aW5nIHVwLsKgIFdpdGgBMAEBAQE- X-RocketYMMF: mmaug X-Mailer: YahooMailWebService/0.8.139.530 In-Reply-To: <1364392041.32259.YahooMailNeo@web160906.mail.bf1.yahoo.com> X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 98.139.213.161 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:158488 Archived-At: >> I'm not sure I understand right, but it doesn't sound like it's =0A=0A>= > going a direction I like: I'd like to reduce the difference between=0A>>= the C-level command line argument vector received by =0A>> emacsclient an= d the list of strings received by server.el.=0A>> =A0=0A=0AI'm giving up.= =A0 Without a significant rewrite of emacsclient.c=0Aand server.el, I don't= see your vision of custom options coming=0Ato fruition.=A0 =0A=0AI am runn= ing a local edit similar to the second version I sent=0Ato the mailing list= that supports --readonly, --diff, --merge, =0Aand a little more invasive p= atch that implements passing a =0Adefault Tramp prefix to allow a remote ed= itor to open the =0Alocal file.=0A=0AThe patch I use has:=0A=0A* separate h= andlers for each option with built-in=0Aparsing and validation of a single = option argument=0A=0A* a hook for handling each non-option parameter of ema= csclient=0Ato alter the filename before the filename is opened=0A=0A* a hoo= k to replace the default open action of each file arg=0A=0A* a hook to hand= le each buffer that gets opened; similar to=0A`server-visit-hook' but calle= d later once all server setup is=0Acomplete and dedicated to custom options= .=0A=0A* a final hook at the end of the file args to validate the overall= =0Aserver state before control is passed to the user.=0A=0A* allows custom = options to be defined, maintained and installed=0Aindependently of each oth= er without a point of contact beyond =0Aserver.el (this is important for me= since the custom features=0AI implement at home differ from those I might = use at a client=0Asite.)=0A=0AAs I tried to implement the simplified parsin= g that was proposed=0Abut encountered the existing server processing which = lacks the =0Astructure to implement the requested features.=A0 The patch=0A= that I am using takes advantage of several new hooks that allow=0Athe new f= unctionality to be inserted into the existing processing =0Amodel.=0A=0AThe= challenge for me will now be for me to keep my patch in sync.=0A=0A-- Mich= ael=0A