Klimi's new dotfiles with stow.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

103 wiersze
3.7 KiB

5 lat temu
  1. ;;; magit-obsolete.el --- obsolete definitions -*- lexical-binding: t -*-
  2. ;; Copyright (C) 2010-2019 The Magit Project Contributors
  3. ;;
  4. ;; You should have received a copy of the AUTHORS.md file which
  5. ;; lists all contributors. If not, see http://magit.vc/authors.
  6. ;; Author: Jonas Bernoulli <jonas@bernoul.li>
  7. ;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
  8. ;; Magit is free software; you can redistribute it and/or modify it
  9. ;; under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation; either version 3, or (at your option)
  11. ;; any later version.
  12. ;;
  13. ;; Magit is distributed in the hope that it will be useful, but WITHOUT
  14. ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  15. ;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  16. ;; License for more details.
  17. ;;
  18. ;; You should have received a copy of the GNU General Public License
  19. ;; along with Magit. If not, see http://www.gnu.org/licenses.
  20. ;;; Commentary:
  21. ;; This library defines aliases for obsolete variables and functions.
  22. ;;; Code:
  23. (require 'magit)
  24. ;;; Obsolete since v2.91.0
  25. (define-obsolete-function-alias 'magit-diff-visit-file-worktree
  26. 'magit-diff-visit-worktree-file "Magit 2.91.0")
  27. (define-obsolete-function-alias 'magit-status-internal
  28. 'magit-status-setup-buffer "Magit 2.91.0")
  29. (define-obsolete-variable-alias 'magit-mode-setup-hook
  30. 'magit-setup-buffer-hook "Magit 2.91.0")
  31. (define-obsolete-variable-alias 'magit-branch-popup-show-variables
  32. 'magit-branch-direct-configure "Magit 2.91.0")
  33. (define-obsolete-function-alias 'magit-dispatch-popup
  34. 'magit-dispatch "Magit 2.91.0")
  35. (defun magit--magit-popup-warning ()
  36. (display-warning 'magit "\
  37. Magit no longer uses Magit-Popup.
  38. It now uses Transient.
  39. See https://emacsair.me/2019/02/14/transient-0.1.
  40. However your configuration and/or some third-party package that
  41. you use still depends on the `magit-popup' package. But because
  42. `magit' no longer depends on that, `package' has removed it from
  43. your system.
  44. If some package that you use still depends on `magit-popup' but
  45. does not declare it as a dependency, then please contact its
  46. maintainer about that and install `magit-popup' explicitly.
  47. If you yourself use functions that are defined in `magit-popup'
  48. in your configuration, then the next step depends on what you use
  49. that for.
  50. * If you use `magit-popup' to define your own popups but do not
  51. modify any of Magit's old popups, then you have to install
  52. `magit-popup' explicitly. (You can also migrate to Transient,
  53. but there is no need to rush that.)
  54. * If you add additional arguments and/or actions to Magit's popups,
  55. then you have to port that to modify the new \"transients\" instead.
  56. See https://github.com/magit/magit/wiki/\
  57. Converting-popup-modifications-to-transient-modifications
  58. To find installed packages that still use `magit-popup' you can
  59. use e.g. \"M-x rgrep RET magit-popup RET RET ~/.emacs.d/ RET\"."))
  60. (cl-eval-when (eval load)
  61. (unless (require 'magit-popup nil t)
  62. (defun magit-define-popup-switch (&rest _)
  63. (magit--magit-popup-warning))
  64. (defun magit-define-popup-option (&rest _)
  65. (magit--magit-popup-warning))
  66. (defun magit-define-popup-variable (&rest _)
  67. (magit--magit-popup-warning))
  68. (defun magit-define-popup-action (&rest _)
  69. (magit--magit-popup-warning))
  70. (defun magit-define-popup-sequence-action (&rest _)
  71. (magit--magit-popup-warning))
  72. (defun magit-define-popup-key (&rest _)
  73. (magit--magit-popup-warning))
  74. (defun magit-define-popup-keys-deferred (&rest _)
  75. (magit--magit-popup-warning))
  76. (defun magit-change-popup-key (&rest _)
  77. (magit--magit-popup-warning))
  78. (defun magit-remove-popup-key (&rest _)
  79. (magit--magit-popup-warning))))
  80. ;;; _
  81. (provide 'magit-obsolete)
  82. ;;; magit-obsolete.el ends here