diff options
Diffstat (limited to 'app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch')
-rw-r--r-- | app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch b/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch new file mode 100644 index 000000000000..437389204808 --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch @@ -0,0 +1,76 @@ +--- qemacs-0.3.1/qe-doc.html 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/qe-doc.html 2005-02-21 12:10:35.000000000 +0000 +@@ -382,7 +382,7 @@ C-x C-d : dired + + <P> + All resources and configuration files are looked in the following paths: +-<TT>`/usr/share/qe:/usr/local/share/qe:/usr/lib/qe:/usr/local/lib/qe:~/.qe'</TT> ++<TT>`/usr/share/qemacs:/usr/local/share/qemacs:/usr/lib/qemacs:/usr/local/lib/qemacs:~/.qemacs'</TT> + + + +@@ -390,7 +390,7 @@ All resources and configuration files ar + <H2><A NAME="SEC16" HREF="qe-doc.html#TOC16">4.2 Configuration file</A></H2> + + <P> +-QEmacs tries to load a configuration file in <TT>`~/.qe/config'</TT>. Each ++QEmacs tries to load a configuration file in <TT>`~/.qemacs/config'</TT>. Each + line of the configuration file is a QEmacs command with a C like syntax + ('-' in command name can be replaced by '_'). + +--- qemacs-0.3.1/qe.c 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/qe.c 2005-02-21 12:10:35.000000000 +0000 +@@ -6250,13 +6250,13 @@ void qe_init(void *opaque) + + /* compute resources path */ + strcpy(qe_state.res_path, +- CONFIG_QE_PREFIX "/share/qe:" CONFIG_QE_PREFIX "/lib/qe:" +- "/usr/share/qe:/usr/lib/qe"); ++ CONFIG_QE_PREFIX "/share/qemacs:" CONFIG_QE_PREFIX "/lib/qemacs:" ++ "/usr/share/qemacs:/usr/lib/qemacs"); + home_path = getenv("HOME"); + if (home_path) { + pstrcat(qe_state.res_path, sizeof(qe_state.res_path), ":"); + pstrcat(qe_state.res_path, sizeof(qe_state.res_path), home_path); +- pstrcat(qe_state.res_path, sizeof(qe_state.res_path), "/.qe"); ++ pstrcat(qe_state.res_path, sizeof(qe_state.res_path), "/.qemacs"); + } + qe_state.macro_key_index = -1; /* no macro executing */ + qe_state.ungot_key = -1; /* no unget key */ +--- qemacs-0.3.1/config.eg 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/config.eg 2005-02-21 12:10:35.000000000 +0000 +@@ -1,6 +1,6 @@ + // Sample qemacs config file + // +-// copy it in ~/.qe/config ++// copy it in ~/.qemacs/config + // + // You can call any Qemacs command with a C like syntax. + // +--- qemacs-0.3.1/Makefile 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/Makefile 2005-02-21 12:10:35.000000000 +0000 +@@ -189,7 +189,7 @@ ifdef CONFIG_FFMPEG + ln -sf qemacs $(DESTDIR)$(prefix)/bin/ffplay + endif + mkdir -p $(DESTDIR)$(prefix)/share/qemacs +- install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qe ++ install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qemacs + mkdir -p $(DESTDIR)$(prefix)/share/man/man1 + install -m644 qe.1 $(DESTDIR)$(prefix)/share/man/man1/qemacs.1 + install -m 755 -s html2png $(DESTDIR)$(prefix)/bin +--- qemacs-0.3.1/plugin-example/Makefile 2005-02-21 12:11:08.000000000 +0000 ++++ qemacs-0.3.1/plugin-example/Makefile 2005-02-21 12:11:08.000000000 +0000 +@@ -14,11 +14,11 @@ OBJS=my_plugin.o + + INCLUDES=-I$(QEMACS_PATH) + DEFINES=-DQE_MODULE +-DIST_LIB:=$(HOME)/.qe/$(LIB) ++DIST_LIB:=$(HOME)/.qemacs/$(LIB) + CC=gcc + CFLAGS=-O2 -Wall -g -fPIC $(INCLUDES) $(DEFINES) + +-# by default, the plugin is copied in ~/.qe/ some that qemacs can load ++# by default, the plugin is copied in ~/.qemacs/ some that qemacs can load + # it automatically. + all: $(LIB) + |