Article View: gnu.emacs.bug
Article #98923Re: on the use of emacsclient
From: Stephen Anderson
Date: Thu, 03 Jan 1991 15:57
Date: Thu, 03 Jan 1991 15:57
48 lines
2690 bytes
2690 bytes
In article <1991Jan2.143228@comet.Berkeley.EDU> wbaker%comet.Berkeley.EDU@ucbvax.berkeley.edu (Wendell Craig Baker) writes: >... >I am, however having a few problems with emacsclient and long >filenames and I am wondering if anyone else is having the same >problem, and if so, what the fix/workaround is. I posted a bug relating to 18.55 emacsclient and long argument lists and have a workaround which seems to be ok. This may be related to your problem. The symptom of this bug is that the argument list passed to emacs is split into two instead of one line: >... >- The emacs indicates that it has received the file (the *server* > buffer contains an entry for the new file) but there is no buffer > allocated for the file. Are you sure the argument is a single line? If the argument(s) are being split into two (or more) lines then this should help: % diff server.el $EMACSLISP/server.el 125,130d124 < (defvar last-client "" < "Exists due to often occuring bug in argument list passed through socket. < The arguments are split up into two strings instead of one, so last client < hangs on to the client id and unused portion of the last argument string < and tries to make a usable argument list when the second string comes in.") < 135,138c129 < (if (and (not (eq 0 (string-match "Client: \\([0-9]+\\) " string))) < (not (eq 0 (string-match "Client: \\([0-9]+\\) " < (setq string (concat < last-client string)))))) --- > (if (not (eq 0 (string-match "Client: " string))) 140,141c131,132 < (setq last-client (substring string (match-beginning 0) (match-end 0))) < (let ((client (list (substring string (match-beginning 1) (match-end 1)))) --- > (setq string (substring string (match-end 0))) > (let ((client (list (substring string 0 (string-match " " string)))) 155d145 < (setq last-client (concat last-client (substring string 0 (string-match "\n" string)))) -- sja. uunet!mitel!spock!stephena
Technical Details
Message-ID:
<5879@stephena>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!mitel!Software!stephenaReferences:
<1991Jan2.143228@comet.Berkeley.EDU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,476ea55bf847de34,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-01-03 07:57:44 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!mitel!Software!stephena From: mitel!Software!stephena@UUNET.UU.NET (Stephen Anderson) Newsgroups: gnu.emacs.bug Subject: Re: on the use of emacsclient Keywords: emacsclient Message-ID: <5879@stephena> Date: 3 Jan 91 15:57:44 GMT References: <1991Jan2.143228@comet.Berkeley.EDU> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Mitel. Kanata (Ontario). Canada. Lines: 48 Approved: bug-gnu-emacs@prep.ai.mit.edu