comparison lisp/org/org-table.el @ 99386:e9a50f67e0c7

* org.el (org-columns-modify-value-for-display-function): * org-table.el (org-table-convert-region): Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Nov 2008 17:33:50 +0000
parents 8fa7ef477c04
children e3acb52d33e1
comparison
equal deleted inserted replaced
99385:7b5dc2894014 99386:e9a50f67e0c7
377 integer When a number, use that many spaces as field separator 377 integer When a number, use that many spaces as field separator
378 nil When nil, the command tries to be smart and figure out the 378 nil When nil, the command tries to be smart and figure out the
379 separator in the following way: 379 separator in the following way:
380 - when each line contains a TAB, assume TAB-separated material 380 - when each line contains a TAB, assume TAB-separated material
381 - when each line contains a comme, assume CSV material 381 - when each line contains a comme, assume CSV material
382 - else, assume one or more SPACE charcters as separator." 382 - else, assume one or more SPACE characters as separator."
383 (interactive "rP") 383 (interactive "rP")
384 (let* ((beg (min beg0 end0)) 384 (let* ((beg (min beg0 end0))
385 (end (max beg0 end0)) 385 (end (max beg0 end0))
386 re) 386 re)
387 (goto-char beg) 387 (goto-char beg)
3488 (delete-backward-char 1) 3488 (delete-backward-char 1)
3489 (goto-char (match-beginning 0)) 3489 (goto-char (match-beginning 0))
3490 (self-insert-command N)) 3490 (self-insert-command N))
3491 (setq org-table-may-need-update t) 3491 (setq org-table-may-need-update t)
3492 (let (orgtbl-mode a) 3492 (let (orgtbl-mode a)
3493 (call-interactively 3493 (call-interactively
3494 (key-binding 3494 (key-binding
3495 (or (and (listp function-key-map) 3495 (or (and (listp function-key-map)
3496 (setq a (assoc last-input-event function-key-map)) 3496 (setq a (assoc last-input-event function-key-map))
3497 (cdr a)) 3497 (cdr a))
3498 (vector last-input-event))))))) 3498 (vector last-input-event)))))))
3567 for a horizontal separator line, or a list of field values as strings. 3567 for a horizontal separator line, or a list of field values as strings.
3568 The table is taken from the parameter TXT, or from the buffer at point." 3568 The table is taken from the parameter TXT, or from the buffer at point."
3569 (unless txt 3569 (unless txt
3570 (unless (org-at-table-p) 3570 (unless (org-at-table-p)
3571 (error "No table at point"))) 3571 (error "No table at point")))
3572 (let* ((txt (or txt 3572 (let* ((txt (or txt
3573 (buffer-substring-no-properties (org-table-begin) 3573 (buffer-substring-no-properties (org-table-begin)
3574 (org-table-end)))) 3574 (org-table-end))))
3575 (lines (org-split-string txt "[ \t]*\n[ \t]*"))) 3575 (lines (org-split-string txt "[ \t]*\n[ \t]*")))
3576 3576
3577 (mapcar 3577 (mapcar