Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-17 Thread Marc Girod


Eli Zaretskii wrote:
> 
> This means that an existing Emacs variable
> `operating-system-release', whose value is derived from uts.release,
> should hold either "1.5.SOMETHING" or "1.7.SOMETHING", and that can be
> used to distinguish between the two Cygwin families.
> 
Indeed. I found it on 23.0.92 (not on 21.2), holding "1.7.0(0.210/5/3)"

-- 
View this message in context: 
http://www.nabble.com/Re%3A--1.7--Updated%3A-%7Bemacs%2Cemacs-X11%2Cemacs-el%7D-23.0.92-1-tp23559935p23585560.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-17 Thread Eli Zaretskii
> Date: Sun, 17 May 2009 00:33:13 -0400
> From: Christopher Faylor 
> 
> On Sun, May 17, 2009 at 06:12:04AM +0300, Eli Zaretskii wrote:
> >> Date: Sat, 16 May 2009 02:52:22 -0700 (PDT)
> >> From: Marc Girod 
> >> 
> >> Eli Zaretskii wrote:
> >> > 
> >> > ...if Emacs could know the Cygwin version.
> >> > 
> >> uname -r
> >> 
> >> this gives on 2 installations e.g.:
> >> 
> >> 1.5.25(0.156/4/2)
> >> 1.7.0(0.210/5/3)
> 
> We haven't patched the uname program.  emacs can use the same standard
> UNIX function calls as uname:
> 
> http://cygwin.com/ml/cygwin/2009-05/msg00496.html

Great, thanks.  This means that an existing Emacs variable
`operating-system-release', whose value is derived from uts.release,
should hold either "1.5.SOMETHING" or "1.7.SOMETHING", and that can be
used to distinguish between the two Cygwin families.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Christopher Faylor
On Sun, May 17, 2009 at 06:12:04AM +0300, Eli Zaretskii wrote:
>> Date: Sat, 16 May 2009 02:52:22 -0700 (PDT)
>> From: Marc Girod 
>> 
>> Eli Zaretskii wrote:
>> > 
>> > ...if Emacs could know the Cygwin version.
>> > 
>> uname -r
>> 
>> this gives on 2 installations e.g.:
>> 
>> 1.5.25(0.156/4/2)
>> 1.7.0(0.210/5/3)
>> 
>> $ ./uname -s
>> CYGWIN_NT-6.0
>
>I meant an Emacs function, not an external program.  That Emacs
>function could call the same API that uname uses to report these
>values, but depending on external programs that are not necessarily
>installed is not the best idea.

We haven't patched the uname program.  emacs can use the same standard
UNIX function calls as uname:

http://cygwin.com/ml/cygwin/2009-05/msg00496.html

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Eli Zaretskii
> Date: Sat, 16 May 2009 02:52:22 -0700 (PDT)
> From: Marc Girod 
> 
> Eli Zaretskii wrote:
> > 
> > ...if Emacs could know the Cygwin version.
> > 
> uname -r
> 
> this gives on 2 installations e.g.:
> 
> 1.5.25(0.156/4/2)
> 1.7.0(0.210/5/3)
> 
> $ ./uname -s
> CYGWIN_NT-6.0

I meant an Emacs function, not an external program.  That Emacs
function could call the same API that uname uses to report these
values, but depending on external programs that are not necessarily
installed is not the best idea.

Thanks.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Marc Girod on 5/16/2009 4:17 AM:
> 
> Marc Girod wrote:
>> uname -r
>> this gives on 2 installations e.g.:
>> 
>> 1.5.25(0.156/4/2)
>> 1.7.0(0.210/5/3)
>> 
>> $ ./uname -s
>> CYGWIN_NT-6.0
> 

uname -s is wrong (you will get the same answer for two different cygwin
installations on the same underlying Windows, but different answers across
different Windows versions).  But uname -r is reliable.

>>
> Er... maybe you would object that this is part of coreutils,
> and thus not necessarily of every cygwin installation...

Coreutils is part of every cygwin installation, as is every other package
in the Base category (for example, findutils, tar, bash...).  In other
words, there are some programs so essential to a unix-y environment that
you can count on them being present.

But that said, all coreutils' uname(1) does is call uname(2).  So emacs
can reliably use uname(2) (provided by cygwin1.dll) rather than wasting a
fork to call uname(1).

- --
Don't work too hard, make some time for fun as well!

Eric Blake e...@byu.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoOuBAACgkQ84KuGfSFAYCwJQCgk7m39ef9Jp5NiVWgX/4/tfN3
pI8Anjq1G3mIwif/JCu68Iu3BrI2eVWW
=CgBH
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Marc Girod


Marc Girod wrote:
> 
> uname -r
> 
Er... maybe you would object that this is part of coreutils,
and thus not necessarily of every cygwin installation...

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A--1.7--Updated%3A-%7Bemacs%2Cemacs-X11%2Cemacs-el%7D-23.0.92-1-tp23559935p23572349.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Marc Girod

I just noticed that my /usr/share/info/dir file was reduced to a bare
minimum:
2 lines for libc and libm...
I had just updated 1.7 to the latest...

My setup.log.full has indeed:

unlink C:\cygwin2/usr/share/info/dir
unlink C:\cygwin2/usr/share/info/libc.info
unlink C:\cygwin2/usr/share/info/libm.info
unlink C:\cygwin2/usr/share/info/standards.info
...
Installing file cygfile:///usr/share/info/dir
Installing file cygfile:///usr/share/info/libc.info
Installing file cygfile:///usr/share/info/libm.info
Installing file cygfile:///usr/share/info/standards.info

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A--1.7--Updated%3A-%7Bemacs%2Cemacs-X11%2Cemacs-el%7D-23.0.92-1-tp23559935p23572302.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Marc Girod


Eli Zaretskii wrote:
> 
> ...if Emacs could know the Cygwin version.
> 
uname -r

this gives on 2 installations e.g.:

1.5.25(0.156/4/2)
1.7.0(0.210/5/3)

$ ./uname -s
CYGWIN_NT-6.0

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A--1.7--Updated%3A-%7Bemacs%2Cemacs-X11%2Cemacs-el%7D-23.0.92-1-tp23559935p23572106.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-16 Thread Eli Zaretskii
> Date: Fri, 15 May 2009 09:29:37 -0400
> From: Ken Brown 
> CC: cygwin at cygwin dot com
> 
>  (concat ".newmail-"
>   (file-name-nondirectory
>(if (memq system-type '(windows-nt cygwin ms-dos))
>;; cannot have colons in file name
>(replace-regexp-in-string ":" "-" file)
>  file)))
> 
> By the way, the patch is no longer needed; as of cygwin 1.7, it's legal 
> to have colons in file names.

Right, but the Emacs developers do not want so easily to drop support
for all older versions of Cygwin, especially since Cygwin 1.7 is still
in beta.

Btw, it might be a good idea to introduce some Emacs function or
variable that would return the version of Cygwin being used at run
time, so that Lisp programs could avoid limiting Cygwin 1.7 and later
where older versions are inherently limited.  The above is a case in
point, even though it is not a grave limitation; but there are more
serious limitations in the Emacs sources that could be lifted for
newer Cygwin versions, if Emacs could know the Cygwin version.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [1.7] Updated: {emacs,emacs-X11,emacs-el}-23.0.92-1

2009-05-15 Thread Ken Brown

On 5/15/2009 9:09 AM, gustav wrote:

Dear Ken,

First, thank you so much for having taken care of Emacs!

I enclose a patch to rmail.el, which I always have to apply, because
version 21.2 normally attempts to create files with "po:", but neither
Windows nor Cygwin tolerate that. Current rmail.el checks for Windows,
but doesn't for Cygwin.


This has already been fixed upstream, as of emacs 22.1.  Here's an 
excerpt from the current rmail.el (emacs 23.0.92):


(concat ".newmail-"
(file-name-nondirectory
 (if (memq system-type '(windows-nt cygwin ms-dos))
 ;; cannot have colons in file name
 (replace-regexp-in-string ":" "-" file)
   file)))

By the way, the patch is no longer needed; as of cygwin 1.7, it's legal 
to have colons in file names.


Ken

P.S.  For future reference, it's best to send comments about cygwin 
packages to the cygwin mailing list so that others can benefit from them 
also.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/