diff options
| author | Juanma Barranquero | 2007-09-26 00:36:39 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-09-26 00:36:39 +0000 |
| commit | 4e454e5bed3bffcbf38ac291b092c346a6b177cf (patch) | |
| tree | f91cea6782855f113df86c62c15f4d9062c11ac3 | |
| parent | 6c3bce72f81c39a71578176e7a12eb92f0c8cede (diff) | |
| download | emacs-4e454e5bed3bffcbf38ac291b092c346a6b177cf.tar.gz emacs-4e454e5bed3bffcbf38ac291b092c346a6b177cf.zip | |
(table--generate-source-epilogue, table-insert,
table--generate-source-cells-in-a-row, table--make-cell-map,
*table--cell-describe-bindings): Use `mapc' rather than `mapcar'.
| -rw-r--r-- | lisp/ChangeLog | 65 | ||||
| -rw-r--r-- | lisp/textmodes/table.el | 82 |
2 files changed, 105 insertions, 42 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8d694708e0d..c621d257a44 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,66 @@ | |||
| 1 | 2007-09-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-ext.el (calc-init-extensions, calc-reset): | ||
| 4 | * calc/calc-help.el (calc-full-help): | ||
| 5 | * calc/calc-misc.el (another-calc): | ||
| 6 | * calc/calc-store.el (calc-var-name-map): | ||
| 7 | * calc/calc-stuff.el (calc-flush-caches): | ||
| 8 | * calc/calc-units.el (math-build-units-table): | ||
| 9 | * calc/calc.el (calc-digit-map, calc-dispatch-map, calc-mode) | ||
| 10 | (calc-quit): | ||
| 11 | * calendar/icalendar.el (icalendar--format-ical-event) | ||
| 12 | (icalendar--convert-ical-to-diary): | ||
| 13 | * emacs-lisp/authors.el (authors): | ||
| 14 | * emacs-lisp/cust-print.el (custom-print-install) | ||
| 15 | (custom-print-uninstall): | ||
| 16 | * emacs-lisp/disass.el (disassemble-1): | ||
| 17 | * emacs-lisp/easy-mmode.el (easy-mmode-define-syntax): | ||
| 18 | * emacs-lisp/edebug.el (byte-compile-resolve-functions): | ||
| 19 | * emacs-lisp/elint.el (elint-current-buffer, elint-check-defun-form) | ||
| 20 | (elint-check-let-form, elint-check-condition-case-form) | ||
| 21 | (elint-initialize): | ||
| 22 | * emacs-lisp/elp.el (elp-results): | ||
| 23 | * emacs-lisp/generic.el (generic-mode-internal): | ||
| 24 | * emacs-lisp/re-builder.el (reb-delete-overlays): | ||
| 25 | * emacs-lisp/regi.el (regi-interpret): | ||
| 26 | * emacs-lisp/sregex.el (sregex--char-aux): | ||
| 27 | * emulation/cua-rect.el (cua--deactivate-rectangle) | ||
| 28 | (cua--highlight-rectangle, cua--rectangle-post-command): | ||
| 29 | * emulation/viper-keym.el (viper-toggle-key, viper-ESC-key): | ||
| 30 | * emulation/viper-macs.el (viper-describe-kbd-macros) | ||
| 31 | (viper-describe-one-macro): | ||
| 32 | * emulation/viper-util.el (viper-setup-master-buffer): | ||
| 33 | * emulation/viper.el (set-viper-state-in-major-mode): | ||
| 34 | * international/mule-diag.el (describe-current-coding-system): | ||
| 35 | * language/ethio-util.el (ethio-fidel-to-sera-buffer): | ||
| 36 | * mail/emacsbug.el (report-emacs-bug): | ||
| 37 | * net/ange-ftp.el (ange-ftp-call-chmod, ange-ftp-parse-bs2000-listing): | ||
| 38 | * obsolete/hilit19.el (hilit-unhighlight-region) | ||
| 39 | (hilit-set-mode-patterns): | ||
| 40 | * play/solitaire.el (solitaire-check, solitaire-solve): | ||
| 41 | * play/zone.el (zone-pgm-rotate): | ||
| 42 | * progmodes/ada-mode.el (ada-save-exceptions-to-file): | ||
| 43 | * progmodes/ada-prj.el (ada-prj-display-page): | ||
| 44 | * progmodes/delphi.el (delphi-search-directory, delphi-find-unit-file) | ||
| 45 | (delphi-debug-mode-map, delphi-mode-map, delphi-mode): | ||
| 46 | * progmodes/ebrowse.el (ebrowse-tree-mode, ebrowse-view-exit-fn) | ||
| 47 | (ebrowse-member-mode, ebrowse-save-tree-as, ebrowse-save-class): | ||
| 48 | * progmodes/sh-script.el (sh-make-vars-local) | ||
| 49 | (sh-reset-indent-vars-to-global-values): | ||
| 50 | * progmodes/sql.el (top): | ||
| 51 | * progmodes/vhdl-mode.el (vhdl-set-style, vhdl-regress-line): | ||
| 52 | * progmodes/xscheme.el (top): | ||
| 53 | * textmodes/artist.el (artist-mt-get-symbol-from-keyword-sub) | ||
| 54 | (artist-go-retrieve-from-symbol-sub, artist-go-get-symbol-shift-sub) | ||
| 55 | (artist-fc-retrieve-from-symbol-sub, artist-vaporize-line) | ||
| 56 | (artist-vaporize-lines, artist-ellipse-compute-fill-info) | ||
| 57 | (artist-submit-bug-report): | ||
| 58 | * textmodes/flyspell.el (flyspell-delay-commands) | ||
| 59 | (flyspell-deplacement-commands): | ||
| 60 | * textmodes/table.el (table--generate-source-epilogue, table-insert) | ||
| 61 | (table--generate-source-cells-in-a-row, table--make-cell-map) | ||
| 62 | (*table--cell-describe-bindings): Use `mapc' rather than `mapcar'. | ||
| 63 | |||
| 1 | 2007-09-25 Juanma Barranquero <lekktu@gmail.com> | 64 | 2007-09-25 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 65 | ||
| 3 | * allout.el (produce-allout-mode-map, allout-process-exposed): | 66 | * allout.el (produce-allout-mode-map, allout-process-exposed): |
| @@ -71,7 +134,7 @@ | |||
| 71 | 134 | ||
| 72 | 2007-09-24 Adam Hupp <adam@hupp.org> | 135 | 2007-09-24 Adam Hupp <adam@hupp.org> |
| 73 | 136 | ||
| 74 | * progmodes/python.el (run-python): Import Emacs module without | 137 | * progmodes/python.el (run-python): Import emacs module without |
| 75 | waiting; prevents lockup on error. | 138 | waiting; prevents lockup on error. |
| 76 | 139 | ||
| 77 | 2007-09-23 Richard Stallman <rms@gnu.org> | 140 | 2007-09-23 Richard Stallman <rms@gnu.org> |
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index eadb9e606c3..5e8b8c7cbc2 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -1376,7 +1376,7 @@ the last cache point coordinate." | |||
| 1376 | ;; | 1376 | ;; |
| 1377 | 1377 | ||
| 1378 | ;; Point Motion Only Group | 1378 | ;; Point Motion Only Group |
| 1379 | (mapcar | 1379 | (mapc |
| 1380 | (lambda (command) | 1380 | (lambda (command) |
| 1381 | (let ((func-symbol (intern (format "*table--cell-%s" command))) | 1381 | (let ((func-symbol (intern (format "*table--cell-%s" command))) |
| 1382 | (doc-string (format "Table remapped function for `%s'." command))) | 1382 | (doc-string (format "Table remapped function for `%s'." command))) |
| @@ -1409,7 +1409,7 @@ the last cache point coordinate." | |||
| 1409 | backward-paragraph)) | 1409 | backward-paragraph)) |
| 1410 | 1410 | ||
| 1411 | ;; Extraction Group | 1411 | ;; Extraction Group |
| 1412 | (mapcar | 1412 | (mapc |
| 1413 | (lambda (command) | 1413 | (lambda (command) |
| 1414 | (let ((func-symbol (intern (format "*table--cell-%s" command))) | 1414 | (let ((func-symbol (intern (format "*table--cell-%s" command))) |
| 1415 | (doc-string (format "Table remapped function for `%s'." command))) | 1415 | (doc-string (format "Table remapped function for `%s'." command))) |
| @@ -1443,7 +1443,7 @@ the last cache point coordinate." | |||
| 1443 | backward-kill-sexp)) | 1443 | backward-kill-sexp)) |
| 1444 | 1444 | ||
| 1445 | ;; Pasting Group | 1445 | ;; Pasting Group |
| 1446 | (mapcar | 1446 | (mapc |
| 1447 | (lambda (command) | 1447 | (lambda (command) |
| 1448 | (let ((func-symbol (intern (format "*table--cell-%s" command))) | 1448 | (let ((func-symbol (intern (format "*table--cell-%s" command))) |
| 1449 | (doc-string (format "Table remapped function for `%s'." command))) | 1449 | (doc-string (format "Table remapped function for `%s'." command))) |
| @@ -1469,7 +1469,7 @@ the last cache point coordinate." | |||
| 1469 | insert)) | 1469 | insert)) |
| 1470 | 1470 | ||
| 1471 | ;; Formatting Group | 1471 | ;; Formatting Group |
| 1472 | (mapcar | 1472 | (mapc |
| 1473 | (lambda (command) | 1473 | (lambda (command) |
| 1474 | (let ((func-symbol (intern (format "*table--cell-%s" command))) | 1474 | (let ((func-symbol (intern (format "*table--cell-%s" command))) |
| 1475 | (doc-string (format "Table remapped function for `%s'." command))) | 1475 | (doc-string (format "Table remapped function for `%s'." command))) |
| @@ -1641,20 +1641,20 @@ Inside a table cell has a special keymap. | |||
| 1641 | (if (numberp cell-width) (setq cell-width (cons cell-width nil))) | 1641 | (if (numberp cell-width) (setq cell-width (cons cell-width nil))) |
| 1642 | (if (numberp cell-height) (setq cell-height (cons cell-height nil))) | 1642 | (if (numberp cell-height) (setq cell-height (cons cell-height nil))) |
| 1643 | ;; test validity of the arguments. | 1643 | ;; test validity of the arguments. |
| 1644 | (mapcar (lambda (arg) | 1644 | (mapc (lambda (arg) |
| 1645 | (let* ((value (symbol-value arg)) | 1645 | (let* ((value (symbol-value arg)) |
| 1646 | (error-handler | 1646 | (error-handler |
| 1647 | (function (lambda () | 1647 | (function (lambda () |
| 1648 | (error "%s must be a positive integer%s" arg | 1648 | (error "%s must be a positive integer%s" arg |
| 1649 | (if (listp value) " or a list of positive integers" "")))))) | 1649 | (if (listp value) " or a list of positive integers" "")))))) |
| 1650 | (if (null value) (funcall error-handler)) | 1650 | (if (null value) (funcall error-handler)) |
| 1651 | (mapcar (function (lambda (arg1) | 1651 | (mapcar (function (lambda (arg1) |
| 1652 | (if (or (not (integerp arg1)) | 1652 | (if (or (not (integerp arg1)) |
| 1653 | (< arg1 1)) | 1653 | (< arg1 1)) |
| 1654 | (funcall error-handler)))) | 1654 | (funcall error-handler)))) |
| 1655 | (if (listp value) value | 1655 | (if (listp value) value |
| 1656 | (cons value nil))))) | 1656 | (cons value nil))))) |
| 1657 | '(columns rows cell-width cell-height)) | 1657 | '(columns rows cell-width cell-height)) |
| 1658 | (let ((orig-coord (table--get-coordinate)) | 1658 | (let ((orig-coord (table--get-coordinate)) |
| 1659 | (coord (table--get-coordinate)) | 1659 | (coord (table--get-coordinate)) |
| 1660 | r i cw ch cell-str border-str) | 1660 | r i cw ch cell-str border-str) |
| @@ -3141,7 +3141,7 @@ CALS (DocBook DTD): | |||
| 3141 | (set-marker-insertion-type (table-get-source-info 'colspec-marker) t) ;; insert before | 3141 | (set-marker-insertion-type (table-get-source-info 'colspec-marker) t) ;; insert before |
| 3142 | (save-excursion | 3142 | (save-excursion |
| 3143 | (goto-char (table-get-source-info 'colspec-marker)) | 3143 | (goto-char (table-get-source-info 'colspec-marker)) |
| 3144 | (mapcar | 3144 | (mapc |
| 3145 | (lambda (col) | 3145 | (lambda (col) |
| 3146 | (insert (format " <colspec colnum=\"%d\" colname=\"c%d\"/>\n" col col))) | 3146 | (insert (format " <colspec colnum=\"%d\" colname=\"c%d\"/>\n" col col))) |
| 3147 | (sort (table-get-source-info 'colnum-list) '<))) | 3147 | (sort (table-get-source-info 'colnum-list) '<))) |
| @@ -3223,11 +3223,11 @@ CALS (DocBook DTD): | |||
| 3223 | (if (> colspan 1) | 3223 | (if (> colspan 1) |
| 3224 | (let ((scol (table-get-source-info 'current-column)) | 3224 | (let ((scol (table-get-source-info 'current-column)) |
| 3225 | (ecol (+ (table-get-source-info 'current-column) colspan -1))) | 3225 | (ecol (+ (table-get-source-info 'current-column) colspan -1))) |
| 3226 | (mapcar (lambda (col) | 3226 | (mapc (lambda (col) |
| 3227 | (unless (memq col (table-get-source-info 'colnum-list)) | 3227 | (unless (memq col (table-get-source-info 'colnum-list)) |
| 3228 | (table-put-source-info 'colnum-list | 3228 | (table-put-source-info 'colnum-list |
| 3229 | (cons col (table-get-source-info 'colnum-list))))) | 3229 | (cons col (table-get-source-info 'colnum-list))))) |
| 3230 | (list scol ecol)) | 3230 | (list scol ecol)) |
| 3231 | (insert (format " namest=\"c%d\" nameend=\"c%d\"" scol ecol)))) | 3231 | (insert (format " namest=\"c%d\" nameend=\"c%d\"" scol ecol)))) |
| 3232 | (if (> rowspan 1) (insert (format " morerows=\"%d\"" (1- rowspan)))) | 3232 | (if (> rowspan 1) (insert (format " morerows=\"%d\"" (1- rowspan)))) |
| 3233 | (if (and alignment | 3233 | (if (and alignment |
| @@ -3910,19 +3910,19 @@ converts a table into plain text without frames. It is a companion to | |||
| 3910 | (remap-alist table-command-remap-alist)) | 3910 | (remap-alist table-command-remap-alist)) |
| 3911 | ;; table-command-prefix mode specific bindings | 3911 | ;; table-command-prefix mode specific bindings |
| 3912 | (if (vectorp table-command-prefix) | 3912 | (if (vectorp table-command-prefix) |
| 3913 | (mapcar (lambda (binding) | 3913 | (mapc (lambda (binding) |
| 3914 | (let ((seq (copy-sequence (car binding)))) | 3914 | (let ((seq (copy-sequence (car binding)))) |
| 3915 | (and (vectorp seq) | 3915 | (and (vectorp seq) |
| 3916 | (listp (aref seq 0)) | 3916 | (listp (aref seq 0)) |
| 3917 | (eq (car (aref seq 0)) 'control) | 3917 | (eq (car (aref seq 0)) 'control) |
| 3918 | (progn | 3918 | (progn |
| 3919 | (aset seq 0 (cadr (aref seq 0))) | 3919 | (aset seq 0 (cadr (aref seq 0))) |
| 3920 | (define-key map (vconcat table-command-prefix seq) (cdr binding)))))) | 3920 | (define-key map (vconcat table-command-prefix seq) (cdr binding)))))) |
| 3921 | table-cell-bindings)) | 3921 | table-cell-bindings)) |
| 3922 | ;; shorthand control bindings | 3922 | ;; shorthand control bindings |
| 3923 | (mapcar (lambda (binding) | 3923 | (mapc (lambda (binding) |
| 3924 | (define-key map (car binding) (cdr binding))) | 3924 | (define-key map (car binding) (cdr binding))) |
| 3925 | table-cell-bindings) | 3925 | table-cell-bindings) |
| 3926 | ;; remap normal commands to table specific version | 3926 | ;; remap normal commands to table specific version |
| 3927 | (while remap-alist | 3927 | (while remap-alist |
| 3928 | (define-key map (vector 'remap (caar remap-alist)) (cdar remap-alist)) | 3928 | (define-key map (vector 'remap (caar remap-alist)) (cdar remap-alist)) |
| @@ -4092,11 +4092,11 @@ key binding | |||
| 4092 | --- ------- | 4092 | --- ------- |
| 4093 | 4093 | ||
| 4094 | ") | 4094 | ") |
| 4095 | (mapcar (lambda (binding) | 4095 | (mapc (lambda (binding) |
| 4096 | (princ (format "%-16s%s\n" | 4096 | (princ (format "%-16s%s\n" |
| 4097 | (key-description (car binding)) | 4097 | (key-description (car binding)) |
| 4098 | (cdr binding)))) | 4098 | (cdr binding)))) |
| 4099 | table-cell-bindings) | 4099 | table-cell-bindings) |
| 4100 | (print-help-return-message)))) | 4100 | (print-help-return-message)))) |
| 4101 | 4101 | ||
| 4102 | (defun *table--cell-dabbrev-expand (arg) | 4102 | (defun *table--cell-dabbrev-expand (arg) |