From d3435b5e59bd9850762582d00961195b0fe5bcca Mon Sep 17 00:00:00 2001 From: Ravi R Kiran Date: Mon, 12 Jun 2023 06:59:14 -0500 Subject: find-file-visit-truename leads to incorrect paths in autoloads 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/") -- cgit v0.10.1