[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/magit f748702fa3 12/18: Reapply "No longer use buffer-loca
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/magit f748702fa3 12/18: Reapply "No longer use buffer-local-value as a generalized variable" |
Date: |
Sun, 22 Dec 2024 08:43:50 -0500 (EST) |
branch: elpa/magit
commit f748702fa326022f985e790985a16263a45b09c2
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Reapply "No longer use buffer-local-value as a generalized variable"
This reverts commit 96ecf74563774bd3d0763269af5eafda7d140f98.
Ah, I misread the log. The temporary deprecation sadly did make it
into the 29.1 release. I thought it was un-deprecated before that.
---
lisp/magit-ediff.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-ediff.el b/lisp/magit-ediff.el
index 4e17ce3853..71721eb20e 100644
--- a/lisp/magit-ediff.el
+++ b/lisp/magit-ediff.el
@@ -335,7 +335,7 @@ FILE has to be relative to the top directory of the
repository."
(buffer-local-value 'buffer-file-coding-system bufC*))
(bufA* (magit-find-file-noselect-1 "HEAD" file t))
(bufB* (magit-find-file-index-noselect file t)))
- (setf (buffer-local-value 'buffer-read-only bufB*) nil)
+ (with-current-buffer bufB* (setq buffer-read-only nil))
(magit-ediff-buffers
(bufA bufA*)
(bufB bufB*)
@@ -344,7 +344,7 @@ FILE has to be relative to the top directory of the
repository."
(lambda ()
(when (buffer-live-p ediff-buffer-B)
(when lockB
- (setf (buffer-local-value 'buffer-read-only bufB) t))
+ (with-current-buffer bufB (setq buffer-read-only t)))
(when (buffer-modified-p ediff-buffer-B)
(with-current-buffer ediff-buffer-B
(magit-update-index))))
- [nongnu] elpa/magit updated (873da4a62d -> f4c05e9cd4), Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 139e0fcff3 01/18: git-commit-setup-changelog-support: Fix name of a used function, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit c1a86066e8 02/18: Depend on Emacs >= 27.1, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 3ecebe8d11 07/18: magit-log-refresh: Add missing arguments, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit c8f5a93f44 08/18: magit-log{, -refresh}: Move shared arguments to new group variable, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit ef0c6dfa33 09/18: Use cl-pushnew instead of add-to-list where appropriate, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit f748702fa3 12/18: Reapply "No longer use buffer-local-value as a generalized variable",
Jonas Bernoulli <=
- [nongnu] elpa/magit 31e462e1eb 17/18: magit-commit-autofixup: Support reducing verbosity, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit b91dc00eb9 15/18: manual: Document magit-profile-refresh-buffer, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 96ecf74563 10/18: Revert "No longer use buffer-local-value as a generalized variable", Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 58cb6f4054 04/18: Define more diff arguments using transient-define-argument, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit b34bb9e230 13/18: magit-profile-refresh-buffer: Print message, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 569a614044 03/18: Expel dependabot, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit f4c05e9cd4 18/18: magit-commit-absorb: Don't hardcode -v argument, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 0e25bfce4e 14/18: magit-profile-refresh-buffer: Declare used functions, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit c8b23b76cc 05/18: magit-diff{, -refresh}: Cosmetics, Jonas Bernoulli, 2024/12/22
- [nongnu] elpa/magit 60527da2fb 06/18: magit-diff{, -refresh}: Move shared arguments to new group variable, Jonas Bernoulli, 2024/12/22