diff options
| author | Dan Nicolaescu | 2008-07-16 07:01:36 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-16 07:01:36 +0000 |
| commit | 6b0273cd0a5ffcb7dc98b311bbfb4a112fc7db65 (patch) | |
| tree | 4fff763e222569289a50d6c9cf4efac20ddbe307 /src | |
| parent | 7206e7b7c7d36eef134ed0baddddc1370b04044d (diff) | |
| download | emacs-6b0273cd0a5ffcb7dc98b311bbfb4a112fc7db65.tar.gz emacs-6b0273cd0a5ffcb7dc98b311bbfb4a112fc7db65.zip | |
* editfns.c (Fuser_full_name): Replace the only use of
USER_FULL_NAME with its value.
* config.in: Regenerate.
* configure.in (freebsd, kfreebsd): Undo part of previous change.
(USER_FULL_NAME): Remove, not used anymore.
* configure: Regenerate.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/config.in | 11 | ||||
| -rw-r--r-- | src/editfns.c | 2 |
3 files changed, 7 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5a71765c29b..491931820ec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * editfns.c (Fuser_full_name): Replace the only use of | ||
| 4 | USER_FULL_NAME with its value. | ||
| 5 | * config.in: Regenerate. | ||
| 6 | |||
| 1 | 2008-07-16 David Reitter <david.reitter@gmail.com> | 7 | 2008-07-16 David Reitter <david.reitter@gmail.com> |
| 2 | 8 | ||
| 3 | * Makefile.in: add ns-win, ns-carbon-compat, easy-mmode and | 9 | * Makefile.in: add ns-win, ns-carbon-compat, easy-mmode and |
diff --git a/src/config.in b/src/config.in index 714d1d44f80..94750388c24 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -1001,17 +1001,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1001 | #undef MAC_OS | 1001 | #undef MAC_OS |
| 1002 | #undef MAC_OSX | 1002 | #undef MAC_OSX |
| 1003 | 1003 | ||
| 1004 | /* Define USER_FULL_NAME to return a string | ||
| 1005 | that is the user's full name. | ||
| 1006 | It can assume that the variable `pw' | ||
| 1007 | points to the password file entry for this user. | ||
| 1008 | |||
| 1009 | At some sites, the pw_gecos field contains | ||
| 1010 | the user's full name. If neither this nor any other | ||
| 1011 | field contains the right thing, use pw_name, | ||
| 1012 | giving the user's login name, since that is better than nothing. */ | ||
| 1013 | #define USER_FULL_NAME pw->pw_gecos | ||
| 1014 | |||
| 1015 | /* Define AMPERSAND_FULL_NAME if you use the convention | 1004 | /* Define AMPERSAND_FULL_NAME if you use the convention |
| 1016 | that & in the full name stands for the login id. */ | 1005 | that & in the full name stands for the login id. */ |
| 1017 | /* Turned on June 1996 supposing nobody will mind it. */ | 1006 | /* Turned on June 1996 supposing nobody will mind it. */ |
diff --git a/src/editfns.c b/src/editfns.c index 0487ecf4707..71973cec914 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1370,7 +1370,7 @@ name, or nil if there is no such user. */) | |||
| 1370 | if (!pw) | 1370 | if (!pw) |
| 1371 | return Qnil; | 1371 | return Qnil; |
| 1372 | 1372 | ||
| 1373 | p = (unsigned char *) USER_FULL_NAME; | 1373 | p = (unsigned char *) pw->pw_gecos; |
| 1374 | /* Chop off everything after the first comma. */ | 1374 | /* Chop off everything after the first comma. */ |
| 1375 | q = (unsigned char *) index (p, ','); | 1375 | q = (unsigned char *) index (p, ','); |
| 1376 | full = make_string (p, q ? q - p : strlen (p)); | 1376 | full = make_string (p, q ? q - p : strlen (p)); |