1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-24 07:20:29 +00:00
Commit Graph

27951 Commits

Author SHA1 Message Date
Ihor Radchenko
212237bdbd
Merge branch 'bugfix' 2024-06-07 16:54:13 +02:00
Ihor Radchenko
6c862699a6
org-lint: Fix heuristics introduced in 51aea4946
* lisp/org-lint.el (org-lint-misplaced-heading): Use parser to query
whether we are inside a verbatim block.  `org-at-block-p' only
triggers on the begin line of blocks.
2024-06-07 16:53:29 +02:00
Suhail
96eb9f0b4a
org-lint: Add function to remove checker(s)
* lisp/org-lint.el (org-lint-remove-checker): Remove one or more
checkers from `org-lint--checkers'.

TINYCHANGE
2024-06-06 17:30:53 +02:00
Ihor Radchenko
453cb0883a
Merge branch 'bugfix' 2024-06-06 17:23:11 +02:00
Ihor Radchenko
266bd1c4a0
org-capture-templates: New placeholder to refer to %^{prompt}X answers
* lisp/org-capture.el (org-capture-fill-template): Support new
placeholder %\*N to insert answers to all prompts - %^{prompt} and
%^{prompt}X.
(org-capture-templates):
* etc/ORG-NEWS (New =%\*N= placeholder in ~org-capture-templates~):
* doc/org-manual.org (Template expansion): Document the new
placeholder.

Link: https://orgmode.org/list/87le40puvb.fsf@gmail.com
2024-06-06 17:17:38 +02:00
Ihor Radchenko
2f184485bf
Update version number for the 9.7.3 release 2024-06-06 16:49:56 +02:00
Ihor Radchenko
5eb929a27c
lisp/ol.el (org-link--store-shortdoc): Fix typo 2024-06-06 14:50:30 +02:00
Ihor Radchenko
e6c5f25c13
org-babel-exp-code: Fix exporting src blocks with :var arguments
* lisp/ob-exp.el (org-babel-exp-code): Do not use resolved argument
values when formatting the code block.  Resolved argument values may
contain awkward data like full (long) table contents, various Elisp
data (including non-printable), etc.  Simply using verbatim src block
parameters as they appear in the original buffer is more reliable.
(org-babel-exp-inline-code-template):
(org-babel-exp-code-template): Update docstrings, drop %flags
placeholder, which is no longer supported using the current src block
syntax.
* etc/ORG-NEWS (=ox-org= preserves header arguments in src blocks):
Drop "non-default" when explaining how header arguments are formatted.
We cannot know which values are default and which not without
resolving the values - something we cannot do as it turned out.
* testing/lisp/test-ob-exp.el (ob-exp/exports-inline-code):
(ob-export/export-src-block-with-flags):
(ob-export/body-with-coderef): Update the tests.
2024-06-06 14:44:01 +02:00
bruno
55e8068d69
ol: Add support for shortdoc link type
* lisp/ol.el (org-link--open-shortdoc org-link--store-shortdoc)
(org-link--complete-shortdoc): Add support for storing and inserting links
to `shortdoc' documentation groups for Emacs Lisp functions.
* doc/org-manual.org (External Links): Add shortdoc link type
documentation.
* etc/ORG-NEWS (=ol.el=: Support for =shortdoc= link type): Document
the new feature.
2024-06-06 13:50:27 +02:00
Ihor Radchenko
bb633b6740
Merge branch 'bugfix' 2024-06-05 17:11:10 +02:00
Ihor Radchenko
51aea49462
org-lint: Improve heuristics for unknown src block language
* lisp/org-lint.el (org-lint-suspicious-language-in-src-block): Do not
complain about src block languages without execute function if there
is <lang>-mode major mode available.

Reported-by: Suhail Singh <suhailsingh247@gmail.com>
Link: https://orgmode.org/list/874ja7ik7h.fsf@gmail.com
2024-06-05 17:08:50 +02:00
Ihor Radchenko
d08a5abb90
Merge branch 'bugfix' 2024-06-05 16:54:29 +02:00
Ihor Radchenko
04d56f757f
mk/targets.mk (GITVERSION): Fix version string for ELPA build
* mk/targets.mk (GITVERSION): Use previous convention for the Org
version string on ELPA, where Org release tags are not available.
Instead of the new release_N/A-N/A prefix, use the Org version from
org.el file headers, as we did in Org 9.6.

Reported-by: Sharon Kimble <boudiccas@skimble09.plus.com>
Link: https://orgmode.org/list/87ikynyggt.fsf@skimble09.plus.com
2024-06-05 16:51:28 +02:00
Ihor Radchenko
e804de88e4
Merge branch 'bugfix' 2024-06-05 16:08:55 +02:00
Ihor Radchenko
223cc31ec7
org-log-beginning: Fix regression in c0b66bf
* lisp/org.el (org-log-beginning): Re-implement the bugfix attempted
in c0b66bf differently to avoid slurping blank lines when creating a
new logbook drawer.  Add more commentary to the function.

Reported-by: Christopher M. Miles <numbchild@gmail.com>

The reproducer:

* headline1
(point here)
* headline 2

(setq org-log-into-drawer t)

Press [C-c C-z] become bellowing content:

* headline1
:LOGBOOK:
- Note taken on [2024-06-05 Wed 12:49] \\
  kkk
:END:(point here)
* headline 2
2024-06-05 16:08:35 +02:00
Ihor Radchenko
589e1f38c1
Revert "org-log-beginning: Fix error creating LOGBOOK drawer at end of buffer"
This reverts commit c0b66bf9c1.

This itself caused a regression when inserting a new logbook drawer -
blank line is slurped.
2024-06-05 16:07:31 +02:00
Ihor Radchenko
9d70929fd7
Merge branch 'bugfix' 2024-06-05 15:14:03 +02:00
Ihor Radchenko
b8497aa7fe
org-lint: Do not warn about trailing *** lines inside blocks
* lisp/org-lint.el (org-lint-misplaced-heading): The chances that
there is a heading between #+begin... #+end lines is generally low.
So *** text instances are likely intended.

Reported-by: Suhail Singh <suhailsingh247@gmail.com>
Link: https://orgmode.org/list/87r0dc35ya.fsf@gmail.com
2024-06-05 15:13:44 +02:00
Ihor Radchenko
466c180a47
Merge branch 'bugfix' 2024-06-05 14:37:09 +02:00
Ihor Radchenko
ac1d58477a
org-element-cache: Fix indirect buffer tracking
* lisp/org-element.el (org-element--cache-setup-change-functions):
Make sure that indirect buffers are registered to be traversed in
`org-fold-core-cycle-over-indirect-buffers' in
`org-element--cache-active-p'.
`org-fold-core-decouple-indirect-buffer-folds' may not be called in
some scenarios when Org mode is active.

The reproducer that revealed the problem is in
https://orgmode.org/list/CAD6d+LUJ7St5_muvwqzE80EfHSoiMmZD+qDTAojeN0L7v+zsCQ@mail.gmail.com
2024-06-05 14:34:46 +02:00
Ihor Radchenko
654a68dc51
org-agenda-format-item: Refactor, adding readable variable names
* lisp/org-agenda.el (org-agenda-format-item): Rename internal
variables to clarify their meaning.
2024-06-05 13:51:43 +02:00
Rens Oliemans
a62f75c841
org-capture: Allow table-line entry to start without |
* lisp/org-capture.el (org-capture-place-table-line): Prepend
table-line begin ('|') if the template does not start with it.

* testing/lisp/test-org-capture.el (test-org-capture/table-line):
Verify that a template gets prepended with a '|' if it does not start
with it.
2024-06-04 15:17:12 +02:00
Rens Oliemans
0c8fba93fe
org-capture: Allow entry template to start without heading
* lisp/org-capture.el (org-capture-place-entry): Prepend heading to
template if the template does not yet start with a heading.

* testing/lisp/test-org-capture.el (test-org-capture/entry): Add two
tests: no error is raised when org-capture is called with a template
that does not start with a heading; and org-capture should error with
a template with a lower heading after a higher heading.

Link: https://list.orgmode.org/877chnc0lr.fsf@localhost/
2024-06-04 15:17:11 +02:00
Ihor Radchenko
8c7577817c
Merge branch 'bugfix' 2024-06-04 15:03:32 +02:00
Kyle Meyer
de0df5b925
org-test: Fix zone-dependent miscalculation of days of week
* testing/org-test.el (org-test-day-of-weeks-seconds): Specify seconds
for formatting with UTC as time zone.
(org-test-day-of-weeks-abbrev):
(org-test-day-of-weeks-full): Use UTC as time zone when formatting
input.

Avoid calling format-time-string with the local time zone because that
gives the wrong result in some cases.  For example, 2222222 is
supposed to produce the locale's name for "Tuesday" but, when the
local time zone is +0000, (format-time-string "%A" 2222222) returns
the locale's name for "Monday".
2024-06-04 15:01:31 +02:00
Ihor Radchenko
9f6dbd8d2e
org-agenda-get-blocks: Refactor, adding readable variable names
* lisp/org-agenda.el (org-agenda-get-blocks): Add comments.  Rename
internal variables to clarify their meaning.
2024-06-04 14:53:26 +02:00
Ihor Radchenko
c426f49364
org-babel-latex-process-alist: Use latemk or run latex trice
* lisp/ob-latex.el (org-babel-latex-process-alist): Change the default
value to using latexmk/latex x 3, so that references are resolved.
* etc/ORG-NEWS (The default value of
~org-babel-latex-process-alist~...): Announce the change.

Link: https://list.orgmode.org/orgmode/87cyretut7.fsf@localhost/
2024-06-03 16:32:02 +02:00
Ihor Radchenko
4ee373cb75
Merge branch 'bugfix' 2024-06-03 11:22:32 +02:00
Ihor Radchenko
2ee94bb065
Reapply "lisp/ox-html.el: Restore org-svg class."
This reverts commit 895a367a67.
2024-06-03 11:16:15 +02:00
Ihor Radchenko
77e77f051c
Reapply "ox-html: Use <img> tags for svgs, not <object>"
This reverts commit 302bc6393a.

It turns out that <object ...> tags with data pointing outside the
website are not rendered by the modern
qtwebengine (linked svgs in https://orgmode.org/tools.html are not
rendered). Even though Firefox does render the same page, it no longer
appears safe to use <object ...> for svg.  So, we have to use <img...>
with its limitations.
2024-06-03 11:14:41 +02:00
Ihor Radchenko
8e8e635eba
Revert "lisp/ox-html.el: Convert :alt to :aria-label attribute in svg images"
This reverts commit 0e5ac43324.
2024-06-03 11:14:31 +02:00
Ihor Radchenko
71077dedc8
Merge branch 'bugfix' 2024-06-03 11:11:13 +02:00
Ihor Radchenko
5f050580d8
lisp/org.el (org--dnd-attach-file): Load org-attach
This is necessary to make sure that `org-attach-method' variable is
available.
2024-06-03 11:10:07 +02:00
Ihor Radchenko
0477df8aab
org-setup-yank-dnd-handlers: Support MacOS dnd URIs
* lisp/org.el (org-setup-yank-dnd-handlers): MacOS uses
"file:/Users/juergenfenn/Desktop/test-file.jpeg" instead of file:///
stype URIs in DND data.  Handle this URI style.

We do not need to worry about converting the URI -
`org--dnd-local-file-handler' uses `dnd-get-local-file-name' that
takes care about URI-to-path conversion.

Reported-by: Juergen Fenn <jfenn@gmx.net>
Link: https://orgmode.org/list/875xur1aql.fsf@localhost
2024-06-03 11:10:06 +02:00
Kyle Meyer
671ca44df0 test-org-clock: Fix typo in test name 2024-06-01 17:10:58 -04:00
Ihor Radchenko
9ad3360d76
etc/ORG-NEWS: Fix unintentional list markup
* etc/ORG-NEWS (Images and files in clipboard can be pasted): More
"29." away from beginning of line.  It was parsed as list.
2024-06-01 20:31:17 +02:00
Ihor Radchenko
88dd2cea35
Update version number for the 9.7.2 release 2024-06-01 14:49:45 +02:00
Ihor Radchenko
5b8159228a
etc/ORG-NEWS: Move user-facing changes near the top 2024-06-01 14:49:18 +02:00
Ihor Radchenko
0ea4dc166c
org-html-latex-environment: Fix error when environment is non-math
* lisp/ox-html.el (org-html-latex-environment): Do not try to compute
caption for non-math environments.
2024-06-01 14:47:43 +02:00
Ihor Radchenko
0fd4f2e272
etc/ORG-NEWS: Add outline for future Org 9.8 news 2024-06-01 11:16:36 +02:00
Ihor Radchenko
a22c8b7e09
Merge branch 'bugfix' 2024-06-01 11:15:34 +02:00
Ihor Radchenko
f737e7213d
Update version number for the 9.7.1 release 2024-06-01 11:14:24 +02:00
Ihor Radchenko
9189ccacd5
etc/ORG-NEWS: Remove "unreleased" from Version 9.7 2024-06-01 11:12:30 +02:00
Ihor Radchenko
b3aff71a65
lisp/org.el: Bump development version of Org mode to 9.8-pre 2024-06-01 11:10:43 +02:00
Ihor Radchenko
5fe70f2d66
Update version number for the 9.7 release 2024-06-01 10:59:57 +02:00
Ihor Radchenko
eec8ba4087
Merge branch 'bugfix' 2024-06-01 10:58:39 +02:00
Ihor Radchenko
dc485a6590
lisp/org-persist.el: Ignore lock files when writing cache
* lisp/org-persist.el (org-persist--write-elisp-file): Ignore locks.

Reported-by: Greg Minshall <minshall@umich.edu>
Link: https://orgmode.org/list/574109.1715751441@archlinux
2024-05-30 15:31:20 +02:00
Kyle Meyer
64bb80b982 Update customize-package-emacs-version-alist
* lisp/org.el (customize-package-emacs-version-alist): Map Org 9.7 to
Emacs 30.1.
2024-05-28 23:43:46 -04:00
Kyle Meyer
53c39a494f org-ctags: Don't assume ctags-program-name is bound
* lisp/org-ctags.el (org-ctags-path-to-ctags): Fall back to "ctags" if
ctags-program-name isn't bound because that wasn't introduced until
Emacs 30.

This is a follow-up commit to the port of Emacs's 9082b4e6e.
2024-05-28 23:23:39 -04:00
Kyle Meyer
377addb5b2 Merge branch 'km/from-emacs-master' 2024-05-28 23:01:23 -04:00