File 0606-Emacs-Adapt-to-changed-make-symbolic-link-behavior.patch of Package erlang
From 28e75b6955af4e6531861decd3e9660d9136d371 Mon Sep 17 00:00:00 2001
From: Johan Claesson <johanclaesson@bredband.net>
Date: Sun, 17 Mar 2019 18:14:33 +0100
Subject: [PATCH 1/3] Emacs: Adapt to changed make-symbolic-link behavior
Since Emacs 26 make-symbolic-link will by default not expand a leading
~ in the target. Let's do it ourselves then i guess.
---
lib/tools/emacs/erldoc.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tools/emacs/erldoc.el b/lib/tools/emacs/erldoc.el
index 770ab299ee..77e66bfc98 100644
--- a/lib/tools/emacs/erldoc.el
+++ b/lib/tools/emacs/erldoc.el
@@ -280,7 +280,7 @@ up the indexing."
(unless (file-exists-p of)
(erldoc-parse-all erldoc-man-index of))
(unless (string= erldoc-output-file of)
- (make-symbolic-link of erldoc-output-file))))
+ (make-symbolic-link (expand-file-name of) erldoc-output-file))))
(setq erldoc-lookup-table
(with-temp-buffer
(insert-file-contents erldoc-output-file)
--
2.16.4