Article View: gnu.emacs.bug
Article #99733An error (or rather, a missing feature) found i emacsclient.c
From: "Peder Chr. N|rgaard"
Date: Wed, 30 May 1990 13:51
Date: Wed, 30 May 1990 13:51
64 lines
2325 bytes
2325 bytes
I discovered that the facility to start emacsclient program with the
+number option does not work in version 18.55 when compiled on systems
with SYSVIPC option - in my case, the HP-UX systems.
The reason is simply that someone have forgotten to duplicate the
code for parsing the option when the SYSVIPC version were coded.
Below is a patch which corrects the error.
Sincerely yours
Peder Chr. N|rgaard
-------------------
Peder Chr. Norgaard **** pcnorgaard@daimi.dk
Computer Science Department, Aarhus University
Ny Munkegade 116, DK-8000 Aarhus C, DENMARK
phone: +45 86 12 71 88 / telefax: +45 86 13 57 25 / telex: 64767 aausci dk
*** emacsclient.c~ Thu Dec 29 05:16:25 1988
--- emacsclient.c Wed May 30 15:29:32 1990
***************
*** 171,183 ****
exit (1);
}
! msgp->mtext[0] = 0;
! argc--; argv++;
! while (argc)
! {
! if (*argv[0] != '/')
! {
! char *val;
cwd = gwdirb; *cwd = '\0';
#ifdef BSD
val = getwd (gwdirb);
--- 171,177 ----
exit (1);
}
! { char *val;
cwd = gwdirb; *cwd = '\0';
#ifdef BSD
val = getwd (gwdirb);
***************
*** 193,198 ****
--- 187,206 ----
fprintf (stderr, cwd);
*cwd = '\0';
}
+ }
+ msgp->mtext[0] = 0;
+ argc--; argv++;
+ while (argc)
+ {
+ if (*argv[0] == '+')
+ {
+ char *p = argv[0] + 1;
+ while (*p >= '0' && *p <= '9') p++;
+ if (*p != 0)
+ strcat(msgp->mtext, cwd);
+ }
+ else if (*argv[0] != '/')
+ {
strcat (msgp->mtext, cwd);
}
Technical Details
Message-ID:
<9005301351.AA10097@daimi.dk>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!ogicse!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!DAIMI.DK!pcnorgaardShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,ac89a8a60f0cd8bf,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-05-30 06:51:31 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!ogicse!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!DAIMI.DK!pcnorgaard
From: pcnorgaard@DAIMI.DK ("Peder Chr. N|rgaard")
Newsgroups: gnu.emacs.bug
Subject: An error (or rather, a missing feature) found i emacsclient.c
Message-ID: <9005301351.AA10097@daimi.dk>
Date: 30 May 90 13:51:31 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 64
Posted: Wed May 30 14:51:31 1990