summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2023-06-12 11:59:14 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2023-06-12 11:59:14 (GMT)
commitd3435b5e59bd9850762582d00961195b0fe5bcca (patch)
tree36cb0d801530d1b6fff1d4e29b733f7e4eef9c9a
parent72797e8ff99a0b1623a35ea0f7e4158de09472ff (diff)
downloaddotemacs-d3435b5e59bd9850762582d00961195b0fe5bcca.zip
dotemacs-d3435b5e59bd9850762582d00961195b0fe5bcca.tar.gz
dotemacs-d3435b5e59bd9850762582d00961195b0fe5bcca.tar.bz2
find-file-visit-truename leads to incorrect paths in autoloadsHEADmaster
-rw-r--r--init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el
index 5453cef..b9077a7 100644
--- a/init.el
+++ b/init.el
@@ -43,6 +43,14 @@
(setq custom-file (concat ravi/init-dir "custom.el"))
;; Initialize package handling: currently using only the official repository and MELPA
+;; Work around emacs bug 52292 on emacs 28+
+;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52292
+(defun faerryn-patch-package-find-file-visit-truename (oldfun &rest r)
+ (let ((find-file-visit-truename nil))
+ (apply oldfun r)))
+(advice-add #'package-install :around
+ #'faerryn-patch-package-find-file-visit-truename)
+
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/")