diff options
| author | Carsten Dominik | 2009-02-19 15:10:20 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2009-02-19 15:10:20 +0000 |
| commit | 7b96ff9a00561c03b017c15837e7aecbb3a34073 (patch) | |
| tree | 68fe049dfcfb4b1ff6710a71dc5ed08ddd3947d8 | |
| parent | 8fca05449a139e7436fd4eb984f9f1e0c5cbdbac (diff) | |
| download | emacs-7b96ff9a00561c03b017c15837e7aecbb3a34073.tar.gz emacs-7b96ff9a00561c03b017c15837e7aecbb3a34073.zip | |
2009-02-19 Carsten Dominik <dominik@science.uva.nl>
* org.el (org-block-todo-from-children-or-siblings): Use
`org-up-heading-all' so that this will work correctly with hidden
property drawers and entries.
(org-end-of-line, org-beginning-of-line): Make prefix arg work, by
falling back to normal, default command.
(org-get-location): Temporarily turn off special behavior.
| -rw-r--r-- | lisp/org/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/org/org.el | 34 |
2 files changed, 29 insertions, 14 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index f0eb33ff79b..7e66c35dfdd 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2009-02-19 Carsten Dominik <dominik@science.uva.nl> | ||
| 2 | |||
| 3 | * org.el (org-block-todo-from-children-or-siblings): Use | ||
| 4 | `org-up-heading-all' so that this will work correctly with hidden | ||
| 5 | property drawers and entries. | ||
| 6 | (org-end-of-line, org-beginning-of-line): Make prefix arg work, by | ||
| 7 | falling back to normal, default command. | ||
| 8 | (org-get-location): Temporarily turn off special behavior. | ||
| 9 | |||
| 1 | 2009-02-13 Glenn Morris <rgm@gnu.org> | 10 | 2009-02-13 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * org-rmail.el (rmail-show-message): Restore argument list to the | 12 | * org-rmail.el (rmail-show-message): Restore argument list to the |
diff --git a/lisp/org/org.el b/lisp/org/org.el index e34c8188a7a..d9177579912 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -4812,7 +4812,7 @@ or nil." | |||
| 4812 | (goto-char org-goto-start-pos) | 4812 | (goto-char org-goto-start-pos) |
| 4813 | (and (org-invisible-p) (org-show-context))) | 4813 | (and (org-invisible-p) (org-show-context))) |
| 4814 | (goto-char (point-min))) | 4814 | (goto-char (point-min))) |
| 4815 | (org-beginning-of-line) | 4815 | (let (org-special-ctrl-a/e) (org-beginning-of-line)) |
| 4816 | (message "Select location and press RET") | 4816 | (message "Select location and press RET") |
| 4817 | (use-local-map org-goto-map) | 4817 | (use-local-map org-goto-map) |
| 4818 | (recursive-edit) | 4818 | (recursive-edit) |
| @@ -8588,7 +8588,7 @@ changes. Such blocking occurs when: | |||
| 8588 | (org-back-to-heading t) | 8588 | (org-back-to-heading t) |
| 8589 | (when (save-excursion | 8589 | (when (save-excursion |
| 8590 | (ignore-errors | 8590 | (ignore-errors |
| 8591 | (outline-up-heading 1) | 8591 | (org-up-heading-all 1) |
| 8592 | (org-entry-get (point) "ORDERED"))) | 8592 | (org-entry-get (point) "ORDERED"))) |
| 8593 | (let* ((this-level (funcall outline-level)) | 8593 | (let* ((this-level (funcall outline-level)) |
| 8594 | (current-level this-level)) | 8594 | (current-level this-level)) |
| @@ -14697,14 +14697,16 @@ beyond the end of the headline." | |||
| 14697 | (interactive "P") | 14697 | (interactive "P") |
| 14698 | (let ((pos (point)) refpos) | 14698 | (let ((pos (point)) refpos) |
| 14699 | (beginning-of-line 1) | 14699 | (beginning-of-line 1) |
| 14700 | (if (bobp) | 14700 | (if (and arg (fboundp 'move-beginning-of-line)) |
| 14701 | nil | 14701 | (call-interactively 'move-beginning-of-line) |
| 14702 | (backward-char 1) | 14702 | (if (bobp) |
| 14703 | (if (org-invisible-p) | 14703 | nil |
| 14704 | (while (and (not (bobp)) (org-invisible-p)) | 14704 | (backward-char 1) |
| 14705 | (backward-char 1) | 14705 | (if (org-invisible-p) |
| 14706 | (beginning-of-line 1)) | 14706 | (while (and (not (bobp)) (org-invisible-p)) |
| 14707 | (forward-char 1))) | 14707 | (backward-char 1) |
| 14708 | (beginning-of-line 1)) | ||
| 14709 | (forward-char 1)))) | ||
| 14708 | (when org-special-ctrl-a/e | 14710 | (when org-special-ctrl-a/e |
| 14709 | (cond | 14711 | (cond |
| 14710 | ((and (looking-at org-complex-heading-regexp) | 14712 | ((and (looking-at org-complex-heading-regexp) |
| @@ -14738,8 +14740,11 @@ first attempt, and only move to after the tags when the cursor is already | |||
| 14738 | beyond the end of the headline." | 14740 | beyond the end of the headline." |
| 14739 | (interactive "P") | 14741 | (interactive "P") |
| 14740 | (if (or (not org-special-ctrl-a/e) | 14742 | (if (or (not org-special-ctrl-a/e) |
| 14741 | (not (org-on-heading-p))) | 14743 | (not (org-on-heading-p)) |
| 14742 | (end-of-line arg) | 14744 | arg) |
| 14745 | (call-interactively (if (fboundp 'move-end-of-line) | ||
| 14746 | 'move-end-of-line | ||
| 14747 | 'end-of-line)) | ||
| 14743 | (let ((pos (point))) | 14748 | (let ((pos (point))) |
| 14744 | (beginning-of-line 1) | 14749 | (beginning-of-line 1) |
| 14745 | (if (looking-at (org-re ".*?\\([ \t]*\\)\\(:[[:alnum:]_@:]+:\\)[ \t]*$")) | 14750 | (if (looking-at (org-re ".*?\\([ \t]*\\)\\(:[[:alnum:]_@:]+:\\)[ \t]*$")) |
| @@ -14751,11 +14756,12 @@ beyond the end of the headline." | |||
| 14751 | (if (or (< pos (match-end 0)) (not (eq this-command last-command))) | 14756 | (if (or (< pos (match-end 0)) (not (eq this-command last-command))) |
| 14752 | (goto-char (match-end 0)) | 14757 | (goto-char (match-end 0)) |
| 14753 | (goto-char (match-beginning 1)))) | 14758 | (goto-char (match-beginning 1)))) |
| 14754 | (end-of-line arg)))) | 14759 | (call-interactively (if (fboundp 'move-end-of-line) |
| 14760 | 'move-end-of-line | ||
| 14761 | 'end-of-line))))) | ||
| 14755 | (org-no-warnings | 14762 | (org-no-warnings |
| 14756 | (and (featurep 'xemacs) (setq zmacs-region-stays t)))) | 14763 | (and (featurep 'xemacs) (setq zmacs-region-stays t)))) |
| 14757 | 14764 | ||
| 14758 | |||
| 14759 | (define-key org-mode-map "\C-a" 'org-beginning-of-line) | 14765 | (define-key org-mode-map "\C-a" 'org-beginning-of-line) |
| 14760 | (define-key org-mode-map "\C-e" 'org-end-of-line) | 14766 | (define-key org-mode-map "\C-e" 'org-end-of-line) |
| 14761 | 14767 | ||