diff options
| author | Stefan Kangas | 2023-01-12 06:30:12 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2023-01-12 06:30:12 +0100 |
| commit | e2abb95b6b03d13e60609ee85ea00bbf44a0bd6b (patch) | |
| tree | 64cbc652e2ab5104fa03205cb584dadf0e10d2ef | |
| parent | c51bfef34a6bdefad048444c279ea5b63a6aada1 (diff) | |
| parent | f4f30ff4c44dcfdf780f1981aa541af713f2805f (diff) | |
| download | emacs-e2abb95b6b03d13e60609ee85ea00bbf44a0bd6b.tar.gz emacs-e2abb95b6b03d13e60609ee85ea00bbf44a0bd6b.zip | |
Merge from origin/emacs-29
f4f30ff4c44 Update to Org 9.6.1
09f7a920644 Add support for annotation_type_declaration
4a8891a462e * etc/NEWS: Mention incompatible changes in 'outline-mino...
384504edf35 Ensure VC package names are not empty
70947da708c Handle missing package description when unpacking vc pack...
# Conflicts:
# etc/NEWS
| -rw-r--r-- | etc/NEWS.29 | 9 | ||||
| -rw-r--r-- | etc/refcards/orgcard.tex | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package-vc.el | 8 | ||||
| -rw-r--r-- | lisp/org/org-version.el | 4 | ||||
| -rw-r--r-- | lisp/org/org.el | 2 | ||||
| -rw-r--r-- | lisp/outline.el | 22 | ||||
| -rw-r--r-- | lisp/progmodes/java-ts-mode.el | 8 |
7 files changed, 42 insertions, 13 deletions
diff --git a/etc/NEWS.29 b/etc/NEWS.29 index a28f5c9a65a..16d17821b78 100644 --- a/etc/NEWS.29 +++ b/etc/NEWS.29 | |||
| @@ -351,6 +351,15 @@ also means that 'TAB' on a button in an 'outline-minor-mode' heading | |||
| 351 | will move point instead of collapsing the outline. | 351 | will move point instead of collapsing the outline. |
| 352 | 352 | ||
| 353 | --- | 353 | --- |
| 354 | ** 'outline-minor-mode-cycle-map' is now parent of 'outline-minor-mode'. | ||
| 355 | Instead of adding text property 'keymap' with 'outline-minor-mode-cycle' | ||
| 356 | on outline headings in 'outline-minor-mode', the keymap | ||
| 357 | 'outline-minor-mode-cycle' is now active in the whole buffer. | ||
| 358 | But keybindings in 'outline-minor-mode-cycle' still take effect | ||
| 359 | only on outline headings because they are bound with the help of | ||
| 360 | 'outline-minor-mode-cycle--bind' that checks if point is on a heading. | ||
| 361 | |||
| 362 | --- | ||
| 354 | ** 'Info-default-directory-list' is no longer populated at Emacs startup. | 363 | ** 'Info-default-directory-list' is no longer populated at Emacs startup. |
| 355 | If you have code in your init file that removes directories from | 364 | If you have code in your init file that removes directories from |
| 356 | 'Info-default-directory-list', this will no longer work. | 365 | 'Info-default-directory-list', this will no longer work. |
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex index 04d46756155..093dfceafa7 100644 --- a/etc/refcards/orgcard.tex +++ b/etc/refcards/orgcard.tex | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | % Reference Card for Org Mode | 1 | % Reference Card for Org Mode |
| 2 | \def\orgversionnumber{9.6} | 2 | \def\orgversionnumber{9.6.1} |
| 3 | \def\versionyear{2021} % latest update | 3 | \def\versionyear{2021} % latest update |
| 4 | \input emacsver.tex | 4 | \input emacsver.tex |
| 5 | 5 | ||
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index ddcfe57928b..b5b8a6746a6 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el | |||
| @@ -600,10 +600,14 @@ PKG-SPEC is a package specification, a property list describing | |||
| 600 | how to fetch and build the package. See `package-vc--archive-spec-alist' | 600 | how to fetch and build the package. See `package-vc--archive-spec-alist' |
| 601 | for details. The optional argument REV specifies a specific revision to | 601 | for details. The optional argument REV specifies a specific revision to |
| 602 | checkout. This overrides the `:branch' attribute in PKG-SPEC." | 602 | checkout. This overrides the `:branch' attribute in PKG-SPEC." |
| 603 | (unless pkg-desc | ||
| 604 | (package-desc-create :name (car pkg-spec) :kind 'vc)) | ||
| 603 | (pcase-let* (((map :lisp-dir) pkg-spec) | 605 | (pcase-let* (((map :lisp-dir) pkg-spec) |
| 604 | (name (package-desc-name pkg-desc)) | 606 | (name (package-desc-name pkg-desc)) |
| 605 | (dirname (package-desc-full-name pkg-desc)) | 607 | (dirname (package-desc-full-name pkg-desc)) |
| 606 | (pkg-dir (expand-file-name dirname package-user-dir))) | 608 | (pkg-dir (expand-file-name dirname package-user-dir))) |
| 609 | (when (string-empty-p name) | ||
| 610 | (user-error "Empty package name")) | ||
| 607 | (setf (package-desc-dir pkg-desc) pkg-dir) | 611 | (setf (package-desc-dir pkg-desc) pkg-dir) |
| 608 | (when (file-exists-p pkg-dir) | 612 | (when (file-exists-p pkg-dir) |
| 609 | (if (yes-or-no-p (format "Overwrite previous checkout for package `%s'?" name)) | 613 | (if (yes-or-no-p (format "Overwrite previous checkout for package `%s'?" name)) |
| @@ -771,7 +775,9 @@ regular package, but it will not remove a VC package. | |||
| 771 | (package-vc--archives-initialize) | 775 | (package-vc--archives-initialize) |
| 772 | (let* ((name-or-url (package-vc--read-package-name | 776 | (let* ((name-or-url (package-vc--read-package-name |
| 773 | "Fetch and install package: " t)) | 777 | "Fetch and install package: " t)) |
| 774 | (name (file-name-base name-or-url))) | 778 | (name (file-name-base (directory-file-name name-or-url)))) |
| 779 | (when (string-empty-p name) | ||
| 780 | (user-error "Empty package name")) | ||
| 775 | (list name-or-url | 781 | (list name-or-url |
| 776 | (and current-prefix-arg :last-release) | 782 | (and current-prefix-arg :last-release) |
| 777 | nil | 783 | nil |
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el index 942cc4eae8b..43d50e4387f 100644 --- a/lisp/org/org-version.el +++ b/lisp/org/org-version.el | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | (defun org-release () | 5 | (defun org-release () |
| 6 | "The release version of Org. | 6 | "The release version of Org. |
| 7 | Inserted by installing Org mode or when a release is made." | 7 | Inserted by installing Org mode or when a release is made." |
| 8 | (let ((org-release "9.6")) | 8 | (let ((org-release "9.6.1")) |
| 9 | org-release)) | 9 | org-release)) |
| 10 | ;;;###autoload | 10 | ;;;###autoload |
| 11 | (defun org-git-version () | 11 | (defun org-git-version () |
| 12 | "The Git version of Org mode. | 12 | "The Git version of Org mode. |
| 13 | Inserted by installing Org or when a release is made." | 13 | Inserted by installing Org or when a release is made." |
| 14 | (let ((org-git-version "release_9.6-90-ga6523f")) | 14 | (let ((org-git-version "release_9.6.1")) |
| 15 | org-git-version)) | 15 | org-git-version)) |
| 16 | 16 | ||
| 17 | (provide 'org-version) | 17 | (provide 'org-version) |
diff --git a/lisp/org/org.el b/lisp/org/org.el index 8d226c2c5ab..869ff16a6da 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | ;; URL: https://orgmode.org | 9 | ;; URL: https://orgmode.org |
| 10 | ;; Package-Requires: ((emacs "25.1")) | 10 | ;; Package-Requires: ((emacs "25.1")) |
| 11 | 11 | ||
| 12 | ;; Version: 9.6 | 12 | ;; Version: 9.6.1 |
| 13 | 13 | ||
| 14 | ;; This file is part of GNU Emacs. | 14 | ;; This file is part of GNU Emacs. |
| 15 | ;; | 15 | ;; |
diff --git a/lisp/outline.el b/lisp/outline.el index 91f6040687b..0bfda8388ed 100644 --- a/lisp/outline.el +++ b/lisp/outline.el | |||
| @@ -209,8 +209,14 @@ This option is only in effect when `outline-minor-mode-cycle' is non-nil." | |||
| 209 | :version "28.1") | 209 | :version "28.1") |
| 210 | 210 | ||
| 211 | (defvar outline-minor-mode-cycle) | 211 | (defvar outline-minor-mode-cycle) |
| 212 | (defvar outline-minor-mode-cycle-map) | ||
| 212 | (defun outline-minor-mode-cycle--bind (map key binding &optional filter) | 213 | (defun outline-minor-mode-cycle--bind (map key binding &optional filter) |
| 213 | (define-key map key | 214 | "Define KEY as BINDING in MAP using FILTER. |
| 215 | The key takes effect only on the following conditions: | ||
| 216 | `outline-minor-mode-cycle' is non-nil, point is located on the heading line, | ||
| 217 | FILTER or `outline-minor-mode-cycle-filter' is nil or returns non-nil. | ||
| 218 | The argument MAP is optional and defaults to `outline-minor-mode-cycle-map'." | ||
| 219 | (define-key (or map outline-minor-mode-cycle-map) key | ||
| 214 | `(menu-item | 220 | `(menu-item |
| 215 | "" ,binding | 221 | "" ,binding |
| 216 | ;; Filter out specific positions on the heading. | 222 | ;; Filter out specific positions on the heading. |
| @@ -227,8 +233,16 @@ This option is only in effect when `outline-minor-mode-cycle' is non-nil." | |||
| 227 | (let ((map (make-sparse-keymap))) | 233 | (let ((map (make-sparse-keymap))) |
| 228 | (outline-minor-mode-cycle--bind map (kbd "TAB") #'outline-cycle) | 234 | (outline-minor-mode-cycle--bind map (kbd "TAB") #'outline-cycle) |
| 229 | (outline-minor-mode-cycle--bind map (kbd "<backtab>") #'outline-cycle-buffer) | 235 | (outline-minor-mode-cycle--bind map (kbd "<backtab>") #'outline-cycle-buffer) |
| 236 | (keymap-set map "<left-margin> <mouse-1>" 'outline-cycle) | ||
| 237 | (keymap-set map "<right-margin> <mouse-1>" 'outline-cycle) | ||
| 238 | (keymap-set map "<left-margin> S-<mouse-1>" 'outline-cycle-buffer) | ||
| 239 | (keymap-set map "<right-margin> S-<mouse-1>" 'outline-cycle-buffer) | ||
| 230 | map) | 240 | map) |
| 231 | "Keymap used by `outline-minor-mode-cycle'.") | 241 | "Keymap used as a parent of the `outline-minor-mode' keymap. |
| 242 | It contains key bindings that can be used to cycle visibility. | ||
| 243 | The recommended way to bind keys is with `outline-minor-mode-cycle--bind' | ||
| 244 | when the key should be enabled only when `outline-minor-mode-cycle' is | ||
| 245 | non-nil and point is located on the heading line.") | ||
| 232 | 246 | ||
| 233 | (defvar outline-mode-map | 247 | (defvar outline-mode-map |
| 234 | (let ((map (make-sparse-keymap))) | 248 | (let ((map (make-sparse-keymap))) |
| @@ -518,10 +532,6 @@ See the command `outline-mode' for more information on this mode." | |||
| 518 | :keymap (define-keymap | 532 | :keymap (define-keymap |
| 519 | :parent outline-minor-mode-cycle-map | 533 | :parent outline-minor-mode-cycle-map |
| 520 | "<menu-bar>" outline-minor-mode-menu-bar-map | 534 | "<menu-bar>" outline-minor-mode-menu-bar-map |
| 521 | "<left-margin> <mouse-1>" 'outline-cycle | ||
| 522 | "<right-margin> <mouse-1>" 'outline-cycle | ||
| 523 | "<left-margin> S-<mouse-1>" 'outline-cycle-buffer | ||
| 524 | "<right-margin> S-<mouse-1>" 'outline-cycle-buffer | ||
| 525 | (key-description outline-minor-mode-prefix) outline-mode-prefix-map) | 535 | (key-description outline-minor-mode-prefix) outline-mode-prefix-map) |
| 526 | (if outline-minor-mode | 536 | (if outline-minor-mode |
| 527 | (progn | 537 | (progn |
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index 87a4e2b90f8..8d432f1774e 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el | |||
| @@ -122,7 +122,8 @@ | |||
| 122 | "provides" "public" "requires" "return" "sealed" | 122 | "provides" "public" "requires" "return" "sealed" |
| 123 | "static" "strictfp" "switch" "synchronized" | 123 | "static" "strictfp" "switch" "synchronized" |
| 124 | "throw" "throws" "to" "transient" "transitive" | 124 | "throw" "throws" "to" "transient" "transitive" |
| 125 | "try" "uses" "volatile" "while" "with" "record") | 125 | "try" "uses" "volatile" "while" "with" "record" |
| 126 | "@interface") | ||
| 126 | "Java keywords for tree-sitter font-locking.") | 127 | "Java keywords for tree-sitter font-locking.") |
| 127 | 128 | ||
| 128 | (defvar java-ts-mode--operators | 129 | (defvar java-ts-mode--operators |
| @@ -183,7 +184,10 @@ | |||
| 183 | :language 'java | 184 | :language 'java |
| 184 | :override t | 185 | :override t |
| 185 | :feature 'type | 186 | :feature 'type |
| 186 | '((interface_declaration | 187 | '((annotation_type_declaration |
| 188 | name: (identifier) @font-lock-type-face) | ||
| 189 | |||
| 190 | (interface_declaration | ||
| 187 | name: (identifier) @font-lock-type-face) | 191 | name: (identifier) @font-lock-type-face) |
| 188 | 192 | ||
| 189 | (class_declaration | 193 | (class_declaration |