Mercurial > emacs
comparison lisp/org/org-colview.el @ 100458:ba23e35d3eaf
2008-12-17 Carsten Dominik <carsten.dominik@gmail.com>
* Fix typos in comments and docstrings throughout Org-mode.
* org.el (org-get-outline-path): Fix bug if level is not given.
* org-agenda.el (org-finalize-agenda): Fix typo with variable
name.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Wed, 17 Dec 2008 12:34:50 +0000 |
parents | cea079b68b76 |
children | 0d3c634e0bd9 |
comparison
equal
deleted
inserted
replaced
100457:022a6a6d35ab | 100458:ba23e35d3eaf |
---|---|
3 ;; Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 3 ;; Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Carsten Dominik <carsten at orgmode dot org> | 5 ;; Author: Carsten Dominik <carsten at orgmode dot org> |
6 ;; Keywords: outlines, hypermedia, calendar, wp | 6 ;; Keywords: outlines, hypermedia, calendar, wp |
7 ;; Homepage: http://orgmode.org | 7 ;; Homepage: http://orgmode.org |
8 ;; Version: 6.15a | 8 ;; Version: 6.15d |
9 ;; | 9 ;; |
10 ;; This file is part of GNU Emacs. | 10 ;; This file is part of GNU Emacs. |
11 ;; | 11 ;; |
12 ;; GNU Emacs is free software: you can redistribute it and/or modify | 12 ;; GNU Emacs is free software: you can redistribute it and/or modify |
13 ;; it under the terms of the GNU General Public License as published by | 13 ;; it under the terms of the GNU General Public License as published by |
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | 23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
24 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 24 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
25 ;; | 25 ;; |
26 ;;; Commentary: | 26 ;;; Commentary: |
27 | 27 |
28 ;; This file contains the face definitons for Org. | 28 ;; This file contains the column view for Org. |
29 | 29 |
30 ;;; Code: | 30 ;;; Code: |
31 | 31 |
32 (eval-when-compile (require 'cl)) | 32 (eval-when-compile (require 'cl)) |
33 (require 'org) | 33 (require 'org) |
226 (substring org-columns-ellipses 0 width)) | 226 (substring org-columns-ellipses 0 width)) |
227 (t (concat (substring string 0 (- width (length org-columns-ellipses))) | 227 (t (concat (substring string 0 (- width (length org-columns-ellipses))) |
228 org-columns-ellipses)))) | 228 org-columns-ellipses)))) |
229 | 229 |
230 (defvar org-columns-full-header-line-format nil | 230 (defvar org-columns-full-header-line-format nil |
231 "Fthe full header line format, will be shifted by horizontal scrolling." ) | 231 "The full header line format, will be shifted by horizontal scrolling." ) |
232 (defvar org-previous-header-line-format nil | 232 (defvar org-previous-header-line-format nil |
233 "The header line format before column view was turned on.") | 233 "The header line format before column view was turned on.") |
234 (defvar org-columns-inhibit-recalculation nil | 234 (defvar org-columns-inhibit-recalculation nil |
235 "Inhibit recomputing of columns on column view startup.") | 235 "Inhibit recomputing of columns on column view startup.") |
236 (defvar org-columns-flyspell-was-active nil | 236 (defvar org-columns-flyspell-was-active nil |
324 t t s))) | 324 t t s))) |
325 s) | 325 s) |
326 | 326 |
327 (defvar org-agenda-columns-remove-prefix-from-item) | 327 (defvar org-agenda-columns-remove-prefix-from-item) |
328 (defun org-agenda-columns-cleanup-item (item pl cphr fmt) | 328 (defun org-agenda-columns-cleanup-item (item pl cphr fmt) |
329 "Cleanup the tiem property for agenda column view. | 329 "Cleanup the time property for agenda column view. |
330 See also the variable `org-agenda-columns-remove-prefix-from-item'." | 330 See also the variable `org-agenda-columns-remove-prefix-from-item'." |
331 (let* ((org-complex-heading-regexp cphr) | 331 (let* ((org-complex-heading-regexp cphr) |
332 (prefix (substring item 0 pl)) | 332 (prefix (substring item 0 pl)) |
333 (rest (substring item pl)) | 333 (rest (substring item pl)) |
334 (fake (concat "* " rest)) | 334 (fake (concat "* " rest)) |
735 (setcar (nthcdr 2 entry) width) | 735 (setcar (nthcdr 2 entry) width) |
736 (org-columns-store-format) | 736 (org-columns-store-format) |
737 (org-columns-redo))) | 737 (org-columns-redo))) |
738 | 738 |
739 (defun org-columns-narrow (arg) | 739 (defun org-columns-narrow (arg) |
740 "Make the column nrrower by ARG characters." | 740 "Make the column narrower by ARG characters." |
741 (interactive "p") | 741 (interactive "p") |
742 (org-columns-widen (- arg))) | 742 (org-columns-widen (- arg))) |
743 | 743 |
744 (defun org-columns-move-right () | 744 (defun org-columns-move-right () |
745 "Swap this column with the one to the right." | 745 "Swap this column with the one to the right." |
1135 (goto-char pos) | 1135 (goto-char pos) |
1136 (org-table-align))))) | 1136 (org-table-align))))) |
1137 | 1137 |
1138 (defun org-listtable-to-string (tbl) | 1138 (defun org-listtable-to-string (tbl) |
1139 "Convert a listtable TBL to a string that contains the Org-mode table. | 1139 "Convert a listtable TBL to a string that contains the Org-mode table. |
1140 The table still need to be alligned. The resulting string has no leading | 1140 The table still need to be aligned. The resulting string has no leading |
1141 and tailing newline characters." | 1141 and tailing newline characters." |
1142 (mapconcat | 1142 (mapconcat |
1143 (lambda (x) | 1143 (lambda (x) |
1144 (cond | 1144 (cond |
1145 ((listp x) | 1145 ((listp x) |