comparison lispintro/emacs-lisp-intro.texi @ 90399:a5812696f7bf unicode-pre-font-backend

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 274-284) - Update from CVS - Update etc/MORE.STUFF. - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 101) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-62
author Miles Bader <miles@gnu.org>
date Wed, 17 May 2006 07:46:49 +0000
parents c5406394f567 bd74271e8d03
children a8190f7e546e
comparison
equal deleted inserted replaced
90398:1f8d5cd37cf0 90399:a5812696f7bf
17098 @end smallexample 17098 @end smallexample
17099 17099
17100 @item 17100 @item
17101 Convert @kbd{@key{CTL}-h} into @key{DEL} and @key{DEL} 17101 Convert @kbd{@key{CTL}-h} into @key{DEL} and @key{DEL}
17102 into @kbd{@key{CTL}-h}.@* 17102 into @kbd{@key{CTL}-h}.@*
17103 (Some olders keyboards needed this, although I have not seen the 17103 (Some older keyboards needed this, although I have not seen the
17104 problem recently.) 17104 problem recently.)
17105 17105
17106 @smallexample 17106 @smallexample
17107 @group 17107 @group
17108 ;; Translate `C-h' to <DEL>. 17108 ;; Translate `C-h' to <DEL>.
19487 @cindex Axis, print horizontal 19487 @cindex Axis, print horizontal
19488 @cindex X axis printing 19488 @cindex X axis printing
19489 @cindex Print horizontal axis 19489 @cindex Print horizontal axis
19490 @cindex Horizontal axis printing 19490 @cindex Horizontal axis printing
19491 19491
19492 X axis labels are much like Y axis labels, except that the tics are on a 19492 X axis labels are much like Y axis labels, except that the ticks are on a
19493 line above the numbers. Labels should look like this: 19493 line above the numbers. Labels should look like this:
19494 19494
19495 @smallexample 19495 @smallexample
19496 @group 19496 @group
19497 | | | | 19497 | | | |
19499 @end group 19499 @end group
19500 @end smallexample 19500 @end smallexample
19501 19501
19502 The first tic is under the first column of the graph and is preceded by 19502 The first tic is under the first column of the graph and is preceded by
19503 several blank spaces. These spaces provide room in rows above for the Y 19503 several blank spaces. These spaces provide room in rows above for the Y
19504 axis labels. The second, third, fourth, and subsequent tics are all 19504 axis labels. The second, third, fourth, and subsequent ticks are all
19505 spaced equally, according to the value of @code{X-axis-label-spacing}. 19505 spaced equally, according to the value of @code{X-axis-label-spacing}.
19506 19506
19507 The second row of the X axis consists of numbers, preceded by several 19507 The second row of the X axis consists of numbers, preceded by several
19508 blank spaces and also separated according to the value of the variable 19508 blank spaces and also separated according to the value of the variable
19509 @code{X-axis-label-spacing}. 19509 @code{X-axis-label-spacing}.
19627 @dots{} 19627 @dots{}
19628 @end group 19628 @end group
19629 @end smallexample 19629 @end smallexample
19630 19630
19631 We also need to determine the length of the horizontal axis, which is 19631 We also need to determine the length of the horizontal axis, which is
19632 the length of the numbers list, and the number of tics in the horizontal 19632 the length of the numbers list, and the number of ticks in the horizontal
19633 axis: 19633 axis:
19634 19634
19635 @smallexample 19635 @smallexample
19636 @group 19636 @group
19637 ;; X-length 19637 ;; X-length
19644 @dots{} 19644 @dots{}
19645 (* symbol-width X-axis-label-spacing) 19645 (* symbol-width X-axis-label-spacing)
19646 @end group 19646 @end group
19647 19647
19648 @group 19648 @group
19649 ;; number-of-X-tics 19649 ;; number-of-X-ticks
19650 (if (zerop (% (X-length tic-width))) 19650 (if (zerop (% (X-length tic-width)))
19651 (/ (X-length tic-width)) 19651 (/ (X-length tic-width))
19652 (1+ (/ (X-length tic-width)))) 19652 (1+ (/ (X-length tic-width))))
19653 @end group 19653 @end group
19654 @end smallexample 19654 @end smallexample
19659 @findex print-X-axis-tic-line 19659 @findex print-X-axis-tic-line
19660 @smallexample 19660 @smallexample
19661 @group 19661 @group
19662 (defun print-X-axis-tic-line 19662 (defun print-X-axis-tic-line
19663 (number-of-X-tics X-axis-leading-spaces X-axis-tic-element) 19663 (number-of-X-tics X-axis-leading-spaces X-axis-tic-element)
19664 "Print tics for X axis." 19664 "Print ticks for X axis."
19665 (insert X-axis-leading-spaces) 19665 (insert X-axis-leading-spaces)
19666 (insert X-axis-tic-symbol) ; @r{Under first column.} 19666 (insert X-axis-tic-symbol) ; @r{Under first column.}
19667 @end group 19667 @end group
19668 @group 19668 @group
19669 ;; @r{Insert second tic in the right spot.} 19669 ;; @r{Insert second tic in the right spot.}
19674 (* 2 (length X-axis-tic-symbol))) 19674 (* 2 (length X-axis-tic-symbol)))
19675 ? ) 19675 ? )
19676 X-axis-tic-symbol)) 19676 X-axis-tic-symbol))
19677 @end group 19677 @end group
19678 @group 19678 @group
19679 ;; @r{Insert remaining tics.} 19679 ;; @r{Insert remaining ticks.}
19680 (while (> number-of-X-tics 1) 19680 (while (> number-of-X-tics 1)
19681 (insert X-axis-tic-element) 19681 (insert X-axis-tic-element)
19682 (setq number-of-X-tics (1- number-of-X-tics)))) 19682 (setq number-of-X-tics (1- number-of-X-tics))))
19683 @end group 19683 @end group
19684 @end smallexample 19684 @end smallexample
20903 20903
20904 @smallexample 20904 @smallexample
20905 @group 20905 @group
20906 (defun print-X-axis-tic-line 20906 (defun print-X-axis-tic-line
20907 (number-of-X-tics X-axis-leading-spaces X-axis-tic-element) 20907 (number-of-X-tics X-axis-leading-spaces X-axis-tic-element)
20908 "Print tics for X axis." 20908 "Print ticks for X axis."
20909 (insert X-axis-leading-spaces) 20909 (insert X-axis-leading-spaces)
20910 (insert X-axis-tic-symbol) ; @r{Under first column.} 20910 (insert X-axis-tic-symbol) ; @r{Under first column.}
20911 @end group 20911 @end group
20912 @group 20912 @group
20913 ;; @r{Insert second tic in the right spot.} 20913 ;; @r{Insert second tic in the right spot.}
20918 (* 2 (length X-axis-tic-symbol))) 20918 (* 2 (length X-axis-tic-symbol)))
20919 ? ) 20919 ? )
20920 X-axis-tic-symbol)) 20920 X-axis-tic-symbol))
20921 @end group 20921 @end group
20922 @group 20922 @group
20923 ;; @r{Insert remaining tics.} 20923 ;; @r{Insert remaining ticks.}
20924 (while (> number-of-X-tics 1) 20924 (while (> number-of-X-tics 1)
20925 (insert X-axis-tic-element) 20925 (insert X-axis-tic-element)
20926 (setq number-of-X-tics (1- number-of-X-tics)))) 20926 (setq number-of-X-tics (1- number-of-X-tics))))
20927 @end group 20927 @end group
20928 @end smallexample 20928 @end smallexample