Skip to content

Instantly share code, notes, and snippets.

@hidsh
Last active March 25, 2024 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidsh/c5bf5ece75efccb7d25f495b01b15eff to your computer and use it in GitHub Desktop.
Save hidsh/c5bf5ece75efccb7d25f495b01b15eff to your computer and use it in GitHub Desktop.
suppress undo-tree warning at startup emacs
#!/usr/bin/sh
patch undo-tree.el undo-tree.el.patch
.emacs.d/packages/undo-tree-0.8.2/undo-tree.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode'

source

https://gitlab.com/tsc25/undo-tree/-/blob/master/undo-tree.el

emacs

(emacs-version)
"GNU Emacs 29.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2024-03-04"

system-configuration-features
"CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB"


(emacs-build-description)

In GNU Emacs 29.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo
 version 1.16.0) of 2024-03-04 built on pop2
Repository revision: ae80192d97b8d0e54a9429091cd84190bdbeb49e
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Pop!_OS 22.04 LTS

Configured using:
 'configure -with-x-toolkit=gtk3 --with-native-compilation --without-mailutils'

#(" " 0 1 (fontified nil))
diff --git a/undo-tree.el b/undo-tree.el
index bd36e39..8879800 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -2768,5 +2768,5 @@ Within the undo-tree visualizer, the following keys are available:
- nil ; init value
- undo-tree-mode-lighter ; lighter
- undo-tree-map ; keymap
+ :init-value nil ; init value
+ :lighter undo-tree-mode-lighter ; lighter
+ :keymap undo-tree-map ; keymap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment