* src/dired.c (Fsystem_users): Doc fix.

* etc/NEWS: Mention system-users, system-groups.
This commit is contained in:
Glenn Morris 2012-04-16 21:35:15 -04:00
parent 316411f0f2
commit e5a3606344
3 changed files with 9 additions and 1 deletions

View file

@ -32,6 +32,9 @@ been adding them there, put them somewhere else, eg site-lisp.
* Changes in Emacs 24.2
** New functions `system-users', `system-groups' return lists of the user
name, group names known to the system (where possible).
** If your Emacs was built from a bzr checkout, the new variable
`emacs-bzr-version' contains information about which bzr revision was used.

View file

@ -1,3 +1,7 @@
2012-04-17 Glenn Morris <rgm@gnu.org>
* dired.c (Fsystem_users): Doc fix.
2012-04-17 Dmitry Antipov <dmantipov@yandex.ru>
* dired.c (Fsystem_users, Fsystem_groups): New functions. (Bug#7900)

View file

@ -1018,7 +1018,8 @@ Comparison is in lexicographic order and case is significant. */)
DEFUN ("system-users", Fsystem_users, Ssystem_users, 0, 0, 0,
doc: /* Return a list of user names currently registered in the system.
The value may be nil if not supported on this platform. */)
If we don't know how to determine that on this platform, just
return a list with one element, taken from `user-real-login-name'. */)
(void)
{
Lisp_Object users = Qnil;