emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/undo-tree e69adb3 109/195: Remove now unnecessary compa


From: Stefan Monnier
Subject: [elpa] externals/undo-tree e69adb3 109/195: Remove now unnecessary compatibility hack for called-interactively-p.
Date: Sat, 28 Nov 2020 13:41:32 -0500 (EST)

branch: externals/undo-tree
commit e69adb33514e2a8441aa4b78d9ba0f11cd18b107
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>

    Remove now unnecessary compatibility hack for called-interactively-p.
---
 undo-tree.el | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/undo-tree.el b/undo-tree.el
index 80df29d..328edd1 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2009-2012  Free Software Foundation, Inc
 
 ;; Author: Toby Cubitt <toby-undo-tree@dr-qubit.org>
-;; Version: 0.5
+;; Version: 0.5.1
 ;; Keywords: convenience, files, undo, redo, history, tree
 ;; URL: http://www.dr-qubit.org/emacs.php
 ;; Repository: http://www.dr-qubit.org/git/undo-tree.git
@@ -690,6 +690,9 @@
 
 ;;; Change Log:
 ;;
+;; Version 0.5.1
+;; * remove now unnecessary compatibility hack for `called-interactively-p'
+;;
 ;; Version 0.5
 ;; * implemented diff display in visualizer, toggled on and off using
 ;;   `undo-tree-visualizer-toggle-diff'
@@ -878,16 +881,6 @@
 (unless (fboundp 'region-active-p)
   (defun region-active-p () (and transient-mark-mode mark-active)))
 
-;; `called-interactively-p' doesn't take an argument in Emacs <= 22, but
-;; *requires* an argument in Emacs >= 23.1 (thus forcing us to use around
-;; advice if we want to avoid changing the main code)
-(when (or (<= emacs-major-version 22)
-         (and (= emacs-major-version 23)
-              (<= emacs-minor-version 21)))
-  (defadvice called-interactively-p
-    (around undo-tree (&optional kind) activate compile preactivate)
-    ad-do-it)1)
-
 
 ;; `registerv' defstruct isn't defined in Emacs versions < 24
 (unless (fboundp 'registerv-make)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]