[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs qe.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs qe.c |
Date: |
Tue, 31 Jan 2017 15:22:13 -0500 (EST) |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 17/01/31 15:22:13
Modified files:
. : qe.c
Log message:
config: fix window context for .qerc files fix code fragment coloring
- save and restore qs->active_window around .qerc config file parsing
and set qs->active_window to target window for attribute setting.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.246&r2=1.247
Patches:
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -b -r1.246 -r1.247
--- qe.c 1 Jan 2017 15:40:46 -0000 1.246
+++ qe.c 31 Jan 2017 20:22:13 -0000 1.247
@@ -7987,6 +7987,8 @@
{
char buf[MAX_FILENAME_SIZE];
char *p = buf;
+ QEmacsState *qs = e->qe_state;
+ EditState *saved = qs->active_window;
for (;;) {
pstrcpy(buf, sizeof(buf), filename);
@@ -7995,8 +7997,10 @@
break;
p += 1;
pstrcpy(p, buf + sizeof(buf) - p, ".qerc");
+ qs->active_window = e;
parse_config_file(e, buf);
}
+ qs->active_window = saved;
}
/******************************************************/