diff options
| author | Stefan Monnier | 2019-06-26 10:03:48 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2019-06-26 10:03:48 -0400 |
| commit | 698ff554ac2699ec48fefc85a1307cbc4a183b0d (patch) | |
| tree | a7b7592f7973f81cad4410366d313e790616907e /lisp/org | |
| parent | 9233865b7005831e63755eb84ae7da060f878a55 (diff) | |
| download | emacs-698ff554ac2699ec48fefc85a1307cbc4a183b0d.tar.gz emacs-698ff554ac2699ec48fefc85a1307cbc4a183b0d.zip | |
* lisp/calc/calc-ext.el (math-scalarp): Fix typo
Diffstat (limited to 'lisp/org')
| -rw-r--r-- | lisp/org/org.el | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index 5aa49b29d6f..6f83d5a579d 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -7430,7 +7430,6 @@ a block. Return a non-nil value when toggling is successful." | |||
| 7430 | (org-defkey map [(right)] 'org-goto-right) | 7430 | (org-defkey map [(right)] 'org-goto-right) |
| 7431 | (org-defkey map [(control ?g)] 'org-goto-quit) | 7431 | (org-defkey map [(control ?g)] 'org-goto-quit) |
| 7432 | (org-defkey map "\C-i" 'org-cycle) | 7432 | (org-defkey map "\C-i" 'org-cycle) |
| 7433 | (org-defkey map [(tab)] 'org-cycle) | ||
| 7434 | (org-defkey map [(down)] 'outline-next-visible-heading) | 7433 | (org-defkey map [(down)] 'outline-next-visible-heading) |
| 7435 | (org-defkey map [(up)] 'outline-previous-visible-heading) | 7434 | (org-defkey map [(up)] 'outline-previous-visible-heading) |
| 7436 | (if org-goto-auto-isearch | 7435 | (if org-goto-auto-isearch |
| @@ -12999,8 +12998,7 @@ Returns the new TODO keyword, or nil if no state change should occur." | |||
| 12999 | (and (= c ?q) (not (rassoc c fulltable)))) | 12998 | (and (= c ?q) (not (rassoc c fulltable)))) |
| 13000 | (setq quit-flag t)) | 12999 | (setq quit-flag t)) |
| 13001 | ((= c ?\ ) nil) | 13000 | ((= c ?\ ) nil) |
| 13002 | ((setq e (rassoc c fulltable) tg (car e)) | 13001 | ((car (rassoc c fulltable))) |
| 13003 | tg) | ||
| 13004 | (t (setq quit-flag t))))))) | 13002 | (t (setq quit-flag t))))))) |
| 13005 | 13003 | ||
| 13006 | (defun org-entry-is-todo-p () | 13004 | (defun org-entry-is-todo-p () |
| @@ -15213,11 +15211,11 @@ Returns the new tags string, or nil to not change the current settings." | |||
| 15213 | (setq current (delete tg current)) | 15211 | (setq current (delete tg current)) |
| 15214 | (push tg current))) | 15212 | (push tg current))) |
| 15215 | (when exit-after-next (setq exit-after-next 'now))) | 15213 | (when exit-after-next (setq exit-after-next 'now))) |
| 15216 | ((setq e (rassoc c todo-table) tg (car e)) | 15214 | ((setq tg (car (rassoc c todo-table))) |
| 15217 | (with-current-buffer buf | 15215 | (with-current-buffer buf |
| 15218 | (save-excursion (org-todo tg))) | 15216 | (save-excursion (org-todo tg))) |
| 15219 | (when exit-after-next (setq exit-after-next 'now))) | 15217 | (when exit-after-next (setq exit-after-next 'now))) |
| 15220 | ((setq e (rassoc c ntable) tg (car e)) | 15218 | ((setq tg (car (rassoc c ntable))) |
| 15221 | (if (member tg current) | 15219 | (if (member tg current) |
| 15222 | (setq current (delete tg current)) | 15220 | (setq current (delete tg current)) |
| 15223 | (cl-loop for g in groups do | 15221 | (cl-loop for g in groups do |
| @@ -17616,27 +17614,28 @@ D may be an absolute day number, or a calendar-type list (month day year)." | |||
| 17616 | 17614 | ||
| 17617 | (defun org-diary-sexp-entry (sexp entry d) | 17615 | (defun org-diary-sexp-entry (sexp entry d) |
| 17618 | "Process a SEXP diary ENTRY for date D." | 17616 | "Process a SEXP diary ENTRY for date D." |
| 17617 | ;; FIXME: Consolidate with diary-sexp-entry! | ||
| 17619 | (require 'diary-lib) | 17618 | (require 'diary-lib) |
| 17620 | ;; `org-anniversary' and alike expect ENTRY and DATE to be bound | 17619 | ;; `org-anniversary' and alike expect ENTRY and DATE to be bound |
| 17621 | ;; dynamically. | 17620 | ;; dynamically. |
| 17622 | (let* ((sexp `(let ((entry ,entry) | 17621 | (let* ((user-sexp (car (read-from-string sexp))) |
| 17623 | (date ',d)) | 17622 | (sexp `(let ((entry ,entry) (date ',d)) ,user-sexp)) |
| 17624 | ,(car (read-from-string sexp)))) | ||
| 17625 | (result (if calendar-debug-sexp (eval sexp) | 17623 | (result (if calendar-debug-sexp (eval sexp) |
| 17626 | (condition-case nil | 17624 | (condition-case err |
| 17627 | (eval sexp) | 17625 | (eval sexp) |
| 17628 | (error | 17626 | (error |
| 17629 | (beep) | 17627 | (beep) |
| 17630 | (message "Bad sexp at line %d in %s: %s" | 17628 | (message "Bad sexp at line %d in %s: %S\nError: %S" |
| 17631 | (org-current-line) | 17629 | (org-current-line) |
| 17632 | (buffer-file-name) sexp) | 17630 | (buffer-file-name) user-sexp err) |
| 17633 | (sleep-for 2)))))) | 17631 | (sleep-for 2)))))) |
| 17634 | (cond ((stringp result) (split-string result "; ")) | 17632 | (cond ((stringp result) (split-string result "; ")) |
| 17635 | ((and (consp result) | 17633 | ((and (consp result) |
| 17636 | (not (consp (cdr result))) | 17634 | (not (consp (cdr result))) |
| 17637 | (stringp (cdr result))) (cdr result)) | 17635 | (stringp (cdr result))) |
| 17638 | ((and (consp result) | 17636 | (cdr result)) |
| 17639 | (stringp (car result))) result) | 17637 | ((and (consp result) (stringp (car result))) |
| 17638 | result) | ||
| 17640 | (result entry)))) | 17639 | (result entry)))) |
| 17641 | 17640 | ||
| 17642 | (defun org-diary-to-ical-string (frombuf) | 17641 | (defun org-diary-to-ical-string (frombuf) |
| @@ -23287,7 +23286,7 @@ major mode." | |||
| 23287 | (if (looking-at "\\s-*$") (delete-region (point) (point-at-eol)) | 23286 | (if (looking-at "\\s-*$") (delete-region (point) (point-at-eol)) |
| 23288 | (open-line 1)) | 23287 | (open-line 1)) |
| 23289 | (org-indent-line) | 23288 | (org-indent-line) |
| 23290 | (insert "# "))) | 23289 | (insert comment-start))) |
| 23291 | 23290 | ||
| 23292 | (defvar comment-empty-lines) ; From newcomment.el. | 23291 | (defvar comment-empty-lines) ; From newcomment.el. |
| 23293 | (defun org-comment-or-uncomment-region (beg end &rest _) | 23292 | (defun org-comment-or-uncomment-region (beg end &rest _) |