Mercurial > emacs
comparison lisp/array.el @ 64429:dd1d759e63db
(array-mode, array-reconfigure-rows, untabify-backward): Fix typos in
docstrings.
(array-reconfigure-rows): Use `insert-buffer-substring', not `insert-buffer'.
| author | Juanma Barranquero <lekktu@gmail.com> |
|---|---|
| date | Mon, 18 Jul 2005 09:35:43 +0000 |
| parents | 6fb026ad601f |
| children | 41bb365f41c4 187d6a1f84f7 |
comparison
equal
deleted
inserted
replaced
| 64428:e55dd693f95b | 64429:dd1d759e63db |
|---|---|
| 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 |
