view lisp/forms-pass.el @ 77732:07357daa3a7b

vc-hooks patch installed from trunk. table cell issue cannot be reproduced, even by the OP. rms: "I think we should not delay the release to fix this" http://lists.gnu.org/archive/html/emacs-devel/2007-05/msg00168.html "A redisplay bug in 22.0.99" was fixed by this change: 2007-05-12 Chong Yidong <cyd@stupidchicken.com> * image.c (pbm_load): Correctly check image size for greyscale pbm. (see also http://lists.gnu.org/archive/html/emacs-devel/2007-05/msg00498.html).
author Glenn Morris <rgm@gnu.org>
date Thu, 17 May 2007 07:43:28 +0000
parents 695cf19ef79e
children 375f2633d815 1e3a407766b9
line wrap: on
line source

;;; forms-pass.el --- passwd file demo for forms-mode -*- no-byte-compile: t -*-

;; This file is part of GNU Emacs.

;;; Commentary:

;; This demo visits your passwd file.

;;; Code:

;; 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"))

;;; arch-tag: 74801012-1a2d-4173-b9e4-fcfa241e2305
;;; forms-pass.el ends here