~org-yank-image-file-name-function~ which by default autogenerates a
filename based on the current time.
+Note that ~yank-media~, as of Emacs 30, does not yet support Windows
+(Emacs bug#71909) and may not be always reliable on Mac (Emacs
+bug#71731).
+
*** Files and images can be attached by dropping onto Emacs
By default, Org asks the user what to do with the dropped file like
% Reference Card for Org Mode
-\def\orgversionnumber{9.7.5}
+\def\orgversionnumber{9.7.7}
\def\versionyear{2024} % latest update
\input emacsver.tex
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
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)
(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)
;; `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
(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))
\f
(provide 'org-version)
;; URL: https://orgmode.org
;; Package-Requires: ((emacs "26.1"))
-;; Version: 9.7.5
+;; Version: 9.7.7
;; This file is part of GNU Emacs.
;;
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))
(+ (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