aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; * src/keyboard.c (read_char): Typo in comment.Po Lu2024-06-211-1/+1
|
* Fix execution of tool-bar commands read within minibuffer-error-handlerPo Lu2024-06-211-2/+17
| | | | | | * src/keyboard.c (read_char): Arrange that the original event be recorded when a posn is promoted to a prefix key and an END_TIME is suppressing additions to this_command_keys.
* Fix misspelled function name in comp.cStefan Kangas2024-06-201-10/+10
| | | | | * src/comp.c (retrieve_block): Rename from 'retrive_block'. Update all callers.
* Fix NS buildPo Lu2024-06-201-8/+2
| | | | | * src/nsfns.m (Fx_create_frame, ns_create_tip_frame): Remove references to deleted variable. (bug#71638)
* Fix last changeEli Zaretskii2024-06-201-5/+8
| | | | | | * src/xdisp.c (handle_line_prefix): Set the 'align_visually_p' only after pushing the iterator. (pop_it): Reset the 'align_visually_p' flag. (Bug#71605)
* Fix use of ':align-to' in 'wrap-prefix'Eli Zaretskii2024-06-202-1/+13
| | | | | | | | | | | | * src/dispextern.h (struct it): New flag 'align_visually_p'. * src/xdisp.c (handle_line_prefix): Set the 'align_visually_p' flag for 'wrap-prefix'. (produce_stretch_glyph): If 'align_visually_p' flag is set, count the :align-to offset from the beginning of the screen line, not from BOL. (Bug#71605) * doc/lispref/display.texi (Truncation, Specified Space): Document the special handling of ':align-to' in 'wrap-prefix'.
* * src/frame.c (gui_set_font): Reference image cache after reassignment.Po Lu2024-06-201-0/+1
|
* ; * src/frame.c (make_frame): Typo.Po Lu2024-06-201-1/+1
|
* Correctly cache images when frames vary in their font metricsPo Lu2024-06-2013-160/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (mark_frame): Mark this frame's image cache, if it exist. (mark_terminals): Cease marking T->image_cache. * src/androidfns.c (unwind_create_frame, Fx_create_frame) (android_create_tip_frame): * src/haikufns.c (unwind_create_frame, haiku_create_frame) (haiku_create_tip_frame): * src/nsfns.m (unwind_create_frame): * src/pgtkfns.c (unwind_create_frame, Fx_create_frame) (x_create_tip_frame): * src/xfns.c (unwind_create_frame, Fx_create_frame) (x_create_tip_frame): * src/w32fns.c (unwind_create_frame, Fx_create_frame) (w32_create_tip_frame): Remove adjustments of the frame image cache's reference count rendered redundant by the assignment of image caches to individual frames rather than terminals. * src/dispextern.h (struct image_cache) <scaling_col_width>: New field. * src/frame.c (gui_set_font): In lieu of clearing F's image cache unconditionally, establish whether the column width as considered by compute_image_size has changed, and if so, adjust or reassign the frame's image cache. (make_frame): Clear F->image_cache. * src/frame.h (struct frame) <image_cache>: New field. (FRAME_IMAGE_CACHE): Return F->image_cache. * src/image.c (make_image_cache): Clear C->scaling_col_width. (cache_image): Adjust to new means of assigning image caches to frames. * src/termhooks.h (struct terminal) <image_cache>: Delete field. * src/xfaces.c (init_frame_faces): Do image cache assignment with all new frames.
* Avoid compilation warningsEli Zaretskii2024-06-191-4/+4
| | | | | * src/xwidget.c (Fxwidget_perform_lispy_event): Avoid compiler warnings. (Bug#71638)
* Don't follow symlinks in returning directory attributes of /Po Lu2024-06-191-19/+22
| | | | | | | | | | * src/androidvfs.c (struct android_vops) <stat>: New argument for flags. (android_unix_stat): Implement in terms of fstatat, not stat, and provide flags to the same. (android_afs_stat, android_content_stat, android_authority_stat) (android_saf_root_stat, android_saf_tree_stat) (android_saf_new_stat, android_fstatat): Adjust to match.
* Avoid races between the tooltip and compositor on X and AndroidPo Lu2024-06-192-0/+17
| | | | | | | | | | * java/org/gnu/emacs/EmacsView.java (onLayout): Don't send exposure events when the window is still to be attached. * src/androidfns.c (Fx_show_tip): * src/xfns.c (Fx_show_tip): Block async input around initial frame update.
* Correct resolution of non-virtual directory names on AndroidPo Lu2024-06-181-30/+50
| | | | | | | | | * src/androidvfs.c (android_vfs_canonicalize_name): Correct return value in cases of underflowing the directory stack. (android_unix_name): Reset vnode operations vector of copied vnodes to their standard value, and exclude virtual directories from subdirectories of the root directory's parent directory. (android_root_name): Adjust to match.
* Reinforce bitmap reconfiguration on AndroidPo Lu2024-06-171-5/+5
| | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsView.java (EmacsView) <unswapped>: New field in which to record whether the back buffer has received contents beyond those present at the last buffer swap. <dimensionsLock>: Delete field. (onAttachedToWindow, onLayout, handleDirtyBitmap) (prepareForLayout): Rather, synchronize window dimensions with the view. (getCanvas, getBitmap): Do not reconfigure the back buffer bitmap if such outstanding data exists. (postSwapBuffers): New function. (swapBuffers): If such outstanding data exists and the back bufferis pending reconfiguration, recreate the back buffer and report exposure. * src/androidterm.c (handle_one_android_event): Fix indentation.
* ; Fix typosStefan Kangas2024-06-163-3/+3
|
* Fix clipboard request on macOS for yank-mediaRobert Pluim2024-06-161-0/+8
| | | | | | | | | | | | 'yank-media' makes a request with 'CLIPBOARD and 'TARGETS, which on other platforms returns the type(s) of the current selection, but on macOS returned the selection itself. Make it return the types instead. This fixes (Bug#71377). * src/nsselect.m (ns_get_local_selection): Return nil when called with QCLIPBOARD and QTARGETS, so that 'ns_get_foreign_selection' is called to return the type(s) of the selection.
* Minor adjustments to battery.el on AndroidPo Lu2024-06-161-2/+2
| | | | | | | | | | | | | * src/android.c (android_query_battery): * java/org/gnu/emacs/EmacsService.java (queryBattery19) (queryBattery): Reorder items in value for consistency with Fandroid_query_battery. * lisp/battery.el (battery-status-function): Select battery-android only when android-query-battery is present. (battery-android): Return temperature and correct values of power source constants.
* Fix electric-pair-mode when characters are bound to non-ASCII keysEli Zaretskii2024-06-151-8/+11
| | | | | * src/cmds.c (Fself_insert_command): Record the argument C in 'last-command-event'. (Bug#71337)
* Send proper substitution character to Android IMEsPo Lu2024-06-151-3/+3
| | | | | | * src/androidterm.c (android_text_to_string): Substitute REPLACEMENT CHARACTER for NULL in converting characters not representable without surrogate pairs to UTF-16.
* ; * src/insdel.c (insert_from_gap_1): Update commentary.Eli Zaretskii2024-06-141-1/+1
|
* ; Update comments in a recent commitEli Zaretskii2024-06-143-5/+6
| | | | | | * src/process.c (read_and_insert_process_output): * src/insdel.c (insert_from_gap): * src/coding.h (struct coding_system): Improve comments (bug#71525).
* "Insert before markers" in read_and_insert_process_output properlyDmitry Gutov2024-06-146-14/+28
| | | | | | | | | | | | | | | | | | | | | | * src/coding.c (setup_coding_system): Initialize it. (produce_chars, encode_coding, decode_coding_gap): Obey it in insert_from_gap calls. (encode_string_utf_8, decode_string_utf_8): Update the other calls to insert_from_gap to have one new argument (false). * src/coding.h: New field insert_before_markers. * src/decompress.c (Fzlib_decompress_region): Here too. * src/insdel.c (insert_from_gap): Accept new argument BEFORE_MARKERS (bug#71525) and pass it through to adjust_markers_for_insert. * src/lisp.h: Update prototype. * src/process.c (read_and_insert_process_output): Set process_coding->insert_before_markers instead of calling adjust_markers_for_insert.
* Restore file's original name after a failed rename_replace on Windows 9XPo Lu2024-06-141-10/+29
| | | | | | * src/w32.c (sys_rename_replace): If the rename operation fails and an intermediate name was generated and applied to the input file, restore the original.
* Enable compiling Emacs with implicit Make rules suppressedPo Lu2024-06-141-1/+1
| | | | | | | | | | | * lib/Makefile.in (.SUFFIXES): * lwlib/Makefile.in (.SUFFIXES): * oldXMenu/Makefile.in (.SUFFIXES): * src/Makefile.in (.SUFFIXES): Register .c as a default suffix, for this list is emptied when `-r' is provided to Make.
* ; * 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'.