1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00
Commit Graph

27779 Commits

Author SHA1 Message Date
Ihor Radchenko
246c7d5882
org-open-at-mouse: Suppress warning in Emacs <30
* lisp/org.el (org-open-at-mouse): Add variable declaration to silence
warnings in older Emacs.
2024-11-01 08:25:54 +01:00
Sean Whitton
ac73e594c9 Replace use of if-let and when-let, obsolete in Emacs 31.0.50
* lisp/ob-R.el (org-babel-R-associate-session):
* lisp/ob-clojure.el (ob-clojure-nbb-command, ob-clojure-cli-command):
* lisp/ob-core.el (org-babel-execute-src-block):
* lisp/ob-exp.el (org-babel-exp-code):
* lisp/ob-julia.el (org-babel-julia-associate-session):
* lisp/ob-python.el
(org-babel-python--python-util-comint-end-of-output-p):
* lisp/ol.el (org-insert-link):
* lisp/org-attach.el (org-attach):
* lisp/org-clock.el (org-clock-select-task):
* lisp/org-compat.el (fboundp):
* lisp/org-element-ast.el (org-element-property-raw)
(org-element-put-property, org-element-copy):
* lisp/org-element.el (org-element-timestamp-interpreter)
(org-element--cache-key):
* lisp/org-goto.el (org-goto-location):
* lisp/org-lint.el (org-lint-suspicious-language-in-src-block)
(org-lint-export-option-keywords):
* lisp/org-macs.el (org-mks):
* lisp/org-persist.el: (org-persist-write:elisp):
* lisp/org-table.el (org-table-fedit-finish):
* lisp/org.el (org-entry-get-with-inheritance):
* lisp/ox-html.el (org-html--reference, org-html--build-mathjax-config)
(org-html-example-block):
* lisp/ox-latex.el (org-latex-table-row):
* lisp/ox.el (org-export--prune-tree)
(org-export--blindly-expand-include):
* testing/lisp/test-duplicates-detector.el
(test-duplicates-detector--find-duplicates):
* testing/lisp/test-ob-haskell-ghci.el
(test-ob-haskell-ghci-checking-buffers):
* testing/lisp/test-ob-python.el
(test-ob-python/async-local-python-shell):
* testing/lisp/test-ob-shell.el (test-ob-shell/bash-uses-assoc-arrays)
(test-ob-shell/bash-uses-assoc-arrays-with-lists)
(test-ob-shell/remote-with-stdin-or-cmdline):
Replace use of if-let and when-let, obsolete in Emacs 31.0.50.

(cherry picked from commit bc7033f2d1)
2024-10-27 10:34:05 +08:00
Ihor Radchenko
377741dc5e
org-element-parse-buffer: Emphasize that current major mode should be org-mode
* lisp/org-element.el (org-element-parse-buffer): Update the docstring
making it more explicit that the function assumes buffer being in Org
mode.

Reported-by: Antonio Romano <n58r@pm.me>
Link: https://list.orgmode.org/orgmode/1b2b8c2791e628f6a41ef533e49a5ac9e3dee8a4.camel@pm.me/
2024-10-26 19:32:49 +02:00
Ihor Radchenko
49e0c4a74a
Update version number for the 9.7.14 release 2024-10-25 06:57:56 +02:00
Benjamin McMillan
3a6b14806e
lisp/org.el (org-end-of-meta-data): Improve docstring
* lisp/org.el (org-end-of-meta-data): Clarify that a call of
`org-end-of-metadata' with non-nil argument FULL will skip blank lines
in addition to other meta-data.

Link: https://list.orgmode.org/orgmode/CALo8A5VtbtB0P6RkHuShyFV4qBAMTeujVVpjsH_gY1sY4FwNDQ@mail.gmail.com/

TINYCHANGE
2024-10-22 19:23:40 +02:00
Ihor Radchenko
dfd6cc51f5
org-open-at-mouse: Fix regression when opening links outside Org mode
* lisp/org.el (org-open-at-mouse): Suppress parser warning when
attempting to open fontified Org links outside Org mode (for example,
in agenda buffers).  This is not a real fix - parser may still fail in
buffers where the surrounding link contents makes parser use
Org-specific local variables; but we at least recover from
deterioration of the behaviour when opening links worked _most of the
time_ without issues.

Reported-by: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Link: https://orgmode.org/list/a864b26f-433e-49a8-8d58-74c9210e0fbd@gmail.com
2024-10-20 13:36:17 +02:00
Ihor Radchenko
8566bc8b45
Update version number for the 9.7.13 release 2024-10-18 09:17:25 +02:00
Ihor Radchenko
3117185dba
org-texinfo-supports-math-p: Fix incompatibility with Emacs 27
* lisp/ox-texinfo.el (org-texinfo-supports-math-p): Avoid using
`file-name-with-extension', which is not yet available in Emacs 27.
2024-10-12 14:50:52 +02:00
Ihor Radchenko
96f695034c
org-get-export-keywords: Fix completing export attributes
* lisp/org.el (org-get-export-keywords): Complete export attributes
like #+attr_<backend>:.

Reported-by: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Link: https://orgmode.org/list/CAO48Bk-NB9HyavB7tCbq3hQZW=CboHx5qC_-s=kF_v2uihC2Rg@mail.gmail.com
2024-10-12 12:51:26 +02:00
Ihor Radchenko
19d462e7a7
org-comment-or-uncomment-region: Fix comment boundaries inside src blocks
* lisp/org.el (org-comment-or-uncomment-region): When calculating
region boundaries inside src edit buffer, do not assume that region
length does not change - it may, when the indentation inside src edit
buffer is different from the Org buffer.

Reported-by: Stephanus Comnenus <linjt267@gmail.com>
Link: https://orgmode.org/list/CAHqtn=fWq6E5_pm72AB9vFxwjS0a8ma=UvVjMrgeivE9pa13ZQ@mail.gmail.com

TINYCHANGE
2024-10-12 10:47:11 +02:00
Nick Dokos
b457dbfe5a
org-babel: Avoid changing user options by not sharing list structure
* lisp/ob-core.el (org-babel-get-src-block-info): Use `copy-tree'
when using `org-babel-default-header-args*' variables to prepare the
`info' variable used in src block evaluation. The `info' variable gets
modified, and the modifications were affecting the values of the user
variables. In particular, the `:file' setting was modified in the presence
of a `:output-dir' setting, concatenating more and more copies of the directory
every time the block was evaluated.

Reported-by: @lyndhurst on SE Emacs
Link: https://emacs.stackexchange.com/questions/82261/
2024-10-10 19:38:24 +02:00
Ihor Radchenko
eb6d70f817
org-persist: Fix cached data being modified by reference
* lisp/org-persist.el (org-persist--write-cache):
* lisp/org-persist.el (org-persist-read):
(org-persist-write): Remove `org-persist--write-cache'.  The values,
after reading, might sometimes be modified in place.  The
modifications, when done inside some kind of deeply nested structure,
will propagate to the cache, polluting what was originally written in
the persist file.

This was a difficult bug to spot - the modification hapenned when an
Org buffer was saved to a different file (C-x C-w), modified, leading
to `org-element--cache' modification, and then closed.  This
modification propagated to `org-persist--write-cache', leading to
incorrect cache value being assigned to the original buffer (before
C-x C-w).

Reported-by: Gregor Zattler <telegraph@gmx.net>
2024-10-07 20:35:12 +02:00
Ihor Radchenko
d33940f6e2
Fix typo in 1a51e21979
* lisp/ox.el (org-export-dictionary): Fix language id.  Should be
"de".

TINYCHANGE
2024-10-07 19:54:39 +02:00
Philip Kaludercic
1a51e21979
* lisp/org/ox.el (org-export-dictionary): Update German entries 2024-10-06 14:42:32 +02:00
Ihor Radchenko
28c83e678f
Update version number for the 9.7.12 release 2024-10-06 09:30:35 +02:00
Rudolf Adamkovic
fac0787e16
ox-texinfo: Check for math support without warnings and quietly
* lisp/ox-texinfo.el (org-texinfo-supports-math-p): Two
improvements: (1) Fix the incorrect `.info' extension used for the
temporary `.texi' file.  This removes the warning "makeinfo: warning:
input file testXXX.info; did you mean testXXX.texi?" (2) Suppress
output when compiling the "Is math supported?" test file.  This is to
avoid user confusion, as the user cares about their Texinfo file, not
implementation details.  This removes the message "Processing Texinfo
file /var/.../testXXX.info...".
2024-09-22 18:06:22 +02:00
Rodrigo Morales
d8fc26aefa
org-babel-view-src-block-info: Fix querying Org properties in Help buffer
* lisp/ob-core.el (org-babel-view-src-block-info): Query in-buffer
header arguments (`org-entry-get') from Org buffer.  It does nothing
from *Help* buffer.

In the previous version, when the user interactively calls
`org-babel-view-src-block-info' and the point is on a code block, these
two warnings are shown in the buffer *Warnings*:

 Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Help*> (help-mode)
 Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Help*> (help-mode)

This happened because `org-babel-view-src-block-info'
calls (org-entry-get (point) "header-args" t) while being in
the *Help* buffer.  `org-babel-view-src-block-info' should call
org-entry-get while being in the Org Mode buffer and then switch to
the *Help* buffer once it has all the information that is then
displayed in the *Help* buffer.

In the introduced changes, we execute (org-entry-get (point)
"header-args" t) while being in the Org Mode buffer and we switch
to *Help* when we have the necessary information that is then shown in
the *Help* buffer.

TINYCHANGE
2024-09-22 12:28:08 +02:00
Benjamin McMillan
2a85367ea8
lisp/org.el: Add back "export" blocks to natively fontified blocks
* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Add "export" to
list of block types that are fontified if `org-src-fontify-natively'
is non-nil.  This brings back the previous undocumented behaviour.

Link: https://list.orgmode.org/87h6aejf17.fsf@localhost/
TINYCHANGE
2024-09-22 11:43:55 +02:00
Morgan Willcock
c766ea34ec
.dir-locals.el: Disable compilation of .dir-locals.el
* .dir-locals.el: Add `no-byte-compile'.

Reported-by: Lin Jian <me@linj.tech>
Link: https://list.orgmode.org/orgmode/87zfocwjwx.fsf@linj.tech/

TINYCHANGE
2024-09-22 10:08:39 +02:00
Kyle Meyer
9f29451d86 Merge branch 'km/from-emacs-30' into bugfix 2024-09-14 11:58:26 -04:00
Robert Pluim
00ef9b557d Backport commit 79f68597a from Emacs
; * etc/ORG-NEWS: Fix typo.
79f68597abade27939397e0c2a50eec833e64daf
Robert Pluim
Fri Sep 13 09:50:01 2024 +0200
2024-09-14 11:56:04 -04:00
Stefan Kangas
0afa19e8bf Backport commit 4047072c7 from Emacs
* doc/org-manual.org (Link Abbreviations):
Update the FSF address to 31 Milk Street.

Update FSF's address
4047072c7d847afb5027dab27e97606a49c1d62e
Stefan Kangas
Mon Sep 2 21:02:09 2024 +0200
2024-09-14 11:54:29 -04:00
Rudolf Adamkovic
3428b522fb
doc/org-manual.org: Update a deprecated function
* doc/org-manual.org (Global and local cycling):
(Initial visibility): Replace `org-set-startup-visibility' with
`org-cycle-set-startup-visibility' as per "This function is obsolete
since 9.6; use ‘org-cycle-set-startup-visibility’ instead."
2024-08-31 16:39:55 +02:00
Ihor Radchenko
6a5d0ed342
Update version number for the 9.7.11 release 2024-08-23 10:20:21 +02:00
Ihor Radchenko
34979457f9
lisp/ox.el (org-export-options-alist): Improve docstring
Users often confuse alist key and the first element of the alist value
- KEYWORD in this alist.  Make the distinction more clear in the
docstring.

Link: https://list.orgmode.org/orgmode/87h6biyrd7.fsf@localhost/
2024-08-22 14:53:49 +02:00
Ihor Radchenko
8fd6cc9020
lisp/ob-gnuplot.el: Fix cyclic dependency
* lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Load ox-ascii
dynamically.

Reported-by: Donald Hunter <donald@sealgair.com>
Link: https://orgmode.org/list/20240821112055.16184-1-donald@sealgair.com
2024-08-22 14:36:51 +02:00
Ihor Radchenko
b128d2be81
etc/ORG-NEWS (Alignment of image previews can be customized): Add missing entry 2024-08-18 12:05:39 +02:00
Ihor Radchenko
5ebd973e09
Update version number for the 9.7.10 release 2024-08-16 08:53:10 +02:00
Ihor Radchenko
e52858fdb4
lisp/ox.el: Fix handling attachment: links
* lisp/ox.el (org-attach): Load org-attach.el.  Otherwise, export may
fail when expanding attachment: links.

Reported-by: Sébastien Gendre <seb@k-7.ch>
Link: https://orgmode.org/list/87o75y3ki8.fsf@k-7.ch
2024-08-13 20:07:47 +02:00
Ihor Radchenko
f9351456e7
org-persist-write:index: Disable pretty-printing
* lisp/org-persist.el (org-persist-write:index): Disable
pretty-printing when writing index.  This is simply too slow once
index reaches ~1000 items.  `pp' is slow.  See bug#58687.
(org-persist--write-elisp-file): Add FIXME explaining that using PP
argument is probably not a good idea.

Reported-by: Visuwesh <visuweshm@gmail.com>
Link: https://orgmode.org/list/87r0axvu7y.fsf@gmail.com
2024-08-10 14:44:08 +02:00
Ihor Radchenko
b7026cf3e8
lisp/ox-html.el (org-html-fontify-code): Improve warning text
The old text may be confusing because it sounds like an error, except
that it is not.  Make it more clear and also mention relevant
customization.

Reported-by: Angelo Graziosi <angelo.g0@libero.it>
Link: https://yhetil.org/emacs-devel/cd5649e9-0e4f-41e9-8c2f-1a060d721c63@libero.it
2024-08-04 20:42:35 +02:00
Ihor Radchenko
2f572779e5
doc/org-guide.org (Visibility Cycling): Fix incorrect statement
Fix incorrect assertion that initial visibility is overview.  It is
showeverything.

Reported-by: Matt M <home42@protonmail.com>
Link: https://orgmode.org/list/waxLE927Qoblcy_1hGRBGaOJjKgQ2K7NTFS9wFnEqHuW0BHAZYDkpGndbubOWtvpcJ06R378Mod8GsfA1UnuqLyT9QbQZFM8uaDxKHGPJhc=@protonmail.com
2024-08-04 20:13:04 +02:00
Ihor Radchenko
233a0ced97
Update version number for the 9.7.9 release 2024-07-26 09:19:46 +02:00
Ihor Radchenko
ec63072247
org--image-yank-media-handler: Suppress coding system auto-detection
* lisp/org.el (org--image-yank-media-handler): Prevent Emacs from
trying to detect coding system for image data (and sometimes asking
user interactively).

Reported-by: Daan Ro <daanturo@gmail.com>
Link: https://orgmode.org/list/11A5BD1B-98F2-4B53-A61C-A93A367EB321@getmailspring.com
2024-07-25 13:15:14 +02:00
Stefan Kangas
23b9316ef9 Backport commit a79966156 from Emacs
Standardize possessive apostrophe usage in manuals, docs, and comments
a79966156633ae1e49e3fef17ff7212c8f35a26f
Stefan Kangas
Thu Jul 25 03:35:18 2024 +0200
2024-07-24 22:19:52 -04:00
Kyle Meyer
fdf0e067ba Merge branch 'km/from-emacs-30' into bugfix 2024-07-21 22:55:38 -04:00
Stefan Kangas
7832ebe386 Backport commit 00adee897 from Emacs
; Fix punctuation in docs
00adee897ac95912cb9ad6bd8a8d161db71945ac
Stefan Kangas
Sun Jul 21 17:35:13 2024 +0200
2024-07-21 17:25:20 -04:00
Kyle Meyer
4dfe3db762 Merge branch 'km/from-emacs-30' into bugfix 2024-07-20 15:24:58 -04:00
Stefan Kangas
934dec45b5 ; Fix typo in etc/ORG-NEWS (Bug#72186) 2024-07-20 15:24:28 -04:00
Stefan Kangas
a97ea4f0b5 Backport commit a6cab228d from Emacs
; Fix typos
a6cab228d4d1a82a80eac81b057857a230eef0b5
Stefan Kangas
Thu Jul 18 11:46:50 2024 +0200
2024-07-20 15:24:27 -04:00
Ihor Radchenko
7f2ce8272c
Update version number for the 9.7.8 release 2024-07-19 10:28:00 +02:00
Ihor Radchenko
e269942a35
org-indent-line: Fix indentation at blank lines at the beginning of buffer
* lisp/org.el (org--get-expected-indentation): Allow ELEMENT to be nil.
(org-indent-line): Account for element at point possibly being
nil (`org-element-at-point' returns nil at blank lines at the
beginning of buffer).

Reported-by: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
Link: https://orgmode.org/list/87ed7tb4ja.fsf@sappc2.mail-host-address-is-not-set
2024-07-17 16:10:26 +02:00
Kyle Meyer
f308d33d2f Merge branch 'km/from-emacs-30' into bugfix 2024-07-14 12:21:33 -04:00
Stefan Kangas
e14969f629 Backport commit 6757f8e67 from Emacs
* lisp/ob-core.el:
* lisp/ob-exp.el:
* lisp/ob-lob.el:
* lisp/ob-plantuml.el (org-babel-execute:plantuml):
* lisp/ob-python.el (org-babel-python--command)
(org-babel-python-initiate-session-by-key)
(org-babel-python-initiate-session):
* lisp/ob-scheme.el (org-babel-scheme-make-session-name):
* lisp/ob-tangle.el (org-babel-find-file-noselect-refresh)
(org-babel-interpret-file-mode):
* lisp/ob.el:
* lisp/org-agenda.el (org-agenda-mouse-1-follows-link)
(org-agenda-start-with-archives-mode)
(org-agenda-previous-line):
* lisp/org-clock.el (org-clock-save, org-clock-load):
* lisp/org-element-ast.el (org-element-type-p):
* lisp/org-faces.el (org-cycle-level-faces):
* lisp/org-fold-core.el (org-fold-core--isearch-overlays):
* lisp/org-fold.el (org-fold--extend-changed-region):
* lisp/org-goto.el:
* lisp/org-habit.el (org-habit-show-all-today):
* lisp/org-inlinetask.el (org-inlinetask-in-task-p):
* lisp/org-macs.el (org-current-text-column):
* lisp/org-mobile.el (org-mobile-check-setup):
* lisp/org-mouse.el (org-mouse-bolp):
* lisp/org-refile.el (org-refile):
* lisp/org-src.el (org-src-do-key-sequence-at-code-block):
* lisp/org-table.el (orgtbl-after-send-table-hook)
(orgtbl-self-insert-command, orgtbl-to-orgtbl):
* lisp/org.el (org-read-date-popup-calendar, org-finish-function)
(org-occur-parameters, org-self-insert-command, org-ctrl-c-ctrl-c-hook)
(org-ctrl-c-ctrl-c-final-hook, org-submit-bug-report)
(org--single-lines-list-is-paragraph):
* lisp/ox-icalendar.el (org-icalendar--vtodo):
* lisp/ox-latex.el (org-latex-generate-engraved-preamble):
(org-latex-src--engrave-code):
* lisp/ox-publish.el (org-publish-project-alist):
* lisp/ox.el (org-export-data): Various checkdoc fixes.

Checkdoc fixes in Org Mode
6757f8e67d3bdfe338810fc26408a62e7839afe7
Stefan Kangas
Sun Jul 7 17:46:25 2024 +0200
2024-07-14 12:20:46 -04:00
Ihor Radchenko
1ee08091a6
Update version number for the 9.7.7 release 2024-07-12 21:02:03 +02:00
Ihor Radchenko
1b4ffe868e
lisp/org.el (org-insert-subheading): Fix error when at `point-max'
* lisp/org.el (org-insert-subheading): Make sure that `forward-char'
never happens at the end of buffer.  Also, only move char when we are
at actual heading/item - that's the only case when we need to adjust
point position to avoid `org-insert-heading' inserting above.
2024-07-12 13:11:05 +02:00
Ihor Radchenko
022bb471c1
org-indent-line: Fix indentation inside src blocks with `electric-indent-mode'
* lisp/org.el (org-indent-line): Use `indent-according-to-mode' to
indent in src block's major mode.  Using `indent-line-function' fails
when `electric-indent-mode' wants to suppress <tab> indentation.
* testing/lisp/test-org.el (test-org/with-electric-indent): Add test.

Reported-by: the_wurfkreuz <the_wurfkreuz@proton.me>
Link: https://orgmode.org/list/5O9VMGb6WRaqeHR5_NXTb832Z2Lek_5L40YPDA52-S3kPwGYJspI8kLWaGtuq3DXyhtHpj1J7jTIXb39RX9BtCa2ecrWHjijZqI8QAD742U=@proton.me
2024-07-09 18:05:41 +02:00
Ihor Radchenko
db46706bec
org-agenda-category-icon-alist: Improve docstirng
* lisp/org-agenda.el (org-agenda-category-icon-alist): Refer to
`org-agenda-prefix-format' in the docstring, as it is what controls
whether the icons are rendered at all.
2024-07-07 08:25:33 +02:00
Ihor Radchenko
06eb69809a
etc/ORG-NEWS: Mention issues with yank-media on Mac and Windows
* etc/ORG-NEWS (Images and files in clipboard can be pasted): Mention
that Mac and Windows are not yet fully supported by Emacs'
yank-media library.
2024-07-04 08:37:18 +02:00
Kyle Meyer
4617d52fad Merge branch 'km/from-emacs-30' into bugfix 2024-07-01 22:33:46 -04:00