unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: bug#54245: 29.0.50; select usage in GNUstep
       [not found]       ` <87lexofcm5.fsf@gnus.org>
@ 2022-03-14  9:22         ` Robert Pluim
  2022-03-14  9:30           ` Po Lu
                             ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Robert Pluim @ 2022-03-14  9:22 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Po Lu, emacs-devel

>>>>> On Sat, 05 Mar 2022 20:00:50 +0100, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Robert Pluim <rpluim@gmail.com> writes:
    Po> That LGTM, but I only tested on GNUstep.  The same code is also used on
    Po> macOS, so there might be some side effects.
    >> 
    >> Iʼm on macOS

    Lars> Thanks; I've pushed Robert's patch to Emacs 29 now, and I'm therefore
    Lars> closing this bug report.

I think this means we can now remove the checking for select in
configure, and the HAVE_SELECT define (I took a look, but then ran
into the w32 and msdos ports, and decided to stop :-) )

Robert
-- 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14  9:22         ` bug#54245: 29.0.50; select usage in GNUstep Robert Pluim
@ 2022-03-14  9:30           ` Po Lu
  2022-03-14 13:12             ` Eli Zaretskii
  2022-03-14  9:31           ` Lars Ingebrigtsen
  2022-03-14 13:10           ` Eli Zaretskii
  2 siblings, 1 reply; 10+ messages in thread
From: Po Lu @ 2022-03-14  9:30 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Lars Ingebrigtsen, emacs-devel

Robert Pluim <rpluim@gmail.com> writes:

> I think this means we can now remove the checking for select in
> configure, and the HAVE_SELECT define (I took a look, but then ran
> into the w32 and msdos ports, and decided to stop :-) )

AFAICT the MS-DOS port doesn't have select (unless you build it with X11
support, I think), so the define should stay.

nsterm.m used select regardless of the define anyway.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14  9:22         ` bug#54245: 29.0.50; select usage in GNUstep Robert Pluim
  2022-03-14  9:30           ` Po Lu
@ 2022-03-14  9:31           ` Lars Ingebrigtsen
  2022-03-14 13:10           ` Eli Zaretskii
  2 siblings, 0 replies; 10+ messages in thread
From: Lars Ingebrigtsen @ 2022-03-14  9:31 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Po Lu, Paul Eggert, emacs-devel

Robert Pluim <rpluim@gmail.com> writes:

> I think this means we can now remove the checking for select in
> configure, and the HAVE_SELECT define (I took a look, but then ran
> into the w32 and msdos ports, and decided to stop :-) )

I guess so -- perhaps Paul has some comments; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14  9:22         ` bug#54245: 29.0.50; select usage in GNUstep Robert Pluim
  2022-03-14  9:30           ` Po Lu
  2022-03-14  9:31           ` Lars Ingebrigtsen
@ 2022-03-14 13:10           ` Eli Zaretskii
  2022-03-14 13:20             ` Stefan Monnier
                               ` (2 more replies)
  2 siblings, 3 replies; 10+ messages in thread
From: Eli Zaretskii @ 2022-03-14 13:10 UTC (permalink / raw)
  To: Robert Pluim; +Cc: luangruo, larsi, emacs-devel

> From: Robert Pluim <rpluim@gmail.com>
> Date: Mon, 14 Mar 2022 10:22:13 +0100
> Cc: Po Lu <luangruo@yahoo.com>, emacs-devel@gnu.org
> 
> >>>>> On Sat, 05 Mar 2022 20:00:50 +0100, Lars Ingebrigtsen <larsi@gnus.org> said:
> 
>     Lars> Robert Pluim <rpluim@gmail.com> writes:
>     Po> That LGTM, but I only tested on GNUstep.  The same code is also used on
>     Po> macOS, so there might be some side effects.
>     >> 
>     >> Iʼm on macOS
> 
>     Lars> Thanks; I've pushed Robert's patch to Emacs 29 now, and I'm therefore
>     Lars> closing this bug report.
> 
> I think this means we can now remove the checking for select in
> configure, and the HAVE_SELECT define (I took a look, but then ran
> into the w32 and msdos ports, and decided to stop :-) )

If that's your problem, you could convert HAVE_SELECT into DOS_NT, I
think.

The HAVE_SELECT in msdos.c is for the (old and quite defunct) MSDOS
build with Xlib (yes, there was such a beast: see those HAVE_X_WINDOWS
in msdos.c?), so IMNSHO we can simply drop HAVE_SELECT in msdos.c.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14  9:30           ` Po Lu
@ 2022-03-14 13:12             ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2022-03-14 13:12 UTC (permalink / raw)
  To: Po Lu; +Cc: rpluim, larsi, emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>,  emacs-devel@gnu.org
> Date: Mon, 14 Mar 2022 17:30:00 +0800
> 
> Robert Pluim <rpluim@gmail.com> writes:
> 
> > I think this means we can now remove the checking for select in
> > configure, and the HAVE_SELECT define (I took a look, but then ran
> > into the w32 and msdos ports, and decided to stop :-) )
> 
> AFAICT the MS-DOS port doesn't have select

More accurately: the C library used by the MS-DOS port does have
'select', but it is not "good enough" for Emacs purposes, so we use a
separate Emacs-specific implementation in msdos.c.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14 13:10           ` Eli Zaretskii
@ 2022-03-14 13:20             ` Stefan Monnier
  2022-03-14 13:48               ` Eli Zaretskii
  2022-03-14 13:34             ` Po Lu
  2022-03-14 13:43             ` Robert Pluim
  2 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2022-03-14 13:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, luangruo, larsi, emacs-devel

> The HAVE_SELECT in msdos.c is for the (old and quite defunct) MSDOS
> build with Xlib (yes, there was such a beast: see those HAVE_X_WINDOWS
> in msdos.c?),

OMG!  I remember seeing those HAVE_X_WINDOWS and taking for granted that
they were some weird left over from copy&paste.


        Stefan




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14 13:10           ` Eli Zaretskii
  2022-03-14 13:20             ` Stefan Monnier
@ 2022-03-14 13:34             ` Po Lu
  2022-03-14 13:59               ` Eli Zaretskii
  2022-03-14 13:43             ` Robert Pluim
  2 siblings, 1 reply; 10+ messages in thread
From: Po Lu @ 2022-03-14 13:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, larsi, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> The HAVE_SELECT in msdos.c is for the (old and quite defunct) MSDOS
> build with Xlib (yes, there was such a beast: see those HAVE_X_WINDOWS
> in msdos.c?), so IMNSHO we can simply drop HAVE_SELECT in msdos.c.

When I had the time a few weeks ago, I looked into resurrecting the X11
build on MS-DOS, but could not find any information about an Xlib
implementation for DJGPP.  So I can't help but wonder exactly what
enviroment that build once ran on.

I'd be indebted to anyone with that information.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14 13:10           ` Eli Zaretskii
  2022-03-14 13:20             ` Stefan Monnier
  2022-03-14 13:34             ` Po Lu
@ 2022-03-14 13:43             ` Robert Pluim
  2 siblings, 0 replies; 10+ messages in thread
From: Robert Pluim @ 2022-03-14 13:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: luangruo, larsi, emacs-devel

>>>>> On Mon, 14 Mar 2022 15:10:09 +0200, Eli Zaretskii <eliz@gnu.org> said:

    >> I think this means we can now remove the checking for select in
    >> configure, and the HAVE_SELECT define (I took a look, but then ran
    >> into the w32 and msdos ports, and decided to stop :-) )

    Eli> If that's your problem, you could convert HAVE_SELECT into DOS_NT, I
    Eli> think.

Itʼs not really a problem, itʼs more "Is the issue serious enough to
potentially break builds for other people that I canʼt easily test"

    Eli> The HAVE_SELECT in msdos.c is for the (old and quite defunct) MSDOS
    Eli> build with Xlib (yes, there was such a beast: see those HAVE_X_WINDOWS
    Eli> in msdos.c?), so IMNSHO we can simply drop HAVE_SELECT in msdos.c.

Although this makes it sound like Iʼm worrying too much about
potential breakage.

Robert
-- 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14 13:20             ` Stefan Monnier
@ 2022-03-14 13:48               ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2022-03-14 13:48 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: luangruo, rpluim, larsi, emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Robert Pluim <rpluim@gmail.com>,  luangruo@yahoo.com,  larsi@gnus.org,
>   emacs-devel@gnu.org
> Date: Mon, 14 Mar 2022 09:20:04 -0400
> 
> > The HAVE_SELECT in msdos.c is for the (old and quite defunct) MSDOS
> > build with Xlib (yes, there was such a beast: see those HAVE_X_WINDOWS
> > in msdos.c?),
> 
> OMG!  I remember seeing those HAVE_X_WINDOWS and taking for granted that
> they were some weird left over from copy&paste.

Not copy/paste at all.  See msdos/sed*x.inp and config.bat, where it
supports the --with-x option.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug#54245: 29.0.50; select usage in GNUstep
  2022-03-14 13:34             ` Po Lu
@ 2022-03-14 13:59               ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2022-03-14 13:59 UTC (permalink / raw)
  To: Po Lu; +Cc: rpluim, larsi, emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: Robert Pluim <rpluim@gmail.com>,  larsi@gnus.org,  emacs-devel@gnu.org
> Date: Mon, 14 Mar 2022 21:34:02 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > The HAVE_SELECT in msdos.c is for the (old and quite defunct) MSDOS
> > build with Xlib (yes, there was such a beast: see those HAVE_X_WINDOWS
> > in msdos.c?), so IMNSHO we can simply drop HAVE_SELECT in msdos.c.
> 
> When I had the time a few weeks ago, I looked into resurrecting the X11
> build on MS-DOS, but could not find any information about an Xlib
> implementation for DJGPP.  So I can't help but wonder exactly what
> enviroment that build once ran on.
> 
> I'd be indebted to anyone with that information.

The environment was DesqView/X.  It came with a tailored version of
Xlib and other X libraries/utilities that ran on plain MS-DOS using (I
think) the DesqView's own QEMM DOS extender.  This was before DJGPP
v2.x was developed that uses DPMI to switch the processor into
protected mode and run 32-bit protected-mode code that uses virtual
memory.

That's all I know.  I never myself built such an Emacs, and never used
DesqView/X.  See https://en.wikipedia.org/wiki/DESQview for more.

Note that nowadays you'd need such an Xlib compiled with DJGPP v2.x,
which could run in the DPMI environment, so if DesqView/X is still
available somewhere, you will probably need to use QDPMI on plain
MS-DOS.  And if you run on plain MS-DOS, you'd have gazillion problems
with long file names that clash in the 8+3 namespace, because Emacs
stopped trying to be 8+3 clean long ago.

So resurrecting such a build would be a non-trivial project.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-03-14 13:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <877d99g2g1.fsf@gnus.org>
     [not found] ` <87r17hhexs.fsf@gmail.com>
     [not found]   ` <87bkylqlbk.fsf@yahoo.com>
     [not found]     ` <87mti4hby5.fsf@gmail.com>
     [not found]       ` <87lexofcm5.fsf@gnus.org>
2022-03-14  9:22         ` bug#54245: 29.0.50; select usage in GNUstep Robert Pluim
2022-03-14  9:30           ` Po Lu
2022-03-14 13:12             ` Eli Zaretskii
2022-03-14  9:31           ` Lars Ingebrigtsen
2022-03-14 13:10           ` Eli Zaretskii
2022-03-14 13:20             ` Stefan Monnier
2022-03-14 13:48               ` Eli Zaretskii
2022-03-14 13:34             ` Po Lu
2022-03-14 13:59               ` Eli Zaretskii
2022-03-14 13:43             ` Robert Pluim

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).