comparison lisp/array.el @ 90203:187d6a1f84f7

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-71 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 485-492) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 92-94) - Merge from emacs--cvs-trunk--0 - Update from CVS
author Miles Bader <miles@gnu.org>
date Fri, 22 Jul 2005 08:27:27 +0000
parents f9a65d7ebd29 dd1d759e63db
children 2d92f5c9d6ae
comparison
equal deleted inserted replaced
90202:7597b4a23c3b 90203:187d6a1f84f7
636 636
637 (defun array-reconfigure-rows (new-columns-per-line new-rows-numbered) 637 (defun array-reconfigure-rows (new-columns-per-line new-rows-numbered)
638 "Reconfigure the state of `array-rows-numbered' and `array-columns-per-line'. 638 "Reconfigure the state of `array-rows-numbered' and `array-columns-per-line'.
639 NEW-COLUMNS-PER-LINE is the desired value of `array-columns-per-line' and 639 NEW-COLUMNS-PER-LINE is the desired value of `array-columns-per-line' and
640 NEW-ROWS-NUMBERED (a character, either ?y or ?n) is the desired value 640 NEW-ROWS-NUMBERED (a character, either ?y or ?n) is the desired value
641 of array-rows-numbered." 641 of `array-rows-numbered'."
642 (interactive "nColumns per line: \ncRows numbered? (y or n) ") 642 (interactive "nColumns per line: \ncRows numbered? (y or n) ")
643 ;; Check on new-columns-per-line 643 ;; Check on new-columns-per-line
644 (let ((check t)) 644 (let ((check t))
645 (while check 645 (while check
646 (if (and (>= new-columns-per-line 1) 646 (if (and (>= new-columns-per-line 1)
715 (forward-line 1)))) 715 (forward-line 1))))
716 (setq this-row (1+ this-row))) 716 (setq this-row (1+ this-row)))
717 (let ((inhibit-quit t)) 717 (let ((inhibit-quit t))
718 (set-buffer main-buffer) 718 (set-buffer main-buffer)
719 (erase-buffer) 719 (erase-buffer)
720 (insert-buffer temp-buffer) 720 (insert-buffer-substring temp-buffer)
721 ;; Update local variables. 721 ;; Update local variables.
722 (setq array-columns-per-line new-columns-per-line) 722 (setq array-columns-per-line new-columns-per-line)
723 (setq array-rows-numbered new-rows-numbered) 723 (setq array-rows-numbered new-rows-numbered)
724 (setq array-line-length (* old-field-width new-columns-per-line)) 724 (setq array-line-length (* old-field-width new-columns-per-line))
725 (setq array-lines-per-row 725 (setq array-lines-per-row
765 (progn 765 (progn
766 (untabify-backward) 766 (untabify-backward)
767 (move-to-column column))))) 767 (move-to-column column)))))
768 768
769 (defun untabify-backward () 769 (defun untabify-backward ()
770 "Untabify the preceding tab." 770 "Untabify the preceding TAB."
771 (save-excursion 771 (save-excursion
772 (let ((start (point))) 772 (let ((start (point)))
773 (backward-char 1) 773 (backward-char 1)
774 (untabify (point) start)))) 774 (untabify (point) start))))
775 775
815 NOT recognized as integers or real numbers. 815 NOT recognized as integers or real numbers.
816 816
817 The array MUST reside at the top of the buffer. 817 The array MUST reside at the top of the buffer.
818 818
819 TABs are not respected, and may be converted into spaces at any time. 819 TABs are not respected, and may be converted into spaces at any time.
820 Setting the variable 'array-respect-tabs to non-nil will prevent TAB conversion, 820 Setting the variable `array-respect-tabs' to non-nil will prevent TAB conversion,
821 but will cause many functions to give errors if they encounter one. 821 but will cause many functions to give errors if they encounter one.
822 822
823 Upon entering array mode, you will be prompted for the values of 823 Upon entering array mode, you will be prompted for the values of
824 several variables. Others will be calculated based on the values you 824 several variables. Others will be calculated based on the values you
825 supply. These variables are all local to the buffer. Other buffer 825 supply. These variables are all local to the buffer. Other buffer