From b6b2fe34e1e878522573e1ac133f5dc7d1b5789b Mon Sep 17 00:00:00 2001 From: Daneel Date: Tue, 3 Mar 2026 12:48:39 +0100 Subject: [PATCH] patches: remove accidental temp script --- patches/fix_0008.py | 50 --------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 patches/fix_0008.py diff --git a/patches/fix_0008.py b/patches/fix_0008.py deleted file mode 100644 index 517ed51..0000000 --- a/patches/fix_0008.py +++ /dev/null @@ -1,50 +0,0 @@ -import sys - -with open('0008-ns-announce-child-frame-completion-candidates-for-Vo.patch', 'r') as f: - lines = f.readlines() - -# Find and fix the problematic hunk -new_lines = [] -i = 0 -while i < len(lines): - line = lines[i] - - # Skip lines 555-562 (0-indexed: 554-561) - the "If Emacs moved" DELETE block - if i == 554: - # Skip 8 lines (555-562) - i += 8 - continue - - # Skip lines 568-575 (0-indexed: 567-574) after adjustment (now 559-566) - # After removing 8 lines, line 568 is now 560 in 0-indexed terms: 567-8=559 - if i == 559: - # Skip 8 lines (568-575 became 560-567) - i += 8 - continue - - # Change context lines to ADD lines - # Line 566 (0-indexed 565, after adjustments 565-8=557) - if i == 557: - # Change the context line to ADD - if line.startswith(' '): - line = '+' + line[1:] - # Line 567 (0-indexed 566, after adjustments 558) - if i == 558: - if line.startswith(' '): - line = '+' + line[1:] - # Line 581 (0-indexed 580, after adjustments: 580-16=564) - if i == 564: - if line.startswith(' '): - line = '+' + line[1:] - # Line 582 (0-indexed 581, after adjustments: 565) - if i == 565: - if line.startswith(' '): - line = '+' + line[1:] - - new_lines.append(line) - i += 1 - -with open('0008-ns-announce-child-frame-completion-candidates-for-Vo.patch', 'w') as f: - f.writelines(new_lines) - -print("Done")