Skip to content

Commit

Permalink
Made uuid interactive, will insert UUID into current buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
shofetim committed Jul 26, 2011
1 parent f2cfc7b commit ddd9a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uuid.el
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ the node information. Pre-defined ADDR-FUNCTION are
(seq (random)))
(uuid--from-time clock seq 4 'uuid--format-random-address)))

(defalias 'uuid 'uuid-1)

(defun uuid-from-hash (hash ver)
"Generate name based UUID form hash HASH and version VER."
(mapconcat 'identity
Expand Down Expand Up @@ -293,5 +291,9 @@ NAME is the node name string."
"Return the string representation of a UUID as a URN."
(concat "urn:uuid:" uuid))

(defun uuid ()
(interactive)
(insert (uuid-1)))

(provide 'uuid)
;;; uuid.el ends here

0 comments on commit ddd9a4f

Please sign in to comment.