SHA256
1
0
forked from pool/emacs
Dr. Werner Fink 2020-08-15 06:28:09 +00:00 committed by Git OBS Bridge
parent 4f26b9fcbf
commit c3c2fc81c8
3 changed files with 34 additions and 0 deletions

26
emacs-27.1-home.patch Normal file
View File

@ -0,0 +1,26 @@
Tomasz> Forgotten / somewhere?
Robert> Hmm. Any chance of catching that in gdb so we can see where itʼs being
Robert> called from?
Completely WAG:
---
src/xrdb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- src/xrdb.c
+++ src/xrdb.c 2020-08-15 06:15:14.059639732 +0000
@@ -292,9 +292,9 @@ get_user_app (const char *class)
/* Check in the home directory. This is a bit of a hack; let's
hope one's home directory doesn't contain ':' or '%'. */
char const *home = get_homedir ();
- db = search_magic_path (home, class, "%L/%N");
+ db = search_magic_path (home, class, "/%L/%N");
if (! db)
- db = search_magic_path (home, class, "%N");
+ db = search_magic_path (home, class, "/%N");
}
return db;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Aug 15 06:26:39 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- Add upstream patch emacs-27.1-home.patch from mailing list
to add missing slashes on finding ~/Emacs
-------------------------------------------------------------------
Fri Aug 14 08:01:27 UTC 2020 - Dr. Werner Fink <werner@suse.de>

View File

@ -175,6 +175,7 @@ Patch23: emacs-25.1-custom-fonts.patch
Patch24: emacs-25.2-ImageMagick7.patch
Patch25: emacs-26.1-xft4x11.patch
Patch26: emacs-27.1-pdftex.patch
Patch27: emacs-27.1-home.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global include_info %(test -s /usr/share/info/info.info* && echo 0 || echo 1)}
@ -288,6 +289,7 @@ and most assembler-like syntaxes.
%patch24 -p1 -b .imag
%patch25 -p0 -b .xft
%patch26 -p0 -b .fmt
%patch27 -p0 -b .home
%patch -p0 -b .0
%if %{without tex4pdf}
pushd etc/refcards/