view lisp/forms-pass.el @ 31119:afa1f54fb948

(malloc, free, realloc, calloc): Rename if USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it cannot override the CRT malloc. (_WINSOCK_H): Define to prevent normal winsock definitions from being used. (sys_nerr): Provide default definition. (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same name with _ prepended. (NSIG): Define if not known. (get_emacs_configuration): Provide extern declaration. (get_emacs_configuration_options): Provide extern declaration. (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
author Andrew Innes <andrewi@gnu.org>
date Tue, 22 Aug 2000 23:55:09 +0000
parents 84acc3adcd63
children 67b464da13ec
line wrap: on
line source

;;; forms-pass.el --- passwd file demo for forms-mode

;; This demo visits your passwd file.

;; use yp if present
(or (file-exists-p (setq forms-file "/var/yp/src/passwd"))
    (setq forms-file "/etc/passwd"))

(setq forms-read-only t)		; to make sure
(setq forms-field-sep ":")
(setq forms-number-of-fields 7)

(setq forms-format-list
      (list
       "====== Visiting " forms-file " ======\n\n"
       "User : "	1
       "   Uid: "	3
       "   Gid: "	4
       "\n\n"
       "Name : "	5
       "\n\n"
       "Home : "	6
       "\n\n"
       "Shell: "	7
       "\n"))