diff options
| author | K. Handa | 2015-09-01 20:46:15 +0900 |
|---|---|---|
| committer | K. Handa | 2015-09-01 20:46:15 +0900 |
| commit | 3e0e2339cd379eeba8d9bc758f2e8e574144e252 (patch) | |
| tree | 9d119efed6e52e5c24dbd84836148157271799a8 /lisp/org | |
| parent | 524eeb2e5e158d98ea52fe5ebe4768c4433ba8b2 (diff) | |
| parent | ff0a92f6461941902eb9e974bdd2ff9adacb7bc4 (diff) | |
| download | emacs-3e0e2339cd379eeba8d9bc758f2e8e574144e252.tar.gz emacs-3e0e2339cd379eeba8d9bc758f2e8e574144e252.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp/org')
| -rw-r--r-- | lisp/org/org-agenda.el | 12 | ||||
| -rw-r--r-- | lisp/org/org-capture.el | 5 | ||||
| -rw-r--r-- | lisp/org/org-compat.el | 4 | ||||
| -rw-r--r-- | lisp/org/org-ctags.el | 7 | ||||
| -rw-r--r-- | lisp/org/org-src.el | 2 | ||||
| -rw-r--r-- | lisp/org/org.el | 8 |
6 files changed, 23 insertions, 15 deletions
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index b73e130fad1..a3c8b84bfca 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -433,7 +433,7 @@ This will be spliced into the custom type of | |||
| 433 | 433 | ||
| 434 | 434 | ||
| 435 | (defcustom org-agenda-custom-commands | 435 | (defcustom org-agenda-custom-commands |
| 436 | '(("n" "Agenda and all TODO's" ((agenda "") (alltodo "")))) | 436 | '(("n" "Agenda and all TODOs" ((agenda "") (alltodo "")))) |
| 437 | "Custom commands for the agenda. | 437 | "Custom commands for the agenda. |
| 438 | These commands will be offered on the splash screen displayed by the | 438 | These commands will be offered on the splash screen displayed by the |
| 439 | agenda dispatcher \\[org-agenda]. Each entry is a list like this: | 439 | agenda dispatcher \\[org-agenda]. Each entry is a list like this: |
| @@ -3815,7 +3815,7 @@ FILTER-ALIST is an alist of filters we need to apply when | |||
| 3815 | (defvar org-depend-tag-blocked) | 3815 | (defvar org-depend-tag-blocked) |
| 3816 | 3816 | ||
| 3817 | (defun org-agenda-dim-blocked-tasks (&optional invisible) | 3817 | (defun org-agenda-dim-blocked-tasks (&optional invisible) |
| 3818 | "Dim currently blocked TODO's in the agenda display. | 3818 | "Dim currently blocked TODOs in the agenda display. |
| 3819 | When INVISIBLE is non-nil, hide currently blocked TODO instead of | 3819 | When INVISIBLE is non-nil, hide currently blocked TODO instead of |
| 3820 | dimming them." | 3820 | dimming them." |
| 3821 | (interactive "P") | 3821 | (interactive "P") |
| @@ -4647,7 +4647,8 @@ in `org-agenda-text-search-extra-files'." | |||
| 4647 | (add-text-properties pos (1- (point)) (list 'face 'org-warning)) | 4647 | (add-text-properties pos (1- (point)) (list 'face 'org-warning)) |
| 4648 | (setq pos (point)) | 4648 | (setq pos (point)) |
| 4649 | (unless org-agenda-multi | 4649 | (unless org-agenda-multi |
| 4650 | (insert "Press `[', `]' to add/sub word, `{', `}' to add/sub regexp, `C-u r' to edit\n") | 4650 | (insert (substitute-command-keys |
| 4651 | "Press `[', `]' to add/sub word, `{', `}' to add/sub regexp, `C-u r' to edit\n")) | ||
| 4651 | (add-text-properties pos (1- (point)) | 4652 | (add-text-properties pos (1- (point)) |
| 4652 | (list 'face 'org-agenda-structure)))) | 4653 | (list 'face 'org-agenda-structure)))) |
| 4653 | (org-agenda-mark-header-line (point-min)) | 4654 | (org-agenda-mark-header-line (point-min)) |
| @@ -4741,7 +4742,7 @@ for a keyword. A numeric prefix directly selects the Nth keyword in | |||
| 4741 | org-select-this-todo-keyword)) | 4742 | org-select-this-todo-keyword)) |
| 4742 | (setq pos (point)) | 4743 | (setq pos (point)) |
| 4743 | (unless org-agenda-multi | 4744 | (unless org-agenda-multi |
| 4744 | (insert "Available with `N r': (0)[ALL]") | 4745 | (insert (substitute-command-keys "Available with `N r': (0)[ALL]")) |
| 4745 | (let ((n 0) s) | 4746 | (let ((n 0) s) |
| 4746 | (mapc (lambda (x) | 4747 | (mapc (lambda (x) |
| 4747 | (setq s (format "(%d)%s" (setq n (1+ n)) x)) | 4748 | (setq s (format "(%d)%s" (setq n (1+ n)) x)) |
| @@ -4836,7 +4837,8 @@ The prefix arg TODO-ONLY limits the search to TODO entries." | |||
| 4836 | (add-text-properties pos (1- (point)) (list 'face 'org-warning)) | 4837 | (add-text-properties pos (1- (point)) (list 'face 'org-warning)) |
| 4837 | (setq pos (point)) | 4838 | (setq pos (point)) |
| 4838 | (unless org-agenda-multi | 4839 | (unless org-agenda-multi |
| 4839 | (insert "Press `C-u r' to search again with new search string\n")) | 4840 | (insert (substitute-command-keys |
| 4841 | "Press `C-u r' to search again with new search string\n"))) | ||
| 4840 | (add-text-properties pos (1- (point)) (list 'face 'org-agenda-structure))) | 4842 | (add-text-properties pos (1- (point)) (list 'face 'org-agenda-structure))) |
| 4841 | (org-agenda-mark-header-line (point-min)) | 4843 | (org-agenda-mark-header-line (point-min)) |
| 4842 | (when rtnall | 4844 | (when rtnall |
diff --git a/lisp/org/org-capture.el b/lisp/org/org-capture.el index 64e30152a5b..7b4b6eadc5e 100644 --- a/lisp/org/org-capture.el +++ b/lisp/org/org-capture.el | |||
| @@ -434,7 +434,8 @@ Turning on this mode runs the normal hook `org-capture-mode-hook'." | |||
| 434 | nil " Rem" org-capture-mode-map | 434 | nil " Rem" org-capture-mode-map |
| 435 | (org-set-local | 435 | (org-set-local |
| 436 | 'header-line-format | 436 | 'header-line-format |
| 437 | "Capture buffer. Finish `C-c C-c', refile `C-c C-w', abort `C-c C-k'.")) | 437 | (substitute-command-keys |
| 438 | "Capture buffer. Finish `C-c C-c', refile `C-c C-w', abort `C-c C-k'."))) | ||
| 438 | (define-key org-capture-mode-map "\C-c\C-c" 'org-capture-finalize) | 439 | (define-key org-capture-mode-map "\C-c\C-c" 'org-capture-finalize) |
| 439 | (define-key org-capture-mode-map "\C-c\C-k" 'org-capture-kill) | 440 | (define-key org-capture-mode-map "\C-c\C-k" 'org-capture-kill) |
| 440 | (define-key org-capture-mode-map "\C-c\C-w" 'org-capture-refile) | 441 | (define-key org-capture-mode-map "\C-c\C-w" 'org-capture-refile) |
| @@ -1600,7 +1601,7 @@ The template may still contain \"%?\" for cursor positioning." | |||
| 1600 | (delete-region start end) | 1601 | (delete-region start end) |
| 1601 | (condition-case error | 1602 | (condition-case error |
| 1602 | (insert-file-contents filename) | 1603 | (insert-file-contents filename) |
| 1603 | (error (insert (format "%%![Couldn't insert %s: %s]" | 1604 | (error (insert (format "%%![Could not insert %s: %s]" |
| 1604 | filename error))))))) | 1605 | filename error))))))) |
| 1605 | ;; %() embedded elisp | 1606 | ;; %() embedded elisp |
| 1606 | (org-capture-expand-embedded-elisp) | 1607 | (org-capture-expand-embedded-elisp) |
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el index d3c477e7f3f..4c90cdae628 100644 --- a/lisp/org/org-compat.el +++ b/lisp/org/org-compat.el | |||
| @@ -418,6 +418,10 @@ Pass BUFFER to the XEmacs version of `move-to-column'." | |||
| 418 | (unless (fboundp 'user-error) | 418 | (unless (fboundp 'user-error) |
| 419 | (defalias 'user-error 'error)) | 419 | (defalias 'user-error 'error)) |
| 420 | 420 | ||
| 421 | ;; ‘format-message’ is available only from 25 on | ||
| 422 | (unless (fboundp 'format-message) | ||
| 423 | (defalias 'format-message 'format)) | ||
| 424 | |||
| 421 | (defmacro org-no-popups (&rest body) | 425 | (defmacro org-no-popups (&rest body) |
| 422 | "Suppress popup windows. | 426 | "Suppress popup windows. |
| 423 | Let-bind some variables to nil around BODY to achieve the desired | 427 | Let-bind some variables to nil around BODY to achieve the desired |
diff --git a/lisp/org/org-ctags.el b/lisp/org/org-ctags.el index 911ee2e923b..75de8c284e1 100644 --- a/lisp/org/org-ctags.el +++ b/lisp/org/org-ctags.el | |||
| @@ -394,7 +394,8 @@ the new file." | |||
| 394 | (org-open-file filename t)) | 394 | (org-open-file filename t)) |
| 395 | ((or (eql create t) | 395 | ((or (eql create t) |
| 396 | (and (eql create 'ask) | 396 | (and (eql create 'ask) |
| 397 | (y-or-n-p (format "File `%s.org' not found; create?" name)))) | 397 | (y-or-n-p (format-message |
| 398 | "File `%s.org' not found; create?" name)))) | ||
| 398 | (org-ctags-open-file filename name)) | 399 | (org-ctags-open-file filename name)) |
| 399 | (t ;; File does not exist, and we don't want to create it. | 400 | (t ;; File does not exist, and we don't want to create it. |
| 400 | nil)))) | 401 | nil)))) |
| @@ -433,8 +434,8 @@ the heading a destination for the tag `NAME'." | |||
| 433 | "This function is intended to be used in ORG-OPEN-LINK-FUNCTIONS. | 434 | "This function is intended to be used in ORG-OPEN-LINK-FUNCTIONS. |
| 434 | Wrapper for org-ctags-append-topic, which first asks the user if they want | 435 | Wrapper for org-ctags-append-topic, which first asks the user if they want |
| 435 | to append a new topic." | 436 | to append a new topic." |
| 436 | (if (y-or-n-p (format "Topic `%s' not found; append to end of buffer?" | 437 | (if (y-or-n-p (format-message |
| 437 | name)) | 438 | "Topic `%s' not found; append to end of buffer?" name)) |
| 438 | (org-ctags-append-topic name narrowp) | 439 | (org-ctags-append-topic name narrowp) |
| 439 | nil)) | 440 | nil)) |
| 440 | 441 | ||
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el index 4f7998678be..8a6c77a8182 100644 --- a/lisp/org/org-src.el +++ b/lisp/org/org-src.el | |||
| @@ -801,7 +801,7 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"." | |||
| 801 | "Save parent buffer with current state source-code buffer." | 801 | "Save parent buffer with current state source-code buffer." |
| 802 | (interactive) | 802 | (interactive) |
| 803 | (if (string-match "Fixed Width" (buffer-name)) | 803 | (if (string-match "Fixed Width" (buffer-name)) |
| 804 | (user-error "Use C-c ' to save and exit, C-c C-k to abort editing") | 804 | (user-error "%s" "Use C-c ' to save and exit, C-c C-k to abort editing") |
| 805 | (org-src-in-org-buffer (save-buffer)))) | 805 | (org-src-in-org-buffer (save-buffer)))) |
| 806 | 806 | ||
| 807 | (declare-function org-babel-tangle "ob-tangle" (&optional arg target-file lang)) | 807 | (declare-function org-babel-tangle "ob-tangle" (&optional arg target-file lang)) |
diff --git a/lisp/org/org.el b/lisp/org/org.el index acfc6f0743e..963da77f592 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -6629,7 +6629,7 @@ in special contexts. | |||
| 6629 | ;; Table: enter it or move to the next field. | 6629 | ;; Table: enter it or move to the next field. |
| 6630 | ((org-at-table-p 'any) | 6630 | ((org-at-table-p 'any) |
| 6631 | (if (org-at-table.el-p) | 6631 | (if (org-at-table.el-p) |
| 6632 | (message "Use C-c ' to edit table.el tables") | 6632 | (message "%s" "Use C-c ' to edit table.el tables") |
| 6633 | (if arg (org-table-edit-field t) | 6633 | (if arg (org-table-edit-field t) |
| 6634 | (org-table-justify-field-maybe) | 6634 | (org-table-justify-field-maybe) |
| 6635 | (call-interactively 'org-table-next-field)))) | 6635 | (call-interactively 'org-table-next-field)))) |
| @@ -17102,7 +17102,7 @@ days in order to avoid rounding problems." | |||
| 17102 | (error (error "Bad timestamp `%s'%s\nError was: %s" | 17102 | (error (error "Bad timestamp `%s'%s\nError was: %s" |
| 17103 | s (if (not (and buffer pos)) | 17103 | s (if (not (and buffer pos)) |
| 17104 | "" | 17104 | "" |
| 17105 | (format " at %d in buffer `%s'" pos buffer)) | 17105 | (format-message " at %d in buffer `%s'" pos buffer)) |
| 17106 | (cdr errdata))))) | 17106 | (cdr errdata))))) |
| 17107 | 17107 | ||
| 17108 | (defun org-time-string-to-seconds (s) | 17108 | (defun org-time-string-to-seconds (s) |
| @@ -17130,7 +17130,7 @@ The variable `date' is bound by the calendar when this is called." | |||
| 17130 | (error (error "Bad timestamp `%s'%s\nError was: %s" | 17130 | (error (error "Bad timestamp `%s'%s\nError was: %s" |
| 17131 | s (if (not (and buffer pos)) | 17131 | s (if (not (and buffer pos)) |
| 17132 | "" | 17132 | "" |
| 17133 | (format " at %d in buffer `%s'" pos buffer)) | 17133 | (format-message " at %d in buffer `%s'" pos buffer)) |
| 17134 | (cdr errdata)))))))) | 17134 | (cdr errdata)))))))) |
| 17135 | 17135 | ||
| 17136 | (defun org-days-to-iso-week (days) | 17136 | (defun org-days-to-iso-week (days) |
| @@ -20446,7 +20446,7 @@ This command does many different things, depending on context: | |||
| 20446 | ;; a `table.el' type, just give up. At a table row or | 20446 | ;; a `table.el' type, just give up. At a table row or |
| 20447 | ;; cell, maybe recalculate line but always align table. | 20447 | ;; cell, maybe recalculate line but always align table. |
| 20448 | (if (eq (org-element-property :type context) 'table.el) | 20448 | (if (eq (org-element-property :type context) 'table.el) |
| 20449 | (message "Use C-c ' to edit table.el tables") | 20449 | (message "%s" "Use C-c ' to edit table.el tables") |
| 20450 | (let ((org-enable-table-editor t)) | 20450 | (let ((org-enable-table-editor t)) |
| 20451 | (if (or (eq type 'table) | 20451 | (if (or (eq type 'table) |
| 20452 | ;; Check if point is at a TBLFM line. | 20452 | ;; Check if point is at a TBLFM line. |