aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; * src/androidterm.c (android_term_init): Typo.Po Lu2024-06-131-1/+2
|
* ; * src/w32proc.c (sys_kill): Handle negative PID when sig == 0.Eli Zaretskii2024-06-131-4/+29
|
* Fix removal of file locks on MS-Windows 9XEli Zaretskii2024-06-133-1/+17
| | | | | | | | | | | A new Windows-specific function for validating process ID is introduced that does TRT with possibly negative PID values returned by 'getpid' on Windows 9X and also with values larger than INT_MAX, since PID on Windows is actually an unsigned 32-bit value. * src/w32proc.c (w32_valid_process_id): New function. * src/w32common.h (VALID_PROCESS_ID): Define for WINDOWSNT. * src/filelock.c [WINDOWSNT]: Include w32common.h. (Bug#71477)
* Correctly define `select' binding on AndroidPo Lu2024-06-131-2/+13
| | | | | | | | | * lisp/term/android-win.el (input-decode-map): Cease binding select in the initial frame's input-decode-map. * src/androidterm.c (android_term_init): Binding select in the freshly created kboard. (syms_of_androidterm) <Qselect, Qreturn>: New symbols.
* Start of a fix for bug#71477Paul Eggert2024-06-121-5/+19
| | | | | | | * src/filelock.c (integer_prefixed): New static function. (VALID_PROCESS_ID): New macro. (current_lock_owner): Use them to allow negative process IDs on some Microsoft platforms.
* Restore functionality on Android 2.2Po Lu2024-06-123-44/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/Makefile.in (install_temp): Do not compress directory-tree and generate such files in a special format that stores file sizes. * lib-src/asset-directory-tool.c (struct directory_tree): New field st_size. (need_file_size): New variable. (main_1, main_2, main): Write file sizes before sibling offsets if `--api-8' is specified. * src/android-asset.h (struct android_asset_manager): New field open. (struct android_asset): New field name. (AAssetManager_fromJava): Load AssetManager#open. (AAssetManager_open): If a directory tree has already been loaded, search for a matching asset and load its size thence, to avoid the requirement of an AssetFileDescriptor. (AAsset_close): Don't assume asset->fd exists. Release asset->name. (AAsset_getLength): Likewise. (android_asset_create_stream): If asset->name exists, call AssetManager#open, in order to open compressed files. * src/androidvfs.c (OLD_ANDROID_ASSETS): Define to 1 on API 8. (android_extract_long, android_scan_directory_tree): Mark arguments as const. Adjust offsets when OLD_ANDROID_ASSETS. (android_is_directory, android_init_assets, android_afs_readdir): Likewise. * src/lread.c (lread_fstat): Define to sys_fstat, not fstat.
* read_and_insert_process_output: Insert before markersDmitry Gutov2024-06-113-2/+7
| | | | | | | | | | * src/insdel.c (adjust_markers_for_insert): Make non-static. * src/lisp.h: Add declaration for it. * src/process.c (read_and_insert_process_output): Use it here. And also call insert_1_both with BEFORE_MARKERS=t, for compatibility with internal-default-process-filter (bug#66020).
* ; * src/emacs.c (Fkill_emacs): Doc fix.Eli Zaretskii2024-06-111-1/+2
|
* Enable support for color fonts in recent releases of XftPo Lu2024-06-111-5/+22
| | | | | | | | * etc/PROBLEMS (Some fonts are detected..): Document that Xft 2.3.6 should have resolved this issue. * src/ftfont.c (ftfont_spec_pattern, ftfont_list): Disable inhibition of color fonts on Xft 2.3.6 and subsequent versions.
* ; Revert "Provide for negative PIDs on MS Windows"Eli Zaretskii2024-06-111-23/+8
| | | | | | This reverts commit 9e96fbfd855bf0acc005b2b0973c2a9aef7cdcd2. Please don't install any changes in this area without discussion. Bug#71477.
* ; Revert "* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly."Eli Zaretskii2024-06-111-1/+1
| | | | | This reverts commit f33806dd6624e874d5cff3cd02ab370f518c0629. Please don't install changes in this area without discussion.
* ; * src/process.c (read_and_dispose_of_process_output): Fix style.Eli Zaretskii2024-06-111-4/+3
|
* fast-read-process-output: Make saferDmitry Gutov2024-06-111-15/+20
| | | | | | | | | * src/process.c (read_process_output): Move the call to 'read_and_insert_process_output' from here. (read_and_dispose_of_process_output): To here (bug#66020). So that any Lisp code invoked through modification hook from the former function also benefit from safety guards like running_asynch_code, saved match data, inhibit_quot, etc.
* read_process_output_set_last_coding_system: Extract, reuseDmitry Gutov2024-06-111-39/+45
| | | | | | | | * src/process.c (read_process_output_set_last_coding_system): New function, extracted from read_and_dispose_of_process_output. (read_and_dispose_of_process_output): Update accordingly. (read_and_insert_process_output): Use it here instead of just transferring carryover (bug#66020, also mentioned in bug#71452).
* * src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly.Po Lu2024-06-111-1/+1
|
* Provide for negative PIDs on MS WindowsPo Lu2024-06-111-8/+23
| | | | | | | | * src/filelock.c (pid_t, getpid_for_lock, pidintmax, EPRIdMAX): New macros; define to unsigned long or corresponding values if WINDOWSNT. (lock_file_1, current_lock_owner): Replace intmax_t, getpid, pid_t and the like with the aforementioned macros. (bug#71477)
* read_and_insert_process_output: Call 'prepare_to_modify_buffer' firstDmitry Gutov2024-06-111-0/+2
| | | | | * src/process.c (read_and_insert_process_output): Call 'prepare_to_modify_buffer' before any insertions (bug#71452).
* ; * src/process.c (syms_of_process): Fix ommission.Po Lu2024-06-111-1/+1
|
* Avoid rare assertion violations when deleting a frameEli Zaretskii2024-06-101-0/+1
| | | | | * src/dispnew.c (adjust_frame_glyphs): Allow nrows = 0 when deleting a frame. (Bug#71475)
* ; * src/treesit.c (treesit_check_node): Don't use non-ASCII comments.Eli Zaretskii2024-06-101-1/+1
|
* Allow to print treesit objects from GDBEli Zaretskii2024-06-101-0/+39
| | | | | * src/.gdbinit (xtsparser, xtsnode, xtsquery): New functions. (xpr): Call them for treesit objects.
* * src/print.c (print_vectorlike_unreadable): Fix merge accident.Mattias EngdegÄrd2024-06-101-1/+1
|
* ; * src/process.c (read_process_output): Check in missing hunk.Po Lu2024-06-101-1/+1
|
* Rename new variable in process.cPo Lu2024-06-101-2/+2
| | | | | * src/process.c (syms_of_process): Rename read_process_output_fast to fast_read_process_output.
* Re-enable TTY glyph production for batch mode frames on AndroidPo Lu2024-06-101-11/+8
| | | | | | | | * lisp/org/ob-core.el (org-babel-execute-src-block): Revert previous change. * src/term.c (tty_append_glyph, produce_glyphs) [HAVE_ANDROID]: Re-enable suppressed code.
* Unbreak build with Clang 15 on macOS 14.5Stefan Kangas2024-06-091-2/+2
| | | | | * src/process.c (read_process_output): Use EQ for comparison. (syms_of_process): Properly set a DEFVAR_BOOL to 'true' instead of 'Qt'.
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2024-06-093-16/+79
|\
| * Enable accessing tool bar with the touch screenPo Lu2024-06-093-16/+79
| | | | | | | | | | | | | | | | | | * src/w32fns.c (w32_createwindow): Reset tool_bar_dwID. * src/w32term.c (w32_read_socket): Reserve touch event sequences that fall on the tool bar for future tool-bar manipulation. * src/w32term.h (struct w32_output) <tool_bar_dwID>: New field.
* | Fix MS-Windows build broken by recent touch-screen changesEli Zaretskii2024-06-091-28/+30
|/ | | | | | | | | * src/w32term.c (TOUCHEVENTF_DOWN, TOUCHEVENTF_UP): (struct _TOUCHINPUT): Move before first use. (TOUCHEVENTF_MOVE, TOUCHEVENTMASKF_CONTACTAREA) (TOUCHEVENTMASKF_EXTRAINFO, TOUCHEVENTMASKF_TIMEFROMSYSTEM): Ifdef away unused macros. (w32_read_socket): Fix typo.
* Amend last changePo Lu2024-06-092-24/+113
| | | | | | | | | | | | | | | | * lisp/loadup.el: Load touch-screen.el on MS-Windows. * src/w32fns.c (Emacs_GESTURECONFIG): New structure. (SetGestureConfig_fn): New variable. (w32_createwindow): Disable emulated mouse and gesture events for the frame's window. (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN, WM_LBUTTONUP> <WM_RBUTTONUP>: Ignore mouse events which are marked as emulated pointer events. (globals_of_w32fns): Load SetGestureConfig from user32.dll. * src/w32term.c (w32_read_socket): Correct utilization of GetTouchInputInfo, coordinate spaces, &c.
* Report touch events on MS-WindowsPo Lu2024-06-093-1/+217
| | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Announce change. * src/w32fns.c (RegisterTouchWindow_fn): New function. (w32_createwindow): Assign a base value for touch event identifiers to the frame, and register for touch input. (w32_wnd_proc): Forward WM_TOUCH/WM_TOUCHMOVE messages to the main thread. (globals_of_w32fns): Load RegisterTouchWindow from user32.dll. * src/w32term.c (w32_read_socket) <WM_TOUCH>: Detect WM_TOUCH events, compare and record their touch points with and into the frame's record of their prior state, and report the same to Lisp. (pfnCloseTouchInputHandle, pfnGetTouchInputInfo): New variables. (w32_initialize): Load the above functions from user32.dll. * src/w32term.h (MAX_TOUCH_POINTS): New definition. (struct w32_output) <touch_ids, touch_x, touch_y, touch_base>: New fields.
* Fix a recent change in reading from sub-processesEli Zaretskii2024-06-091-2/+2
| | | | | * src/process.c (make_process): Move to here... (create_process): ...from here.
* ; Fix coding style of last changePo Lu2024-06-091-13/+13
| | | | | * src/process.c (read_and_insert_process_output) (read_and_dispose_of_process_output): Fix coding style.
* read-process-output-max: Increase the default valueDmitry Gutov2024-06-091-1/+1
| | | | | * src/process.c (read-process-output-max): Increase the default value to 65536 (bug#66020).
* Remember the value of read_process_output_max when process is createdDmitry Gutov2024-06-092-6/+7
| | | | | | | | * src/process.h (Lisp_Process): Add field readmax. * src/process.c (read_process_output): Use it. (create_process): Save the value of read_process_output_max to it when the process is created (bug#66020). Use for pipe size.
* Go around calling the default process filter (reducing GC churn)Dmitry Gutov2024-06-091-55/+143
| | | | | | | | | | | | | | | Instead of allocating strings and passing them to the filter, pass the char buffer to a C function implementing the same logic. * src/process.c (read_process_output_before_insert) (read_process_output_after_insert): New functions, extracted from internal-default-process-filter. (Finternal_default_process_filter): Use them. (read_and_insert_process_output): New function. Use them. (read_process_output_fast): New variable. (read_process_output): Use it to choose how to insert (bug#66020). * etc/NEWS: Mention the change.
* Merge from origin/emacs-29Eli Zaretskii2024-06-083-0/+26
|\ | | | | | | | | | | 53e9caa23ef ; * doc/emacs/help.texi (Help, Apropos): Improve text and... 00360258cad Fix treesit-parse-string crash (bug#71012) 20af58d3a13 Check for buffer liveness when accessing tree-sitter node...
| * Check for buffer liveness when accessing tree-sitter node (bug#71012)Yuan Fu2024-06-013-0/+26
| | | | | | | | | | | | | | | | | | * src/treesit.h (treesit_node_buffer_live_p): Declare function. * src/print.c (print_vectorlike): Print node without position if buffer is killed. * src/treesit.c (treesit_node_buffer_live_p): New function. (treesit_check_node): Add buffer liveness check. (syms_of_treesit): New error treesit-node-buffer-killed.
* | ; Fix typosStefan Kangas2024-06-071-1/+1
| |
* | Avoid crashes in half-baked emacsclient framesEli Zaretskii2024-06-071-3/+6
| | | | | | | | | | | | | | | | If a client connection comes in while we handle a Lisp error, the new frame creation could signal an error before the new frame is ready for display. * src/xdisp.c (redisplay_internal): Don't redisplay windows on frames that were not completely set up. (Bug#71224)
* | Unbreak the Cygw32 buildEli Zaretskii2024-06-071-0/+4
| | | | | | | | | | | | | | It was broken by latest changes to w32image.c. * src/emacs.c (main): Call 'syms_of_w32image' and 'globals_of_w32image' only if native image APIs are enabled. (Bug#71412)
* | ; * src/dispnew.c (update_frame_line): Fix thinko (bug#71289).Eli Zaretskii2024-06-071-1/+1
| |
* | Prevent another abort in 'cmcheckmagic'Eli Zaretskii2024-06-061-0/+5
| | | | | | | | | | * src/dispnew.c (update_frame_line): Prevent rare aborts when TTY frame is resized. (Bug#71289)
* | ; Fix last change in sqlite.cEli Zaretskii2024-06-061-5/+5
| | | | | | | | | | | | * etc/NEWS: * doc/lispref/text.texi (Database): * src/sqlite.c (Fsqlite_execute_batch): Fix last change (Bug#70145).
* | Add 'sqlite-execute-batch' commandJavier Olaechea2024-06-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | This command is similar to 'sqlite-execute' except that it executes multiple statements in exchange for not accepting any arguments. (Bug#70145) * src/sqlite.c (Fsqlite_execute_batch): New function. * test/src/sqlite-tests.el (sqlite-multiple-statements): Add smoke test for 'sqlite-execute-batch'. * etc/NEWS: Mention new command 'sqlite-execute-batch'. * doc/lispref/text.texi (Database): Document the new command.
* | Attempt to fix rare assertion violations in 'mark_terminals'Eli Zaretskii2024-06-061-0/+5
| | | | | | | | | | * src/terminal.c (delete_terminal): Block input while we modify the frame list and 'terminal_list'. (Bug#71289)
* | ; Fix last change.Eli Zaretskii2024-06-051-0/+1
| |
* | Another attempt to prevent crashes when resizing TTY framesEli Zaretskii2024-06-053-9/+9
| | | | | | | | | | | | | | | | | | * src/dispnew.c (frame_size_change_delayed): Accept frame as argument, and check the 'new_size_p' flag of the frame in addition to 'delayed_size_change'. Callers changed. (window_to_frame_vpos, build_frame_matrix_from_leaf_window): Call 'frame_size_change_delayed' instead of looking at delayed_size_change alone. (Bug#71289)
* | Fix Mac OS buildPo Lu2024-06-051-0/+10
| | | | | | | | | | * src/nsfns.m (ns_make_frame_key_window): Restore, but only when NS_IMPL_COCOA.
* | Fix the GNUstep buildPo Lu2024-06-053-8/+2
| | | | | | | | | | | | | | | | | | | | | | * src/Makefile.in (NON_OBJC_CFLAGS): Add -Wflex-array-member-not-at-end. * src/lisp.h (flush_stack_call_func): "asm" is unavailable in Objective C. * src/nsfns.m (ns_make_frame_key_window): Delete unused function.