summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2024-07-14 12:30:50 -0400
committerKyle Meyer <kyle@kyleam.com>2024-07-14 12:30:50 -0400
commit5ec73eca57c09ad1a33c56dc4cd5b965cfaef063 (patch)
tree51b13281e4745e6fb694eebac57141d0c66e3e38 /lisp
parent33ba72f52fd2138a7c2d6c065236fd459b8c659d (diff)
downloademacs-5ec73eca57c09ad1a33c56dc4cd5b965cfaef063.tar.gz
emacs-5ec73eca57c09ad1a33c56dc4cd5b965cfaef063.tar.bz2
emacs-5ec73eca57c09ad1a33c56dc4cd5b965cfaef063.zip
Update to Org 9.7.7-2-gf308d3
Diffstat (limited to 'lisp')
-rw-r--r--lisp/org/ob-core.el20
-rw-r--r--lisp/org/org-agenda.el3
-rw-r--r--lisp/org/org-persist.el4
-rw-r--r--lisp/org/org-version.el4
-rw-r--r--lisp/org/org.el10
5 files changed, 25 insertions, 16 deletions
diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el
index 60f213fe751..7b4ca9b5ea3 100644
--- a/lisp/org/ob-core.el
+++ b/lisp/org/ob-core.el
@@ -2455,8 +2455,8 @@ the inline source block. The macro is stripped upon export.
Multiline and non-scalar RESULTS from inline source blocks are
not allowed. When EXEC-TIME is provided it may be included in a
generated message. With optional argument RESULT-PARAMS controls
-insertion of results in the Org mode file. RESULT-PARAMS can
-take the following values:
+insertion of results in the Org mode file. RESULT-PARAMS is a list
+that can contain the following values:
replace - (default option) insert results after the source block
or inline source block replacing any previously
@@ -2515,15 +2515,17 @@ list ---- the results are rendered as a list. This option not
table --- the results are rendered as a table. This option not
allowed for inline source blocks.
-INFO may provide the values of these header arguments (in the
-`header-arguments-alist' see the docstring for
-`org-babel-get-src-block-info'):
+INFO is the src block info, as returned by
+`org-babel-get-src-block-info' (which see). Some values from its
+PARAMETERS part (header argument alist) can affect the inserted
+result:
-:file --- the name of the file to which output should be written.
+:file-desc - when RESULT-PARAMS contains \"file\", use it as
+ description of the inserted link.
-:wrap --- the effect is similar to `latex' in RESULT-PARAMS but
- using the argument supplied to specify the export block
- or snippet type."
+:wrap the effect is similar to `latex' in RESULT-PARAMS but
+ using the argument supplied to specify the export block
+ or snippet type."
(cond ((stringp result)
(setq result (substring-no-properties result))
(when (member "file" result-params)
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index b2a5ff92734..569da841726 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -2048,6 +2048,9 @@ the normal rules apply."
(defcustom org-agenda-category-icon-alist nil
"Alist of category icon to be displayed in agenda views.
+The icons are displayed in place of the %i placeholders in
+`org-agenda-prefix-format', which see.
+
Each entry should have the following format:
(CATEGORY-REGEXP FILE-OR-DATA TYPE DATA-P PROPS)
diff --git a/lisp/org/org-persist.el b/lisp/org/org-persist.el
index b93e32274e9..5cc572a78cc 100644
--- a/lisp/org/org-persist.el
+++ b/lisp/org/org-persist.el
@@ -670,8 +670,8 @@ When INNER is non-nil, do not try to match as list of containers."
;; `secure-hash' may trigger interactive dialog when it
;; cannot determine the coding system automatically.
;; Force coding system that works reliably for any text
- ;; to avoid it. The has will be consistent anyway, as
- ;; long as we use the same coding system.
+ ;; to avoid it. The hash will be consistent, as long
+ ;; as we use the same coding system.
(let ((coding-system-for-write 'emacs-internal))
(secure-hash 'md5 associated)))
(puthash associated
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index c02aff62ec4..75e792b74be 100644
--- a/lisp/org/org-version.el
+++ b/lisp/org/org-version.el
@@ -5,13 +5,13 @@
(defun org-release ()
"The release version of Org.
Inserted by installing Org mode or when a release is made."
- (let ((org-release "9.7.5"))
+ (let ((org-release "9.7.7"))
org-release))
;;;###autoload
(defun org-git-version ()
"The Git version of Org mode.
Inserted by installing Org or when a release is made."
- (let ((org-git-version "release_9.7.5-9-ga091ca"))
+ (let ((org-git-version "release_9.7.7-2-gf308d3"))
org-git-version))
(provide 'org-version)
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 96b0e0b0ce1..e29a0834999 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -9,7 +9,7 @@
;; URL: https://orgmode.org
;; Package-Requires: ((emacs "26.1"))
-;; Version: 9.7.5
+;; Version: 9.7.7
;; This file is part of GNU Emacs.
;;
@@ -6698,7 +6698,7 @@ The prefix argument ARG is passed to `org-insert-heading'.
Unlike `org-insert-heading', when point is at the beginning of a
heading, still insert the new sub-heading below."
(interactive "P")
- (when (bolp) (forward-char))
+ (when (and (bolp) (not (eobp)) (not (eolp))) (forward-char))
(org-insert-heading arg)
(cond
((org-at-heading-p) (org-do-demote))
@@ -19809,7 +19809,11 @@ Also align node properties according to `org-property-format'."
(+ (org-current-text-indentation)
org-edit-src-content-indentation)))))
(ignore-errors ; do not err when there is no proper major mode
- (org-babel-do-in-edit-buffer (funcall indent-line-function)))
+ ;; It is important to call `indent-according-to-mode'
+ ;; rather than `indent-line-function' here or we may
+ ;; sometimes break `electric-indent-mode'
+ ;; https://orgmode.org/list/5O9VMGb6WRaqeHR5_NXTb832Z2Lek_5L40YPDA52-S3kPwGYJspI8kLWaGtuq3DXyhtHpj1J7jTIXb39RX9BtCa2ecrWHjijZqI8QAD742U=@proton.me
+ (org-babel-do-in-edit-buffer (indent-according-to-mode)))
(when (and block-content-ind (looking-at-p "^$"))
(indent-line-to block-content-ind))))
(t