aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Offer to grant storage permissions if absentPo Lu2023-11-183-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsService.java (externalStorageAvailable) (requestStorageAccess23, requestStorageAccess30) (requestStorageAccess): New functions. * lisp/startup.el (fancy-startup-tail, normal-splash-screen): Call android-win functions for inserting the new storage permission notice. * lisp/term/android-win.el (android-display-storage-permission-popup) (android-after-splash-screen): New functions. * src/android.c (android_init_emacs_service): Link to new Java functions. (android_external_storage_available_p) (android_request_storage_access): New functions. * src/android.h: Update prototypes. * src/androidfns.c (Fandroid_external_storage_available_p) (Fandroid_request_storage_access): New functions. (syms_of_androidfns): Register new subrs.
* | Fix scrolling when continuation line starts with a display stringEli Zaretskii2023-11-161-4/+22
| | | | | | | | | | * src/xdisp.c (start_display): Compute continuation_lines_width for starting display in strings and images as well. (Bug#67201)
* | Register ``pinch to zoom'' touch screen gesturesPo Lu2023-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/input.texi (Touchscreens): Address pinch gestures. * doc/lispref/commands.texi (Touchscreen Events): Address touch screen pinch events and the process by which they are produced. * java/org/gnu/emacs/EmacsWindow.java (figureChange) <ACTION_POINTER_DOWN>: Supply pointer index to getX and getY, correcting a mistake where the first touch point's coordinate was saved here in lieu of the pointer that was pressed's. * lisp/touch-screen.el (touch-screen-current-tool): Revise doc string. (touch-screen-aux-tool): New variable. (touch-screen-scroll-point-to-y, touch-screen-pinch): New functions. (global-map): Bind [touchscreen-pinch] to touch-screen-pinch. (touch-screen-handle-point-update): Revise doc string; set new tenth field of t-s-c-t to POINT relative to its window, without regard to whether an event has been sent. (touch-screen-distance, touch-screen-centrum): New functions. (touch-screen-handle-aux-point-update): New function; generate and send touchscreen-pinch if need be. (touch-screen-handle-point-up): If an ancillary tool exists, transfer the information there into touch-screen-current-tool and clear t-s-a-t. (touch-screen-handle-touch): Call t-s-a-p-u as is proper; set t-s-a-t if a touchscreen-down event arrives and t-s-c-t is set. * src/androidterm.c (handle_one_android_event): Properly save the event's X and Y when a new touch point is registered.
* | Adjust dump file location under AndroidPo Lu2023-11-122-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsApplication.java (EmacsApplication) <apkFileName>: New field. (getApkFile): Move from EmacsService.java. (findDumpFile): If the dump file is older than the APK, delete it irrespective of whether the checksums agree. (onCreate): Initialize apkFileName. * java/org/gnu/emacs/EmacsService.java (onCreate): Use EmacsApplication.apkFileName. * src/android.c (android_on_low_memory): Correct arguments to Fclear_image_cache. * src/image.c (Fclear_image_cache): Check that animation_cache is always a cons.
* | Merge from origin/emacs-29Eli Zaretskii2023-11-111-0/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | ce0ebb91f25 Improve documentation of read syntax and printed represen... 81f84b00a5d ; * doc/lispref/modes.texi (Other Font Lock Variables): A... 434592b0746 ; * lisp/dired.el (dired-use-ls-dired): Doc fix (bug#67053). fe000236cf2 Improve documentation of signaling errors in batch mode 103ca678ac1 Fix treesit-simple-indent-presets docstring (bug#67007) b7871cefe7b Prevent an infinite loop in todo-mode (bug#66994) fa8cc4c9ee2 Fix cmake-ts-mode indentation (Bug#66845) 5bdc61bc0ef Update to Org 9.6.11 18e2de1bec9 ; * lisp/bindings.el (right-word, left-word): Doc fix. 4f0fc3bfda3 ; Document core input events problems with XInput2
| * Improve documentation of signaling errors in batch modeEli Zaretskii2023-11-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/control.texi (Signaling Errors) (Processing of Errors): * doc/lispref/os.texi (Batch Mode): * doc/lispref/debugging.texi (Invoking the Debugger): * lisp/emacs-lisp/debug.el (debug): * src/eval.c (Fsignal): * lisp/subr.el (error): Document more prominently that signaling an unhandled error in batch mode kills Emacs. Better documentation of backtrace in batch mode.
* | Use BASE_EQ instead of EQ for some uninterned symbolsMattias Engdegård2023-11-105-7/+7
| | | | | | | | | | | | | | | | | | | | | | * src/editfns.c (labeled_restrictions_pop, Fwiden): * src/eval.c (lexbound_p, Fbacktrace__locals): * src/fileio.c (Finsert_file_contents): * src/fns.c (Fyes_or_no_p): * src/keyboard.c (command_loop_1): Use BASE_EQ for comparing with Qoutermost_restriction, Qinternal_interpreter_environment and Qunbound as uninterned symbols won't be EQ to a symbol-with-pos.
* | Clear image caches in reaction to system VM warningsPo Lu2023-11-101-0/+20
| | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsNative.java (onLowMemory): * java/org/gnu/emacs/EmacsService.java (onLowMemory): New function. * src/android.c (android_on_low_memory, onLowMemory): New functions called when a VM caution is registered. Clear the image cache and run garbage collection.
* | comp: Add comp-common.elAndrea Corallo2023-11-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-common.el: New file. (comp-common): New group. (native-comp-verbose, native-comp-never-optimize-functions) (native-comp-async-env-modifier-form, comp-limple-calls) (comp-limple-sets, comp-limple-assignments) (comp-limple-branches, comp-limple-ops) (comp-limple-lock-keywords, comp-log-buffer-name, comp-log) (native-comp-limple-mode, comp-log-to-buffer) (comp-ensure-native-compiler, comp-trampoline-filename) (comp-eln-load-path-eff): Move here * lisp/emacs-lisp/comp-run.el (comp-common): Require. * lisp/emacs-lisp/comp.el (comp-common): Require. * admin/MAINTAINERS: Add comp-common.el * lisp/Makefile.in (COMPILE_FIRST): Likewise. * src/Makefile.in (elnlisp): Likewise.
* | comp: split code in comp-run.elAndrea Corallo2023-11-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-run.el : New file. (comp-run) (native-comp-jit-compilation-deny-list) (native-comp-async-jobs-number) (native-comp-async-report-warnings-errors) (native-comp-always-compile) (native-comp-async-cu-done-functions) (native-comp-async-all-done-hook) (native-comp-async-env-modifier-form) (native-comp-async-query-on-exit, native-comp-verbose) (comp-log-buffer-name, comp-async-buffer-name, comp-no-spawn) (comp-async-compilations, native-comp-limple-mode) (comp-ensure-native-compiler, native-compile-async-skip-p) (comp-files-queue, comp-async-compilations, comp-async-runnings) (comp-num-cpus, comp-effective-async-max-jobs) (comp-last-scanned-async-output) (comp-accept-and-process-async-output, comp-valid-source-re) (comp-run-async-workers, native--compile-async) (native-compile-async): Move these definitions here. * lisp/Makefile.in (COMPILE_FIRST): Update. * src/Makefile.in (elnlisp): Likewise. * admin/MAINTAINERS: Likewise.
* | Guarantee files are auto-saved when Emacs is terminated by AndroidPo Lu2023-11-091-0/+19
| | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsNative.java (shutDownEmacs): * java/org/gnu/emacs/EmacsService.java (onDestroy): New function. When invoked, call shut_down_emacs and await its completion. * src/android.c (android_shut_down_emacs, shutDownEmacs): New functions.
* | Implement more Android text editing controlsPo Lu2023-11-052-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/term/android-win.el (android-deactivate-mark-command): New command. (select-all, start-selecting-text, stop-selecting-text): Arrange for commands manipulating the region to be executed when these keys are registered. * src/android.c (android_get_keysym_name): Return the keysym name of each of the new keysyms introduced. * src/androidterm.c (performContextMenuAction): Save special keysyms into key events for the selectAll, startSelectingText and stopSelectingText actions.
* | Remove unnecessary assertion added 2 days agoEli Zaretskii2023-11-041-1/+0
| | | | | | | | | | | | | | | | * src/xdisp.c (get_glyph_face_and_encoding): Remove unnecessary assertion. It triggers, for no good reason, when running the recipe of bug#66922 and typing C-p in the *Warnings* buffer after the recipe finishes, because the glyph passed to this function is a STRETCH_GLYPH, not a CHAR_GLYPH.
* | Round underline position and thicknessPo Lu2023-11-031-2/+2
| | | | | | | | | | | | * src/sfntfont.c (sfntfont_open): Round underline thickness instead of truncating it, as is proper according to several inquiries.
* | Avoid moving point while analyzing text conversionPo Lu2023-11-031-7/+13
| | | | | | | | | | | | | | | | | | | | * lisp/simple.el (analyze-text-conversion): If neither calling p-s-i-h nor calling p-t-c-h yields a change to point, return it to its location before analyze-text-conversion was called. * src/keyboard.c (kbd_buffer_get_event): See that text conversion events are uniformly delivered prior to keyboard events arriving in unison.
* | Properly compute overhangs for overstruck textPo Lu2023-11-021-16/+71
| | | | | | | | | | | | | | | | * src/xdisp.c (get_glyph_face_and_encoding): Account for non-character glyphs by not attempting to translate them to characters. (gui_get_glyph_overhangs, gui_produce_glyphs): If the face is overstruck, increase the right side bearing by 1 pixel.
* | Non-recursive marking of buffer-local variablesMattias Engdegård2023-11-011-15/+11
| | | | | | | | | | * src/alloc.c (mark_localized_symbol): Inline into... (process_mark_stack): ...this code and do don't use recursion.
* | Prevent errors when generating events above menu bar windowsPo Lu2023-11-011-3/+4
| | | | | | | | | | | | * src/keyboard.c (make_lispy_position): Pass false to w_f_c, for the subsequent code is not prepared to encounter menu bar windows.
* | Don't round underline metricsPo Lu2023-10-311-4/+4
| | | | | | | | | | * src/sfntfont.c (sfntfont_open): Don't round underline position or thickness, much as the other font drivers don't either.
* | Extract underline positions from PostScript metrics tablesPo Lu2023-10-311-7/+30
| | | | | | | | | | | | | | | | | | * src/sfntfont.c (struct sfnt_font_desc): Introduce fields where the font's underline position is recorded. (sfnt_enum_font_1): Compute the underline position with information in the post table whenever it exists. (sfntfont_open): Scale the recorded position and save it into the font object.
* | Ascertain font spacing from post table if presentPo Lu2023-10-303-10/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/sfnt.c (sfnt_table_names): Introduce name of post table. (sfnt_read_post_table): New function. (main): New tests. * src/sfnt.h (struct sfnt_post_table): New struct. * src/sfntfont.c (sfnt_enum_font_1): Read post table, and set spacing from its is_fixed_pitch value. (sfntfont_list_1): Compare spacing between both fonts if supplied in the font spec. (sfntfont_open): Set FONT_FILE_INDEX as well as FONT_FULLNAME_INDEX.
* | Add 'case-symbols-as-words' to configure symbol case behaviorSpencer Baugh2023-10-292-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some programming languages and styles, a symbol (or every symbol in a sequence of symbols) might be capitalized, but the individual words making up the symbol should never be capitalized. For example, in OCaml, type names Look_like_this and variable names look_like_this, but it is basically never correct for something to Look_Like_This. And one might have "aa_bb cc_dd ee_ff" or "Aa_bb Cc_dd Ee_ff", but never "Aa_Bb Cc_Dd Ee_Ff". To support this, the new variable 'case-symbols-as-words' causes symbol constituents to be treated as part of words only for case operations. * src/casefiddle.c (case_ch_is_word): New function. (case_character_impl, case_character): Use 'case_ch_is_word'. (syms_of_casefiddle): Define 'case-symbols-as-words'. * src/search.c (Freplace_match): Use 'case-symbols-as-words' when calculating case pattern. * test/src/casefiddle-tests.el (casefiddle-tests--check-syms) (casefiddle-case-symbols-as-words): Test 'case-symbols-as-words'. * etc/NEWS: Announce 'case-symbols-as-words'. * doc/lispref/strings.texi (Case Conversion): Document 'case-symbols-as-words'. (Bug#66614)
* | Set non-text mouse cursor on menu barManuel Giraud2023-10-291-0/+10
| | | | | | | | | | * src/xdisp.c (note_mouse_highlight): Set non-text mouse cursor on menu bar.
* | Avert a crash and file descriptor leak in yank-mediaPo Lu2023-10-291-0/+8
| | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsNative.java (close): New declaration. * java/org/gnu/emacs/EmacsSdk11Clipboard.java (getClipboardData): Catch SecurityException and guarantee file descriptors are closed even if exceptions arise. * src/android.c (dup): Export another function.
* | Merge from origin/emacs-29Eli Zaretskii2023-10-281-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | aa253c533d2 ; Fix broken links to gmane.org cc3e436c822 Change news.gmane.org to news.gmane.io 297fe945c57 Fix minor defcustom issues in Gnus (Bug#66715) 3beb5f5e240 ; * doc/misc/gnus.texi: Fix unmatched quote in gnus doc. ... 85d08d5788e Minor connection-local variables fixes 79d8328ca4a Make Dired honor `insert-directory-program´ with globs 43127294e13 Fix typo in url-privacy-level :type 380f8574ef5 * lisp/vc/log-view.el (log-view-mode-menu): Quote derived...
| * ; Fix broken links to gmane.orgStefan Kangas2023-10-241-1/+1
| |
* | Support for menu bar in window_from_coordinatesManuel Giraud2023-10-2812-33/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/window.h: * src/window.c (window_from_coordinates): In the no toolkit build, add support for the menu bar window. Add a new 'menu_bar_p' argument so the function's signature has changed. All callers changed. * src/androidterm.c (handle_one_android_event): * src/haikuterm.c (haiku_read_socket): * src/keyboard.c (make_lispy_position): * src/nsterm.m ([EmacsView mouseDown:]): * src/pgtkterm.c (button_event): * src/w32term.c (w32_read_socket): * src/xdisp.c (note_mouse_highlight): * src/xterm.c (handle_one_xevent): Set menu_bar_p to true.
* | Minor adjustments to Android drag and drop and content URIsPo Lu2023-10-281-17/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsWindow.java (EmacsWindow) <dndXPosition, dndYPosition>: New fields initialized to -1. (onDragEvent): Remember the position of the previous event to avoid sending duplicates. * src/androidvfs.c (EMACS_PATH_MAX): New define. (android_saf_tree_rename, android_saf_tree_opendir) (android_name_file, android_fstatat, android_faccessat) (android_fchmodat, android_readlinkat): Use EMACS_PATH_MAX where SAF file names might be encountered.
* | ; Another fix for profiler.cEli Zaretskii2023-10-271-31/+34
| | | | | | | | | | * src/profiler.c: Reshuffle functions and declarations to compile also when PROFILER_CPU_SUPPORT is not defined. (Bug#66774)
* | Fix compilation error in profiler.cEli Zaretskii2023-10-271-3/+3
| | | | | | | | | | * src/profiler.c (memory): Declare outside of the PROFILER_CPU_SUPPORT conditional. (Bug#66774)
* | ; Fix style of error messages in pdumper.cEli Zaretskii2023-10-271-4/+4
| | | | | | | | | | | | * src/pdumper.c (dump_buffer, dump_do_dump_relocation) (dump_native_comp_unit): Make the style of error messages more consistent.
* | * src/pdumper.c (dump_buffer): Print message when aborting (bug#66743)Ihor Radchenko2023-10-271-2/+4
| | | | | | | | | | When the buffer contains overlays, it cannot be dumped. Print a clear message describing the reason, instead of just aborting.
* | Substitute eassert for assert throughout Android codePo Lu2023-10-274-31/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/android.c (android_init_emacs_service) (android_init_emacs_pixmap, android_init_graphics_point) (android_init_emacs_drawable, android_init_emacs_window) (android_init_emacs_cursor, android_destroy_handle) (android_create_window, android_init_android_rect_class) (android_init_emacs_gc_class, android_begin_query): * src/androidselect.c (android_init_emacs_clipboard) (android_init_emacs_desktop_notification): * src/androidterm.c (getExtractedText) (android_get_surrounding_text_internal): * src/androidvfs.c (android_vfs_init): Replace assert with eassert.
* | ; Fix spelling of my name in all ChangeLog filesUlrich Müller2023-10-252-7/+7
| |
* | Correct computation of intermediate axis coordinatesPo Lu2023-10-251-3/+3
| | | | | | | | | | | | | | * src/sfnt.c (sfnt_compute_tuple_scale, sfnt_vary_simple_glyph) (sfnt_vary_compound_glyph): Correct typos involving intermediate_end (or something of the like) being set to intermediate_start.
* | Make eln files re-dumpable (bug#45103)Andrea Corallo2023-10-242-1/+5
| | | | | | | | | | | | | | | | | | * lisp/loadup.el (load--bin-dest-dir, load--eln-dest-dir): New variable. (load--fixup-all-elns): New function. * src/pdumper.c (Fdump_emacs_portable): Update to call 'load--fixup-all-elns'. * src/print.c (print_vectorlike): Improve CU printing.
* | Improved `eval` documentationMattias Engdegård2023-10-231-3/+7
| | | | | | | | | | | | | | | | Prompted by Michael Heerdegen. * src/eval.c (Feval): * doc/lispref/eval.texi (Eval): Be more precise about the LEXICAL argument.
* | Correctly register Num Lock keys under HaikuPo Lu2023-10-231-3/+35
| | | | | | | | | | | | * src/haiku_support.cc (DispatchMessage): If B_NUM_LOCK is set, invert B_SHIFT_KEY; should it be subsequently set, omit mapping from raw_char.
* | ; * src/keyboard.c (save_line_number_display_width): Fix last change.Eli Zaretskii2023-10-221-1/+1
| |
* | Enumerate default UVS glyphsPo Lu2023-10-223-17/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/sfnt.c (sfnt_compare_unicode_value_range) (sfnt_is_character_default): New functions. (sfnt_test_uvs): Print and verify the default UVS table. * src/sfnt.h: Update prototypes. * src/sfntfont.c (sfntfont_get_variation_glyphs): Index the cmap with the default glyph, and insert it within VARIATIONS if character is present within a selector record's default UVS table.
* | ; Fix a compilation warningGerd Möllmann2023-10-211-0/+2
| |
* | Merge from origin/emacs-29Eli Zaretskii2023-10-211-2/+12
|\ \ | |/ | | | | | | | | ab9d6482e3b ; Update ChangeLog.4 and etc/AUTHORS. d9e1605122b Correctly register focus events concomitant with alpha ch... 194e219825c * doc/man/emacsclient.1: Add missing options.
| * Correctly register focus events concomitant with alpha changesPo Lu2023-10-171-2/+12
| | | | | | | | | | | | | | | | | | * src/xterm.c (x_frame_highlight, x_frame_unhighlight): Skip changing the frame alpha when the frame is not eligible for focus state-specific alpha values; otherwise, the alpha might be reset by the time a alpha change wrought by a focus change arrives, impeding handle_one_xevent from subsequently restoring the initial value. (bug#66398)
* | ; * src/keyboard.c (line_number_mode_hscroll): Fix last change.Eli Zaretskii2023-10-211-2/+3
| |
* | Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2023-10-211-15/+48
|\ \
| * | ; * src/sfnt.c: Refine doc of variation selectors and GX fonts.Po Lu2023-10-211-15/+48
| | |
* | | Fix mouse clicks on links under 'global-display-line-numbers-mode'Eli Zaretskii2023-10-213-2/+63
|/ / | | | | | | | | | | | | | | | | | | | | | | * src/indent.c (line_number_display_width): No longer static. * src/lisp.h (line_number_display_width): Add prototype. * src/keyboard.c (save_line_number_display_width) (line_number_mode_hscroll): New functions. (make_lispy_event): Call 'save_line_number_display_width' and 'line_number_mode_hscroll' to avoid interpreting up-event as drag event when redisplay scrolls the text horizontally between the down- and up-event to account for the changed width of the line-number display. (Bug#66655)
* | (sleep-for): Make the `millisec` argument obsoleteStefan Monnier2023-10-201-3/+3
| | | | | | | | | | | | * lisp/subr.el (sleep-for): Set new advertized calling convention. * src/dispnew.c (Fsleep_for): Adjust docstring. * doc/lispref/commands.texi (Waiting): Adjust doc.
* | Gud LLDB completions (bug#66604)Gerd Möllmann2023-10-181-4/+0
| | | | | | | | | | | | * etc/emacs_lldb.py: Remove xcomplete. * lisp/progmodes/gud.el: Implement lldb command completions. * src/.lldbinit: Remove settings done in Gud.
* | Correctly bisect format 12 and 8 cmap tablesPo Lu2023-10-181-5/+11
| | | | | | | | | | | | | | * src/sfnt.c (sfnt_bsearch_above): Cease returning the last element if it is ordered below the key itself. (sfnt_lookup_glyph_8, sfnt_lookup_glyph_12): Verify whether the group returned is NULL.