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

27944 Commits

Author SHA1 Message Date
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
Lukas Rudd Andersen
a8790ed09e
lisp/org-persist.el: Fix regression missed by 7fd8099
* lisp/org-persist.el: (org-persist--find-index): Fix regression that
  makes the function return nil when container in COLLECTION is not a
  list of containers.

TINYCHANGE
2024-09-22 11:06:41 +02:00
Ihor Radchenko
8b8b61d277
Merge branch 'bugfix' 2024-09-22 10:11:45 +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
Jens Lechtenbörger
9cbf0c99c3
test-ox-publish.el: Add tests for publish cache
* testing/lisp/test-ox-publish.el (org-test-publish): Add optional
arguments `timestamp-flag' and `pubdir' for control over existing
local variables, add optional argument `keep-pubdir-p' for conditional
deletion of publication directory.
(org-test-publish-touch): New function to change modification time of
file.
(test-org-publish/publish-cache): New function with tests.

* testing/examples/pub-cache/source.org:
* testing/examples/pub-cache/config.org: New example files.
2024-09-17 20:32:15 +02:00
Ihor Radchenko
7cecc2aa2c
doc/org-manual.org (Choosing a working directory): Fix typo
:mkdirp, not :mkdir.

TINYCHANGE
2024-09-17 08:35:40 +02:00
Rudolf Adamkovic
6443c83bd1
ox-texinfo: Support links in headings
* etc/ORG-NEWS (Texinfo exporter now supports links in headings):
Announce the new feature.
* lisp/ox-texinfo.el: (org-texinfo--format-entries,
org-texinfo--get-node, org-texinfo--sanitize-title-reference,
org-texinfo--sanitize-title): A 2-step change: (1) Rename
`--sanitize-title' to `--sanitize-title-reference' and (2) create a
new `--sanitize-title' sanitation function.  The new function is less
strict in that does not remove links, which should be allowed in
sectioning commands, such as `@unnumbered'.  The old function remains
more strict, which is useful for generating `@node' names, for
example.
* testing/lisp/test-ox-texinfo.el:
(test-ox-texinfo/headings-with-links): Test the new functionality to
avoid regressions in the future.
2024-09-16 20:54:08 +02:00
Pedro A. Aranda
cdcde091b9
ox-latex: Suggest xcolor instead of color
* lisp/ox-latex.el (org-latex-src-block-backend): In the docstring,
suggest xcolor instead of color.  Color might be less reliable.  See
https://tex.stackexchange.com/questions/89763/when-to-use-the-xcolor-package-instead-of-the-color-package
2024-09-15 16:10:59 +02:00
Rudolf Adamkovič
4829bacffe
ox-texinfo: Fix automatic @ref titles
* lisp/ox-texinfo.el (org-texinfo--@ref): Fix an incorrect assumption
that Texinfo uses node names for automatic link text.  It does not.
Instead, it uses the corresponding section title.  For example, if a
node is named `a' its section is named `A', the Org link to the node
`a' written as `[[...][xxx]]' ends up being rendered as "A", which
means the link description the Org user provided is ignored.
2024-09-15 14:08:19 +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
Slawomir Grochowski
07dd3bcae6
org-columns-compile-format: Fix regexp
* lisp/org-colview.el (org-columns-compile-format): Refactor
string-based regexp to `rx' form.  Fix regexp: When an empty
parentheses () is in the column format string then the regexp
can't capture the operator which is in curly brackets {}.
(org-columns-new): prevent adding empty parantheses '()' to 'column
format string' when 'column title' is empty.
* testing/lisp.test-org-colview.el (test-org-colview/compile-format):
New test case: check if operator will be captured when there is
empty parantheses '()' in 'column format string'.

Reported-by: Sławomir Grochowski <slawomir.grochowski@gmail.com>
Link: https://list.orgmode.org/orgmode/877ccczt83.fsf@gmail.com/
2024-08-31 15:31:13 +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
7a3fc3d78b
Merge branch 'bugfix' 2024-08-22 14:37:15 +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
d51dc4aa29
org-toggle-inline-images-command: New command for C-c C-x C-v binding
* lisp/org.el (org-toggle-inline-images-command): New command to
toggle images.  Unlike the old `org-toggle-inline-image', it is more
flexible and default to toggling images at point/current entry.
* lisp/org-keys.el (org-mode-map): Bind C-c C-x C-v to the new
command.
* doc/org-manual.org (Images): Update the manual describing the new
command behaviour.
* etc/ORG-NEWS (=C-c C-x C-v= command toggling inline image display
has been reworked): Document the breaking change.

Link: https://list.orgmode.org/6461a84b.a70a0220.b6d36.5d00@mx.google.com/
2024-08-18 12:23:10 +02:00
Ihor Radchenko
6bf748e0d9
etc/ORG-NEWS: Add reference to undocumented feature added in Org 9.7 2024-08-18 12:09:04 +02:00
Ihor Radchenko
19440a8bc2
Merge branch 'bugfix' 2024-08-18 12:07:03 +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
Jens Lechtenbörger
38d1bc67b2
lisp/ox-publish.el: Use publish time in publish cache
* lisp/ox-publish.el (org-publish-update-timestamp): Store current
time in publish cache, instead of modification time of source file.
(org-publish-cache-file-needs-publishing): Return t, if source or an
included file was modified more recently.

Previously, a source file including a newer file was published again
and again.  Now, publishing only happens if either source or an
included file changed since the last publishing.
2024-08-15 20:24:42 +02:00
Ihor Radchenko
50be048ad0
org-display-inline-image--width: Fix regexp
* lisp/org.el (org-display-inline-image--width): Ignore non-pixel
specifications like :width 4in (previously treated as 4 pixels).  Do
not ignore fractional percent values like :width 30.5%.
2024-08-15 19:22:20 +02:00
Ihor Radchenko
482bc31565
org-babel-demarcate-block: Fix keeping BEGIN_SRC/END_SRC case
* lisp/ob-core.el (org-babel-demarcate-block): Keep case in
 #+BEGIN_SRC and #+END_SRC keywords splitting src block.
* testing/lisp/test-ob.el (test-ob/keep-case): New test.

Reported-by: Rudolf Adamkovič <rudolf@adamkovic.org>
Link: https://orgmode.org/list/m2y152f8s3.fsf@adamkovic.org
2024-08-14 11:02:18 +02:00
Ihor Radchenko
a43a2bef13
Merge branch 'bugfix' 2024-08-13 20:11:52 +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
86abaf6407
org-mode-flyspell-verify: Do not disable flyspell inside LOGBOOK drawers
* lisp/org-compat.el (org-mode-flyspell-verify): Remove LOGBOOK drawer
filter.  Not checking inside LOGBOOK drawers has no clear purpose.  I
also see no explanation in the git logs and mailing list archives, all
the way back to refactoring this function to use org-element API.
* etc/ORG-NEWS (Org mode no longer prevents =flyspell= from
spell-checking inside =LOGBOOK= drawers): Announce the breaking
change.

Reported-by: Morgan Willcock <morgan@ice9.digital>
Link: https://orgmode.org/list/87jzgpvdbk.fsf@ice9.digital
2024-08-11 17:29:24 +02:00
Ihor Radchenko
66f2f5ce43
Merge branch 'bugfix' 2024-08-10 14:47:52 +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
54af540af6
org-babel-sh-prompt: Fix Emacs 27 CI failures
* lisp/ob-shell.el (org-babel-sh-prompt): Use the old prompt for Emacs
27.  CI fails on Debian + Emacs 27 when running tests, even though
Emacs 27 tests do pass on my system.  Play it safe and fall back to
the old prompt for Emacs 27, to avoid possible breakage.  Emacs 27
support is going to be dropped soon anyway, after Emacs 30 release.
2024-08-06 20:11:45 +02:00
Ihor Radchenko
62b88d613e
ob-R, ob-julia: Obey babel working dir conventions with session
* lisp/ob-R.el (org-babel-R-initiate-session):
* lisp/ob-julia.el (org-babel-julia-initiate-session): Force using
`default-directory' as working directory for ESS sessions.
* etc/ORG-NEWS (~ob-R~ and ~ob-julia~ no longer use ESS settings for
working directory): Announce the breaking change.

Link: https://orgmode.org/list/871q4izpr4.fsf@localhost
2024-08-06 10:38:03 +02:00
Ihor Radchenko
9c98b21460
org-cancel-repeater: Cancel all the repeaters
* lisp/org.el (org-cancel-repeaters): Rename from
`org-cancel-repeater' (leaving old name as an alias).  Cancel all the
repeaters instead of just the repeater in the first active timestamp.
(org-todo): Use the new function name.
* etc/ORG-NEWS (~org-cancel-repeater~ now cancels all the repeaters
under inside entry): Announce the breaking change.

The old version failed to cancel repeaters except the one in the very
first active timestamp.  If the first timestsamp did not have a
repeaters, all other repeaters were ignored.

Since the original use case of this is -1 prefix argument in
`org-todo' with the intention to prevent switching back to TODO when
marking done, cancelling all the repeaters makes more sense.

Reported-by: Peter Solodov <solodov@gmail.com>
Link: https://orgmode.org/list/87r0b4duzo.fsf@localhost
2024-08-06 10:21:18 +02:00
Ihor Radchenko
7fd80991c3
org-persist: Fix regression after 95f77669e0
* lisp/org-persist.el (org-persist--find-index):
(org-persist--add-to-index):
(org-persist--remove-from-index): Do not assume that every container
is a list of other containers.
2024-08-05 19:19:43 +02:00
Ihor Radchenko
b62f1b142c
org-babel-sh-prompt: Use cuneiform "break" 𒆸 symbol as unique prompt
* lisp/ob-shell.el (org-babel-sh-prompt): Change the value of unique
prompt from long prompt string to a much shorter, but still unlikely
to appear in output, single-char prompt.

Cuneiform because Sumerian, Babylon, Tower ob Babel :)
2024-08-05 17:03:00 +02:00
Ihor Radchenko
149973da2f
org-babel-sh-initiate-session: Fix setting non-standard prompt
* lisp/ob-shell.el (org-babel-sh-initiate-session): Set
`comint-prompt-regexp' early, _before_ evaluating prompt change.  This
way, we make sure that comint is not stuck trying to search for the
old prompt if the new prompt no longer matches `comint-prompt-regexp'.
2024-08-05 17:02:59 +02:00
Ihor Radchenko
76c5f2238f
ob-shell: Arrange unique prompt in manually started shell buffers
* lisp/ob-shell.el (org-babel-sh--prompt-initialized): New variable
flag that indicates whether ob-shell changed the prompt in current
comint buffer.
(org-babel-sh-initiate-session): Set unique prompt in existing
sessions if it is not yet done.

Link: https://orgmode.org/list/87o782gx7o.fsf@localhost
2024-08-05 17:02:58 +02:00
Ihor Radchenko
5ebe761ae4
Rename org-babel-comint-prompt-regexp-old' to ...-fallback'
* lisp/ob-comint.el (org-babel-comint-prompt-regexp-fallback): Rename
to more accurate name.  Leave the old name as an alias.
(org-babel-comint--set-fallback-prompt): Use the new name.
(org-babel-comint-with-output):
(org-babel-comint-wait-for-output):
* lisp/ob-clojure.el (ob-clojure-eval-with-inf-clojure):
* lisp/ob-haskell.el (org-babel-interpret-haskell):
* lisp/ob-ruby.el (org-babel-ruby-initiate-session):
* lisp/ob-shell.el (org-babel-sh-initiate-session):
2024-08-05 17:02:56 +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
433fbdbc63
org-agenda-write: Remove redundant `set-buffer'
* lisp/org-agenda.el (org-agenda-write): Drop `set-buffer' call at the
end.  It does nothing since the rest of the code is wrapped in
`save-excursion' and the aim of the `set-buffer' is to switch to the
agenda buffer we just saved.  Ignore AGENDA-BUFNAME argument - it is
unused now.  Update the docstring, removing the mention of what
appears to be the now-ignored argument.
(org--batch-store-agenda-views): Update the caller.  Passing current
agenda buffer name is no longer necessary.  We set it before the call
anyway.

Reported-by: Sławomir Grochowski <slawomir.grochowski@gmail.com>
Link: https://orgmode.org/list/87ed7dwygq.fsf@gmail.com
2024-07-28 20:49:25 +02:00
Ihor Radchenko
233a0ced97
Update version number for the 9.7.9 release 2024-07-26 09:19:46 +02:00
Ihor Radchenko
d3d84ff6b9
Merge branch 'bugfix' 2024-07-25 13:22:41 +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
Ihor Radchenko
2a4fdffac1
org-plot/gnuplot-to-data: Do not assume that `orgtbl-to-generic' preserves buffer
* lisp/org-plot.el (org-plot-timestamp-fmt): Add default value and the docstring.
(org-plot/gnuplot-to-data): `let'-bind `org-plot-timestamp-fmt'
instead of setting it in current buffer.

Reported-by: Chris Keschnat <chris@catsu.it>
Link: https://orgmode.org/list/87r0bje1vs.fsf@catsu.it
2024-07-24 12:32:32 +02:00
Ihor Radchenko
114c764035
Remove test introduced in 190f47222
* testing/lisp/test-org-macs.el (test-org/string-width): Remove the
new test.  It is not working in batch mode, where pixel width cannot
be calculated.
2024-07-22 21:01:20 +02:00
Ihor Radchenko
190f472227
org-string-width: Round fractional widths
* lisp/org-macs.el (org-string-width): Fix zero-width
spaces (displayed as 1 pixel) being treated and full-width characters.
* testing/lisp/test-org-macs.el (test-org/string-width): Add new test.

Reported-by: Daniel <daniel@algebra20.de>
Link: https://orgmode.org/list/877cddbfkb.fsf@algebra20.de
2024-07-22 19:59:58 +02:00
Kyle Meyer
fdf0e067ba Merge branch 'km/from-emacs-30' into bugfix 2024-07-21 22:55:38 -04:00