Mercurial > emacs
view lisp/forms-pass.el @ 96231:2b8c49fb8d24
* buffer.h (struct buffer): New member word_wrap.
* buffer.c (syms_of_buffer): New variables default-word-wrap and
word-wrap.
(init_buffer_once): Initialize them.
* dispextern.h (struct it): Replace bool truncate_lines_p with a
line_wrap enum possessing three possible values.
* termopts.h: Replace truncate_partial_width_windows with
Vtruncate_partial_width_windows.
* dispnew.c (direct_output_for_insert): Avoid direct output when
inserting a space with word wrap on.
* indent.c (compute_motion): Obey integer values of
truncate-partial-width-windows.
* xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
replacing truncate_partial_width_windows.
(init_iterator): If Vtruncate_partial_width_windows is an integer,
truncate only if the window width is below that integer.
(start_display. resize_mini_window, produce_stretch_glyph)
(display_string, move_it_in_display_line_to): Use line_wrap.
(back_to_previous_visible_line_start, reseat_1): Reset
string_from_display_prop_p.
(display_line): Extend default face to end of line when wrapping.
(display_line, move_it_in_display_line_to): Add ability
to wrap continued lines at word boundaries.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 24 Jun 2008 17:54:59 +0000 |
parents | 1e3a407766b9 |
children | ef719132ddfa |
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