aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2021-10-08 07:50:28 -0700
committerGlenn Morris2021-10-08 07:50:28 -0700
commit2bc37c14dbdf3fdf337862caa31fabfe69476e70 (patch)
tree202441d8497712242e0c3c1f5d8a2c3bd6e40f5e /lisp
parentb506c5b217d4adf68013c15be0d1b16189de089b (diff)
parentaf01b674cec1ea7e9dd801f40c1ca8221f5cc8da (diff)
downloademacs-2bc37c14dbdf3fdf337862caa31fabfe69476e70.tar.gz
emacs-2bc37c14dbdf3fdf337862caa31fabfe69476e70.zip
Merge from origin/emacs-28
af01b674ce (origin/emacs-28) ; Fix spacing in previous commit 915e044d60 Use the correct label in the warning 6e83a4100a ; * admin/make-tarball.txt: Should configure --with-native... 525602d682 ; * etc/TODO (display): Add entry about Default_Ignorables. 65de510c16 ; Fix 'restore-buffer-modified-p' doc string typo 9d8202b45e Add Emacs 27 compatibility hack 89d64fca75 Pacify GCC 10.3 -Wmaybe-uninitialized bb8ef1aa30 * lisp/tab-bar.el (tab-detach, tab-window-detach): New ali... 7ae70054aa ; * src/composite.h (LGSTRING_FONT): Add comment about its... 1af00e67d6 Include the refcards in the release tarball 3c29fb705c ; * src/Makefile.in (../native-lisp): Make the long recipe...
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/xref.el14
-rw-r--r--lisp/tab-bar.el42
-rw-r--r--lisp/textmodes/reftex-toc.el4
3 files changed, 38 insertions, 22 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index f4716fe9a64..0d51019f735 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -74,6 +74,20 @@
74(require 'ring) 74(require 'ring)
75(require 'project) 75(require 'project)
76 76
77(eval-and-compile
78 (when (version< emacs-version "28")
79 ;; etags.el in Emacs 26 and 27 uses EIEIO, and its location type
80 ;; inherits from `xref-location'.
81 (require 'eieio)
82
83 ;; Suppressing byte-compilation warnings (in Emacs 28+) about
84 ;; `defclass' not being defined, which happens because the
85 ;; `require' statement above is not evaluated either.
86 ;; FIXME: Use `with-suppressed-warnings' when we stop supporting Emacs 26.
87 (with-no-warnings
88 (defclass xref-location () ()
89 :documentation "(Obsolete) location represents a position in a file or buffer."))))
90
77(defgroup xref nil "Cross-referencing commands." 91(defgroup xref nil "Cross-referencing commands."
78 :version "25.1" 92 :version "25.1"
79 :group 'tools) 93 :group 'tools)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index b08b7442677..ccecdbc0440 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -311,7 +311,7 @@ that closes only when clicked on the close button."
311 `(menu-item "Duplicate" (lambda () (interactive) 311 `(menu-item "Duplicate" (lambda () (interactive)
312 (tab-bar-duplicate-tab 312 (tab-bar-duplicate-tab
313 nil ,tab-number)) 313 nil ,tab-number))
314 :help "Duplicate the tab")) 314 :help "Clone the tab"))
315 (define-key-after menu [detach-tab] 315 (define-key-after menu [detach-tab]
316 `(menu-item "Detach" (lambda () (interactive) 316 `(menu-item "Detach" (lambda () (interactive)
317 (tab-bar-detach-tab 317 (tab-bar-detach-tab
@@ -1350,7 +1350,7 @@ If FROM-NUMBER is a tab number, a new tab is created from that tab."
1350 (tab-bar-new-tab-to))) 1350 (tab-bar-new-tab-to)))
1351 1351
1352(defun tab-bar-duplicate-tab (&optional arg from-number) 1352(defun tab-bar-duplicate-tab (&optional arg from-number)
1353 "Duplicate the current tab to ARG positions to the right. 1353 "Clone the current tab to ARG positions to the right.
1354ARG and FROM-NUMBER have the same meaning as in `tab-bar-new-tab'." 1354ARG and FROM-NUMBER have the same meaning as in `tab-bar-new-tab'."
1355 (interactive "P") 1355 (interactive "P")
1356 (let ((tab-bar-new-tab-choice nil) 1356 (let ((tab-bar-new-tab-choice nil)
@@ -2243,24 +2243,26 @@ When `switch-to-buffer-obey-display-actions' is non-nil,
2243 2243
2244;;; Short aliases and keybindings 2244;;; Short aliases and keybindings
2245 2245
2246(defalias 'tab-new 'tab-bar-new-tab) 2246(defalias 'tab-new 'tab-bar-new-tab)
2247(defalias 'tab-new-to 'tab-bar-new-tab-to) 2247(defalias 'tab-new-to 'tab-bar-new-tab-to)
2248(defalias 'tab-duplicate 'tab-bar-duplicate-tab) 2248(defalias 'tab-duplicate 'tab-bar-duplicate-tab)
2249(defalias 'tab-close 'tab-bar-close-tab) 2249(defalias 'tab-detach 'tab-bar-detach-tab)
2250(defalias 'tab-close-other 'tab-bar-close-other-tabs) 2250(defalias 'tab-window-detach 'tab-bar-move-window-to-tab)
2251(defalias 'tab-close-group 'tab-bar-close-group-tabs) 2251(defalias 'tab-close 'tab-bar-close-tab)
2252(defalias 'tab-undo 'tab-bar-undo-close-tab) 2252(defalias 'tab-close-other 'tab-bar-close-other-tabs)
2253(defalias 'tab-select 'tab-bar-select-tab) 2253(defalias 'tab-close-group 'tab-bar-close-group-tabs)
2254(defalias 'tab-switch 'tab-bar-switch-to-tab) 2254(defalias 'tab-undo 'tab-bar-undo-close-tab)
2255(defalias 'tab-next 'tab-bar-switch-to-next-tab) 2255(defalias 'tab-select 'tab-bar-select-tab)
2256(defalias 'tab-previous 'tab-bar-switch-to-prev-tab) 2256(defalias 'tab-switch 'tab-bar-switch-to-tab)
2257(defalias 'tab-last 'tab-bar-switch-to-last-tab) 2257(defalias 'tab-next 'tab-bar-switch-to-next-tab)
2258(defalias 'tab-recent 'tab-bar-switch-to-recent-tab) 2258(defalias 'tab-previous 'tab-bar-switch-to-prev-tab)
2259(defalias 'tab-move 'tab-bar-move-tab) 2259(defalias 'tab-last 'tab-bar-switch-to-last-tab)
2260(defalias 'tab-move-to 'tab-bar-move-tab-to) 2260(defalias 'tab-recent 'tab-bar-switch-to-recent-tab)
2261(defalias 'tab-rename 'tab-bar-rename-tab) 2261(defalias 'tab-move 'tab-bar-move-tab)
2262(defalias 'tab-group 'tab-bar-change-tab-group) 2262(defalias 'tab-move-to 'tab-bar-move-tab-to)
2263(defalias 'tab-list 'tab-switcher) 2263(defalias 'tab-rename 'tab-bar-rename-tab)
2264(defalias 'tab-group 'tab-bar-change-tab-group)
2265(defalias 'tab-list 'tab-switcher)
2264 2266
2265(define-key tab-prefix-map "n" 'tab-duplicate) 2267(define-key tab-prefix-map "n" 'tab-duplicate)
2266(define-key tab-prefix-map "N" 'tab-new-to) 2268(define-key tab-prefix-map "N" 'tab-new-to)
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el
index 7ca2fb827e8..b5f53ba86e7 100644
--- a/lisp/textmodes/reftex-toc.el
+++ b/lisp/textmodes/reftex-toc.el
@@ -856,10 +856,10 @@ label prefix determines the wording of a reference."
856 (label (car toc)) newlabel) 856 (label (car toc)) newlabel)
857 (if (not (stringp label)) 857 (if (not (stringp label))
858 (error "This is not a label entry")) 858 (error "This is not a label entry"))
859 (setq newlabel (read-string (format "Rename label \"%s\" to:" label))) 859 (setq newlabel (read-string (format "Rename label \"%s\" to: " label)))
860 (if (assoc newlabel (symbol-value reftex-docstruct-symbol)) 860 (if (assoc newlabel (symbol-value reftex-docstruct-symbol))
861 (if (not (y-or-n-p 861 (if (not (y-or-n-p
862 (format-message "Label `%s' exists. Use anyway? " label))) 862 (format-message "Label `%s' exists. Use anyway? " newlabel)))
863 (error "Abort"))) 863 (error "Abort")))
864 (save-excursion 864 (save-excursion
865 (save-window-excursion 865 (save-window-excursion