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