diff options
| author | Glenn Morris | 2021-10-08 07:50:28 -0700 |
|---|---|---|
| committer | Glenn Morris | 2021-10-08 07:50:28 -0700 |
| commit | 2bc37c14dbdf3fdf337862caa31fabfe69476e70 (patch) | |
| tree | 202441d8497712242e0c3c1f5d8a2c3bd6e40f5e /lisp/progmodes | |
| parent | b506c5b217d4adf68013c15be0d1b16189de089b (diff) | |
| parent | af01b674cec1ea7e9dd801f40c1ca8221f5cc8da (diff) | |
| download | emacs-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/progmodes')
| -rw-r--r-- | lisp/progmodes/xref.el | 14 |
1 files changed, 14 insertions, 0 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) |