unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Should Emacs provide a uuid function?
@ 2011-04-15  4:59 Leo
  2011-04-24 20:43 ` Chong Yidong
  0 siblings, 1 reply; 47+ messages in thread
From: Leo @ 2011-04-15  4:59 UTC (permalink / raw)
  To: emacs-devel

Hello all,

I wonder if Emacs can provide a make-uuid function to generate RFC4122
(http://www.ietf.org/rfc/rfc4122.txt) Universally Unique IDentifiers.
Many elisp packages have already come up with their own either by
calling external tool uuidgen or implementing a dumbed-down version.

Leo




^ permalink raw reply	[flat|nested] 47+ messages in thread
* Re: Should Emacs provide a uuid function?
@ 2011-04-26 21:06 Ben Key
  0 siblings, 0 replies; 47+ messages in thread
From: Ben Key @ 2011-04-26 21:06 UTC (permalink / raw)
  To: Emacs-devel, stephen, Eli Zaretskii

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

Hello,

When responding to a question about the availability of the uuidgen tool on
Windows Eli Zaretskii provided links to the Windows SDK uuidgen tool and the
Microsoft Exchange Server GUID Generator tool.  The problem is that we
cannot depend on either of these tools.

To begin with, according to the Man page of the GNU/Linux uuidgen tool, the
generated UUID is written "to the standard output."  The Windows SDK uuidgen
tool does not write to standard output; it instead creates a template IDL
file.  The Microsoft Exchange Server GUID Generator is a GUI application
that allows GUIDs to be generated in any of several formats and copied to
the clipboard.  Neither of these programs write output to stdout or support
the -r and -t command line arguments supported by the GNU/Linux uuidgen
tool, therefore they cannot be used as direct replacements of the GNU/Linux
uuidgen tool.

Even if they were functionally identical to the GNU/Linux uuidgen tool we
should not depend on them because both the Windows SDK uuidgen tool and the
Microsoft Exchange Server GUID Generator are developer tools that will not
be installed by default.

Thus the proposal to simply use the following line of code cannot be
expected to work on Windows unless the binary distribution of Emacs for
Windows provides its own implementation of uuidgen.
  (shell-command-to-string "uuidgen")

I have no opinion on whether or not Emacs should provide a uuid function but
I feel strongly that we should not be advising our users to depend on an
external tool that is generally not available on Microsoft Windows.

[-- Attachment #2: Type: text/html, Size: 1695 bytes --]

^ permalink raw reply	[flat|nested] 47+ messages in thread
* Re: Should Emacs provide a uuid function?
@ 2011-04-26 21:16 Ben Key
  2011-04-26 22:51 ` Chong Yidong
  0 siblings, 1 reply; 47+ messages in thread
From: Ben Key @ 2011-04-26 21:16 UTC (permalink / raw)
  To: Eli Zaretskii, Emacs-devel

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

Eli Zaretskii writes:

> The gist of it is that it's now part of the SDK, so no worries
> there.

I have two comments.  First, we should *NEVER* expect our users to have to
install an enormous, developer only, package like the Microsoft SDK just to
use Emacs.  It may be reasonable to expect them to install it to
*BUILD*Emacs but not to
*USE* Emacs.

Second, as I documented in an earlier message, the Microsoft SDK uuidgen
tool is *NOT* a drop in replacement for the GNU/Linux uuidgen tool.

For these two reasons, we *CANNOT* depend on the Microsoft SDK uuidgen tool.

[-- Attachment #2: Type: text/html, Size: 708 bytes --]

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

end of thread, other threads:[~2011-05-30 17:22 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15  4:59 Should Emacs provide a uuid function? Leo
2011-04-24 20:43 ` Chong Yidong
2011-04-25  3:37   ` Leo
2011-04-25  4:37     ` Stephen J. Turnbull
2011-04-25  7:21       ` Ken Raeburn
2011-04-25  8:45         ` Stephen J. Turnbull
2011-04-25  9:53           ` Eli Zaretskii
2011-04-25 10:33             ` Stephen J. Turnbull
2011-04-25 12:30               ` Eli Zaretskii
2011-04-28 15:11           ` Ken Raeburn
2011-04-29  3:47             ` Stephen J. Turnbull
2011-04-30  8:00               ` Ken Raeburn
2011-04-30 18:39                 ` Stephen J. Turnbull
2011-04-30 22:22                   ` Ken Raeburn
2011-05-01  9:06                     ` Stephen J. Turnbull
2011-04-30 13:32               ` Richard Stallman
2011-04-30 13:39                 ` Eli Zaretskii
2011-04-25 19:52         ` Chong Yidong
2011-04-28 15:11           ` Ken Raeburn
2011-05-09  6:29           ` Leo
2011-05-09  7:23             ` Eli Zaretskii
2011-05-09 10:51               ` Ted Zlatanov
2011-05-09 11:35                 ` Eli Zaretskii
2011-05-09 11:36                 ` Leo
2011-05-09 14:38               ` Stefan Monnier
2011-05-09 14:51                 ` Eli Zaretskii
2011-05-09 15:41                   ` Stefan Monnier
2011-05-09 15:50                     ` Eli Zaretskii
2011-05-09 17:03                       ` Stefan Monnier
2011-05-09 19:32                         ` Eli Zaretskii
2011-05-09 15:09                 ` Chong Yidong
2011-05-09 15:26                   ` Eli Zaretskii
2011-05-09 15:27                   ` Ted Zlatanov
2011-05-09 15:36                     ` Eli Zaretskii
2011-05-09 15:42                       ` Ted Zlatanov
2011-05-09 15:53                         ` Lars Magne Ingebrigtsen
2011-05-09 15:51                   ` Stefan Monnier
2011-05-09 15:59                     ` Lars Magne Ingebrigtsen
2011-05-09 17:05                       ` Stefan Monnier
2011-05-09 17:45                     ` joakim
2011-05-09 17:50                       ` Lars Magne Ingebrigtsen
2011-05-10 14:03                         ` Jason Rumney
2011-05-30 17:22                           ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2011-04-26 21:06 Ben Key
2011-04-26 21:16 Ben Key
2011-04-26 22:51 ` Chong Yidong
2011-04-27  3:43   ` Leo

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).