diff --git a/doc/org-manual.org b/doc/org-manual.org index a2d51cf9c..170eea506 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -3766,7 +3766,7 @@ replacement text. Here is an example: #+begin_src emacs-lisp (setq org-link-abbrev-alist - '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=") + '(("bugzilla" . "https://10.1.2.9/bugzilla/show_bug.cgi?id=") ("Nu Html Checker" . "https://validator.w3.org/nu/?doc=%h") ("duckduckgo" . "https://duckduckgo.com/?q=%s") ("omap" . "https://nominatim.openstreetmap.org/search?q=%s&polygon=1") @@ -9712,7 +9712,7 @@ the estimated effort of an entry (see [[*Effort Estimates]]). #+vindex: org-agenda-effort-filter-preset #+vindex: org-agenda-regexp-filter-preset Agenda built-in or custom commands are statically defined. Agenda -filters and limits allow to flexibly narrow down the list of agenda +filters and limits allow flexibly narrowing down the list of agenda entries. /Filters/ only change the visibility of items, are very fast and are @@ -21365,8 +21365,8 @@ adding ~:rewrites~ rules like this: #+texinfo: @noindent Since =example.com/$= is used as a regular expression, it maps -=http://example.com/=, =https://example.com=, -=http://www.example.com/= and similar to +=https://example.com/=, =https://example.com=, +=https://www.example.com/= and similar to =/home/user/example/index.php=. The ~:rewrites~ rules are searched as a last resort if and only if no diff --git a/lisp/ob-calc.el b/lisp/ob-calc.el index f6d364238..171fd1b04 100644 --- a/lisp/ob-calc.el +++ b/lisp/ob-calc.el @@ -115,7 +115,7 @@ (mapcar #'org-trim (split-string (org-babel-expand-body:calc body params) "[\n\r]")))) (save-excursion - (with-current-buffer (get-buffer "*Calculator*") + (with-current-buffer "*Calculator*" (prog1 (calc-eval (calc-top 1)) (calc-pop 1))))) diff --git a/lisp/ob-eshell.el b/lisp/ob-eshell.el index 94fef08aa..940e5d760 100644 --- a/lisp/ob-eshell.el +++ b/lisp/ob-eshell.el @@ -47,11 +47,12 @@ "Execute a block of Eshell code BODY with PARAMS. This function is called by `org-babel-execute-src-block'. -The BODY can be any code which allowed executed in Eshell. -Eshell allow to execute normal shell command and Elisp code. -More details please reference Eshell Info. +The BODY argument is code which can be executed in Eshell. +Eshell allows executing normal shell command and Elisp code. +For more details, see Info node `(eshell) Top'. -The PARAMS are variables assignments." +The PARAMS argument is passed to +`org-babel-expand-body:generic' (which see)." (let* ((session (org-babel-eshell-initiate-session (cdr (assq :session params)))) (full-body (org-babel-expand-body:generic diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 79fe6448b..c89763efa 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -392,7 +392,7 @@ Did you give the decimal value %1$d by mistake?" mode))) (error "File mode %S not recognized as a valid format." mode)) ((string-match-p "^o0?[0-7][0-7][0-7]$" mode) (string-to-number (replace-regexp-in-string "^o" "" mode) 8)) - ((string-match-p "^[ugoa]*\\(?:[+-=][rwxXstugo]*\\)+\\(,[ugoa]*\\(?:[+-=][rwxXstugo]*\\)+\\)*$" mode) + ((string-match-p "^[ugoa]*\\(?:[+=-][rwxXstugo]*\\)+\\(,[ugoa]*\\(?:[+=-][rwxXstugo]*\\)+\\)*$" mode) ;; Match regexp taken from `file-modes-symbolic-to-number'. (file-modes-symbolic-to-number mode org-babel-tangle-default-file-mode)) ((string-match-p "^[r-][w-][xs-][r-][w-][xs-][r-][w-][x-]$" mode) diff --git a/lisp/ol-bbdb.el b/lisp/ol-bbdb.el index 6ea060f70..573e1ee86 100644 --- a/lisp/ol-bbdb.el +++ b/lisp/ol-bbdb.el @@ -4,7 +4,7 @@ ;; Authors: Carsten Dominik ;; Thomas Baumann -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-bibtex.el b/lisp/ol-bibtex.el index 7f4449b48..850a2fc20 100644 --- a/lisp/ol-bibtex.el +++ b/lisp/ol-bibtex.el @@ -5,7 +5,7 @@ ;; Authors: Bastien Guerry ;; Carsten Dominik ;; Eric Schulte -;; Keywords: org, wp, capture +;; Keywords: org, text, capture ;; ;; This file is part of GNU Emacs. ;; diff --git a/lisp/ol-docview.el b/lisp/ol-docview.el index 0907ddee1..383e3fbab 100644 --- a/lisp/ol-docview.el +++ b/lisp/ol-docview.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; Author: Jan Böcker -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-gnus.el b/lisp/ol-gnus.el index b9ee8683f..278c59ed4 100644 --- a/lisp/ol-gnus.el +++ b/lisp/ol-gnus.el @@ -4,7 +4,7 @@ ;; Author: Carsten Dominik ;; Tassilo Horn -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-info.el b/lisp/ol-info.el index 6062cab34..fa9b23b84 100644 --- a/lisp/ol-info.el +++ b/lisp/ol-info.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-man.el b/lisp/ol-man.el index 42aacea81..7070f48ab 100644 --- a/lisp/ol-man.el +++ b/lisp/ol-man.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2020-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Maintainer: Bastien Guerry -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-mhe.el b/lisp/ol-mhe.el index a32481324..b715f6a08 100644 --- a/lisp/ol-mhe.el +++ b/lisp/ol-mhe.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Thomas Baumann -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-rmail.el b/lisp/ol-rmail.el index f1f753b6f..fb32a4506 100644 --- a/lisp/ol-rmail.el +++ b/lisp/ol-rmail.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol-w3m.el b/lisp/ol-w3m.el index 77b4844a6..e89811733 100644 --- a/lisp/ol-w3m.el +++ b/lisp/ol-w3m.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2008-2024 Free Software Foundation, Inc. ;; Author: Andy Stewart -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/ol.el b/lisp/ol.el index 3d64b41b0..20f1b89c0 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2018-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. @@ -1912,7 +1912,7 @@ generate a description as described in `org-link-parameters' docstring. Otherwise, if `org-link-make-description-function' is non-nil, this function will be called with the link target, and the result will be the default link description. When called -non-interactively, don't allow to edit the default description." +non-interactively, don't allow editing the default description." (interactive "P") (let* ((wcf (current-window-configuration)) (origbuf (current-buffer)) @@ -2201,7 +2201,7 @@ Also refresh fontification if needed." (interactive) (let ((old-regexp org-target-link-regexp) ;; Some languages, e.g., Chinese, do not use spaces to - ;; separate words. Also allow to surround radio targets with + ;; separate words. Also allow surrounding radio targets with ;; line-breakable characters. (before-re "\\(?:^\\|[^[:alnum:]]\\|\\c|\\)\\(") (after-re "\\)\\(?:$\\|[^[:alnum:]]\\|\\c|\\)") diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 2131e0287..10f25be8a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. @@ -3900,7 +3900,7 @@ generating a new one." ;; buffer found (get-buffer org-agenda-buffer-name) ;; C-u parameter is same as last call - (with-current-buffer (get-buffer org-agenda-buffer-name) + (with-current-buffer org-agenda-buffer-name (and (equal current-prefix-arg org-agenda-last-prefix-arg) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index f38f8938d..53c825ed6 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-capture.el b/lisp/org-capture.el index f9e18ac49..6603b5e01 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2010-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 0b906144a..5555bb1bc 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. @@ -56,6 +56,8 @@ (declare-function dbus-list-activatable-names "dbus" (&optional bus)) (declare-function dbus-call-method "dbus" (bus service path interface method &rest args)) (declare-function dbus-get-property "dbus" (bus service path interface property)) +(declare-function haiku-notifications-notify "haikuselect.c") +(declare-function android-notifications-notify "androidselect.c") (defvar org-frame-title-format-backup nil) (defvar org-state) @@ -885,6 +887,18 @@ use libnotify if available, or fall back on a message." ((stringp org-show-notification-handler) (start-process "emacs-timer-notification" nil org-show-notification-handler notification)) + ((fboundp 'haiku-notifications-notify) + ;; N.B. timeouts are not available under Haiku. + (haiku-notifications-notify :title "Org mode message" + :body notification + :urgency 'low)) + ((fboundp 'android-notifications-notify) + ;; N.B. timeouts are not available under Haiku or Android. + (android-notifications-notify :title "Org mode message" + :body notification + ;; Low urgency notifications + ;; are by default hidden. + :urgency 'normal)) ((fboundp 'w32-notification-notify) (let ((id (w32-notification-notify :title "Org mode message" diff --git a/lisp/org-colview.el b/lisp/org-colview.el index e934ae67a..961ae0fbe 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 92cad3d6e..d6620f962 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-ctags.el b/lisp/org-ctags.el index d3af103dd..b2f005846 100644 --- a/lisp/org-ctags.el +++ b/lisp/org-ctags.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2007-2024 Free Software Foundation, Inc. ;; Author: Paul Sexton -;; Keywords: org, wp +;; Keywords: org, text ;; This file is part of GNU Emacs. ;; @@ -162,7 +162,9 @@ Format is: /REGEXP/TAGNAME/FLAGS,TAGTYPE/ See the ctags documentation for more information.") (defcustom org-ctags-path-to-ctags - (if (executable-find "ctags-exuberant") "ctags-exuberant" "ctags") + (if (executable-find "ctags-exuberant") + "ctags-exuberant" + ctags-program-name) "Name of the ctags executable file." :version "24.1" :type 'file) diff --git a/lisp/org-datetree.el b/lisp/org-datetree.el index be3cd1c0b..d0cc1fabb 100644 --- a/lisp/org-datetree.el +++ b/lisp/org-datetree.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-duration.el b/lisp/org-duration.el index e7c49feeb..662a94bd5 100644 --- a/lisp/org-duration.el +++ b/lisp/org-duration.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2017-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/org-element.el b/lisp/org-element.el index 92a007bac..7ce12352c 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -4,7 +4,7 @@ ;; Author: Nicolas Goaziou ;; Maintainer: Ihor Radchenko -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. @@ -3274,7 +3274,7 @@ CONTENTS is verse block contents." ;; object types they can contain will be specified in ;; `org-element-object-restrictions'. ;; -;; Creating a new type of object requires to alter +;; Creating a new type of object requires altering ;; `org-element--object-regexp' and `org-element--object-lex', add the ;; new type in `org-element-all-objects', and possibly add ;; restrictions in `org-element-object-restrictions'. @@ -3874,7 +3874,7 @@ Assume point is at the beginning of the link." ;; ;; Also treat any newline character and associated ;; indentation as a single space character. This is not - ;; compatible with RFC 3986, which requires to ignore + ;; compatible with RFC 3986, which requires ignoring ;; them altogether. However, doing so would require ;; users to encode spaces on the fly when writing links ;; (e.g., insert [[shell:ls%20*.org]] instead of diff --git a/lisp/org-entities.el b/lisp/org-entities.el index 1dd049f3d..c38c0fcb2 100644 --- a/lisp/org-entities.el +++ b/lisp/org-entities.el @@ -4,7 +4,7 @@ ;; Author: Carsten Dominik , ;; Ulf Stegemann -;; Keywords: outlines, calendar, wp +;; Keywords: outlines, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-faces.el b/lisp/org-faces.el index 0e20de51a..af7269bd1 100644 --- a/lisp/org-faces.el +++ b/lisp/org-faces.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-feed.el b/lisp/org-feed.el index bee7d0362..4077afa0d 100644 --- a/lisp/org-feed.el +++ b/lisp/org-feed.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index e1432babe..24cb8bf18 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-goto.el b/lisp/org-goto.el index 94b709fc6..5e4c05a76 100644 --- a/lisp/org-goto.el +++ b/lisp/org-goto.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2012-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/org-habit.el b/lisp/org-habit.el index c53195e2a..e17ee27fc 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; Author: John Wiegley -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-id.el b/lisp/org-id.el index 58d51deca..e247fab1d 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2008-2024 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-indent.el b/lisp/org-indent.el index f664bbd6e..39dda4332 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index c0338c77f..a4136a13d 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; This file is part of GNU Emacs. diff --git a/lisp/org-lint.el b/lisp/org-lint.el index 9e9d56253..9d105175c 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2015-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/org-list.el b/lisp/org-list.el index d7559d2a7..45a07a715 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -4,7 +4,7 @@ ;; ;; Author: Carsten Dominik ;; Bastien Guerry -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-macro.el b/lisp/org-macro.el index c509581fb..d21343530 100644 --- a/lisp/org-macro.el +++ b/lisp/org-macro.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2013-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 8dc9ec582..555ff44a3 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index b34623686..82f97fd36 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2009-2024 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el index 0b1ddaa6e..6bc7f788f 100644 --- a/lisp/org-mouse.el +++ b/lisp/org-mouse.el @@ -862,6 +862,10 @@ This means, between the beginning of line and the point." (org-mouse-in-region-p (posn-point (event-start event)))) (mouse-drag-region event))) +;; This function conflicts with touch screen gestures as it relays +;; events to `mouse-drag-region'. +(put 'org-mouse-down-mouse 'ignored-mouse-command t) + (add-hook 'org-mode-hook (lambda () (setq org-mouse-context-menu-function #'org-mouse-context-menu) diff --git a/lisp/org-num.el b/lisp/org-num.el index 765ec9ca5..aebfef050 100644 --- a/lisp/org-num.el +++ b/lisp/org-num.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2018-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el index f1bc34966..0d311f959 100644 --- a/lisp/org-pcomplete.el +++ b/lisp/org-pcomplete.el @@ -4,7 +4,7 @@ ;; ;; Author: Carsten Dominik ;; John Wiegley -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 001fe8c51..85c9a0cc5 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -7,7 +7,7 @@ ;; Sebastian Rose ;; Ross Patterson ;; Maintainer: Sebastian Rose -;; Keywords: org, emacsclient, wp +;; Keywords: org, emacsclient, text ;; This file is part of GNU Emacs. ;; diff --git a/lisp/org-refile.el b/lisp/org-refile.el index 18a9c4ac5..20b5fbd02 100644 --- a/lisp/org-refile.el +++ b/lisp/org-refile.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2010-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-src.el b/lisp/org-src.el index f18927d68..d152fbfe8 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -5,7 +5,7 @@ ;; Author: Carsten Dominik ;; Bastien Guerry ;; Dan Davison -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-table.el b/lisp/org-table.el index 6c44b0304..37ce91570 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2004-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. @@ -419,7 +419,7 @@ It is probably good to never set this variable to nil, for the sake of portability of tables." :group 'org-table-calculation :type '(choice - (const :tag "Allow to cross" t) + (const :tag "Allow crossing hline" t) (const :tag "Stick to hline" nil) (const :tag "Error on attempt to cross" error))) @@ -3935,7 +3935,7 @@ When non-nil, return the overlay narrowing the field." ;; Aligning table from the first row will not shrink again the ;; second row, which was not visible initially. ;; - ;; However, fixing it requires to check every row, which may be + ;; However, fixing it requires checking every row, which may be ;; slow on large tables. Moreover, the hindrance of this ;; pathological case is very limited. (forward-line 0) @@ -6178,9 +6178,13 @@ supported." (with-temp-buffer (insert (orgtbl-to-orgtbl table params)) (org-table-align) - (replace-regexp-in-string - "-|" "-+" - (replace-regexp-in-string "|-" "+-" (buffer-substring 1 (buffer-size)))))) + (goto-char (point-min)) + (while (search-forward "-|" nil t) + (replace-match "-+")) + (goto-char (point-min)) + (while (search-forward "|-" nil t) + (replace-match "+-")) + (buffer-string))) (defun orgtbl-to-unicode (table params) "Convert the `orgtbl-mode' TABLE into a table with unicode characters. diff --git a/lisp/org-tempo.el b/lisp/org-tempo.el index e0c411dee..c811f61c4 100644 --- a/lisp/org-tempo.el +++ b/lisp/org-tempo.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2017-2024 Free Software Foundation, Inc. ;; ;; Author: Rasmus Pank Roulund -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org-timer.el b/lisp/org-timer.el index 7a1d2f4d2..f1142af76 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2008-2024 Free Software Foundation, Inc. ;; Author: Carsten Dominik -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. diff --git a/lisp/org.el b/lisp/org.el index 2791c7f8b..d4b175308 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5,7 +5,7 @@ ;; ;; Author: Carsten Dominik ;; Maintainer: Bastien Guerry -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; Package-Requires: ((emacs "26.1")) @@ -1056,7 +1056,7 @@ time." This is useful since some lines containing links can be very long and uninteresting. Also tables look terrible when wrapped. -The variable `org-startup-truncated' allows to configure +The variable `org-startup-truncated' enables you to configure truncation for Org mode different to the other modes that use the variable `truncate-lines' and as a shortcut instead of putting the variable `truncate-lines' into the `org-mode-hook'. If one @@ -1383,14 +1383,15 @@ Possible values for the file identifier are: to open [[file:document.pdf::5]] with evince at page 5. Likely, you will need more entries: without page - number; with search pattern; with cross-reference - anchor; some combination of options. Consider simple - pattern here and a Lisp function to determine command - line arguments instead. Passing argument list to - `call-process' or `make-process' directly allows to - avoid treating some character in peculiar file names - as shell specialls causing executing part of file - name as a subcommand. + number; with search pattern; with + cross-reference anchor; some combination of + options. Consider simple pattern here and a + Lisp function to determine command line + arguments instead. Passing an argument list to + `call-process' or `make-process' directly avoids + treating some character in peculiar file names + as shell specials that prompt parts of said file + names to be executed as subcommands. `directory' Matches a directory `remote' Matches a remote file, accessible through tramp. @@ -3869,7 +3870,6 @@ This is needed for font-lock setup.") (defvar calc-embedded-close-formula) (defvar calc-embedded-open-formula) (defvar calc-embedded-open-mode) -(defvar font-lock-unfontify-region-function) (defvar org-agenda-tags-todo-honor-ignore-options) (defvar remember-data-file) (defvar texmathp-why) @@ -5443,7 +5443,7 @@ by a #." (zero-or-more (any " \t")) (group (group (zero-or-more (not (any " \t\n")))) (zero-or-more (any " \t")) - (group (zero-or-more any))))) + (group (zero-or-more nonl))))) limit t) (let ((beg (match-beginning 0)) (end-of-beginline (match-end 0)) @@ -5469,7 +5469,7 @@ by a #." "#+end" ,(match-string 4) word-end - (zero-or-more any))))) + (zero-or-more nonl))))) ;; We look further than LIMIT on purpose. nil t) ;; We do have a matching #+end line. @@ -5550,7 +5550,7 @@ by a #." (forward-line 0) (looking-at (rx (group (zero-or-more (any " \t")) "#+caption" - (optional "[" (zero-or-more any) "]") + (optional "[" (zero-or-more nonl) "]") ":") (zero-or-more (any " \t"))))) (add-text-properties (line-beginning-position) (match-end 1) @@ -13527,7 +13527,7 @@ Optional argument DEFAULT provides a default value for PROPERTY." nil nil nil nil default-prop))) (defun org-set-property-and-value (use-last) - "Allow to set [PROPERTY]: [value] direction from prompt. + "Allow setting [PROPERTY]: [value] direction from prompt. When use-default, don't even ask, just use the last \"[PROPERTY]: [value]\" string from the history." (interactive "P") @@ -14341,6 +14341,7 @@ user." (unless deltadef (let ((now (decode-time))) (setq day (nth 3 now) month (nth 4 now) year (nth 5 now)))) + ;; FIXME: Duplicated value in ‘cond’: "" (cond ((member deltaw '("h" "")) (when (boundp 'org-time-was-given) (setq org-time-was-given t)) @@ -17005,7 +17006,7 @@ implies no special alignment." (defun org-display-inline-remove-overlay (ov after _beg _end &optional _len) "Remove inline-display overlay if a corresponding region is modified." (when (and ov after) - (delete ov org-inline-image-overlays) + (setq org-inline-image-overlays (delete ov org-inline-image-overlays)) ;; Clear image from cache to avoid image not updating upon ;; changing on disk. See Emacs bug#59902. (when (overlay-get ov 'org-image-overlay) @@ -18437,8 +18438,8 @@ ignoring region." (defun org-open-line (n) "Insert a new row in tables, call `open-line' elsewhere. If `org-special-ctrl-o' is nil, just call `open-line' everywhere. -As a special case, when a document starts with a table, allow to -call `open-line' on the very first character." +As a special case, when a document starts with a table, allow +calling `open-line' on the very first character." (interactive "*p") (if (and org-special-ctrl-o (/= (point) 1) (org-at-table-p)) (org-table-insert-row) diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index 5e9b217e7..2a3d4c6fa 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2012-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index b7255cfd8..d49cccde2 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -4,7 +4,7 @@ ;; Author: Carsten Dominik ;; Nicolas Goaziou -;; Keywords: org, wp, tex +;; Keywords: org, text, tex ;; This file is part of GNU Emacs. @@ -968,11 +968,10 @@ holding export options." "Support for editing Beamer oriented Org mode files." :lighter " Bm") -(when (fboundp 'font-lock-add-keywords) - (font-lock-add-keywords - 'org-mode - '((":\\(B_[a-z]+\\|BMCOL\\):" 1 'org-beamer-tag prepend)) - 'prepend)) +(font-lock-add-keywords + 'org-mode + '((":\\(B_[a-z]+\\|BMCOL\\):" 1 'org-beamer-tag prepend)) + 'prepend) (defface org-beamer-tag '((t (:box (:line-width 1 :color "grey40")))) "The special face for beamer tags." @@ -1053,7 +1052,10 @@ will be displayed when `org-export-show-temporary-export-buffer' is non-nil." (interactive) (org-export-to-buffer 'beamer "*Org BEAMER Export*" - async subtreep visible-only body-only ext-plist (lambda () (LaTeX-mode)))) + async subtreep visible-only body-only ext-plist + (if (fboundp 'major-mode-remap) + (major-mode-remap 'latex-mode) + #'LaTeX-mode))) ;;;###autoload (defun org-beamer-export-to-latex diff --git a/lisp/ox-html.el b/lisp/ox-html.el index c0018ebbb..3b3aad748 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -5,7 +5,7 @@ ;; Author: Carsten Dominik ;; Jambunathan K ;; Maintainer: TEC -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. @@ -3189,6 +3189,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (let ((latex-frag (org-element-property :value latex-fragment)) (processing-type (plist-get info :with-latex))) (cond + ;; FIXME: Duplicated value in ‘cond’: t ((memq processing-type '(t mathjax)) (org-html-format-latex latex-frag 'mathjax info)) ((memq processing-type '(t html)) diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index 642590847..9921865ad 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -5,7 +5,7 @@ ;; Author: Carsten Dominik ;; Nicolas Goaziou ;; Maintainer: Jack Kamm -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; This file is part of GNU Emacs. diff --git a/lisp/ox-koma-letter.el b/lisp/ox-koma-letter.el index 1752ac9b9..b19f3ad98 100644 --- a/lisp/ox-koma-letter.el +++ b/lisp/ox-koma-letter.el @@ -7,7 +7,7 @@ ;; Viktor Rosenfeld ;; Rasmus Pank Roulund ;; Maintainer: Marco Wahl -;; Keywords: org, wp, tex +;; Keywords: org, text, tex ;; This file is part of GNU Emacs. @@ -915,7 +915,9 @@ non-nil." (let (org-koma-letter-special-contents) (org-export-to-buffer 'koma-letter "*Org KOMA-LETTER Export*" async subtreep visible-only body-only ext-plist - (lambda () (LaTeX-mode))))) + (if (fboundp 'major-mode-remap) + (major-mode-remap 'latex-mode) + #'LaTeX-mode)))) ;;;###autoload (defun org-koma-letter-export-to-latex diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index d8bbb52d8..a34646763 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -4,7 +4,7 @@ ;; Author: Nicolas Goaziou ;; Maintainer: Daniel Fleischer -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. @@ -3760,7 +3760,7 @@ CONTENTS is the contents of the object." ;; takes care of tables with a "verbatim" mode. Otherwise, it ;; delegates the job to either `org-latex--table.el-table', ;; `org-latex--org-table', `org-latex--math-table' or -;; `org-latex--org-align-string-tabbing' functions, +;; `org-table--org-tabbing' functions, ;; depending of the type of the table and the mode requested. ;; ;; `org-latex--align-string' is a subroutine used to build alignment @@ -4283,7 +4283,10 @@ will be displayed when `org-export-show-temporary-export-buffer' is non-nil." (interactive) (org-export-to-buffer 'latex "*Org LATEX Export*" - async subtreep visible-only body-only ext-plist (lambda () (LaTeX-mode)))) + async subtreep visible-only body-only ext-plist + (if (fboundp 'major-mode-remap) + (major-mode-remap 'latex-mode) + #'LaTeX-mode))) ;;;###autoload (defun org-latex-convert-region-to-latex () diff --git a/lisp/ox-man.el b/lisp/ox-man.el index cdd4fea7d..5d4fc23cb 100644 --- a/lisp/ox-man.el +++ b/lisp/ox-man.el @@ -4,7 +4,7 @@ ;; Author: Nicolas Goaziou ;; Luis R Anaya -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 674621565..53525b7ca 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2012-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: org, wp, markdown +;; Keywords: org, text, markdown ;; This file is part of GNU Emacs. diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index a77d65bca..c6a70fe9c 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2010-2024 Free Software Foundation, Inc. ;; Author: Jambunathan K -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; URL: https://orgmode.org ;; This file is part of GNU Emacs. diff --git a/lisp/ox-org.el b/lisp/ox-org.el index d74ad4afb..c5709bc78 100644 --- a/lisp/ox-org.el +++ b/lisp/ox-org.el @@ -3,7 +3,7 @@ ;; Copyright (C) 2013-2024 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou -;; Keywords: org, wp +;; Keywords: org, text ;; This file is part of GNU Emacs. diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 1b623ce9f..13f9b6b53 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2006-2024 Free Software Foundation, Inc. ;; Author: David O'Toole -;; Keywords: hypermedia, outlines, wp +;; Keywords: hypermedia, outlines, text ;; This file is part of GNU Emacs. ;; diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index fc9ec9209..6adee9fca 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2012-2024 Free Software Foundation, Inc. ;; Author: Jonathan Leech-Pepin -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. diff --git a/lisp/ox.el b/lisp/ox.el index 6b75adb5e..578e4f36a 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -4,7 +4,7 @@ ;; Author: Nicolas Goaziou ;; Maintainer: Ihor Radchenko -;; Keywords: outlines, hypermedia, calendar, wp +;; Keywords: outlines, hypermedia, calendar, text ;; This file is part of GNU Emacs. @@ -6769,7 +6769,7 @@ use it to set a major mode there, e.g., (interactive) (org-export-to-buffer \\='latex \"*Org LATEX Export*\" async subtreep visible-only body-only ext-plist - #\\='LaTeX-mode)) + (major-mode-remap \\='latex-mode))) When expressed as an anonymous function, using `lambda', POST-PROCESS needs to be quoted.