aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-03-16 09:40:02 +0800
committerPo Lu2023-03-16 09:40:02 +0800
commitd04731b5885957150b54efaa40fdf712b30170ff (patch)
tree59c4164e76c584c02c2e58fed9048022ff15c434 /src
parent9a4a7de914f6616867379c8cd0aed68b09dd80f6 (diff)
downloademacs-d04731b5885957150b54efaa40fdf712b30170ff.tar.gz
emacs-d04731b5885957150b54efaa40fdf712b30170ff.zip
Update Android port
* lisp/loadup.el (current-load-list): Set to empty load list after startup. * src/lread.c (build_load_history): Revert earlier changes.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lread.c b/src/lread.c
index c29c7ede6ac..fe48e614393 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2317,7 +2317,7 @@ static void
2317build_load_history (Lisp_Object filename, bool entire) 2317build_load_history (Lisp_Object filename, bool entire)
2318{ 2318{
2319 Lisp_Object tail, prev, newelt; 2319 Lisp_Object tail, prev, newelt;
2320 Lisp_Object tem, tem2, association; 2320 Lisp_Object tem, tem2;
2321 bool foundit = 0; 2321 bool foundit = 0;
2322 2322
2323 tail = Vload_history; 2323 tail = Vload_history;
@@ -2366,16 +2366,8 @@ build_load_history (Lisp_Object filename, bool entire)
2366 front of load-history, the most-recently-loaded position. Also 2366 front of load-history, the most-recently-loaded position. Also
2367 do this if we didn't find an existing member for the file. */ 2367 do this if we didn't find an existing member for the file. */
2368 if (entire || !foundit) 2368 if (entire || !foundit)
2369 { 2369 Vload_history = Fcons (Fnreverse (Vcurrent_load_list),
2370 association = Fnreverse (Vcurrent_load_list); 2370 Vload_history);
2371
2372 if (!NILP (association) && STRINGP (XCAR (association)))
2373 /* readevalloop can be called with SOURCENAME set to some
2374 nonsense value, meaning the car of ASSOCIATION will be nil
2375 (or worse something else), leading to an invalid
2376 Vload_history. Ignore such invalid entries. */
2377 Vload_history = Fcons (association, Vload_history);
2378 }
2379} 2371}
2380 2372
2381static void 2373static void