aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-072-10/+19
|\
| * Stop using printf %nPaul Eggert2023-08-061-8/+15
| | | | | | | | | | | | * src/emacs.c (shut_down_emacs): Don’t use printf’s "%n" format. Android, MS-Windows, and OpenBSD don’t support it, and it’s easy enough to do its equivalent by hand.
| * Fix last change of 'delete-file'Eli Zaretskii2023-08-061-2/+4
| | | | | | | | | | | | | | | | | | | | * src/fileio.c (Fdelete_file_internal): Expand file name here, as all primitives must. (internal_delete_file): Adjust to the fact that Fdelete_file was renamed. * lisp/files.el (delete-file): Don't expand-file-name here, as the called primitives already do. Fix typo in doc string.
* | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-061-31/+9
|\ \ | |/
| * Separate filename-deletion mechanism from policy.Eric S. Raymond2023-08-061-31/+9
| | | | | | | | | | | | | | | | | | | | | | src/fileio.c: (delete-file-internal) Renamed from delete-file, parallel to delete-directory-internal; policy code moved to Lisp. src/files.el: (delete-file) New function, holds policy logic. calls delete-file-internal. This is a pure refactoring step, delete-file's behavior is unchanged. But the C core is a little simpler now.
* | Update Android portPo Lu2023-08-061-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsNative.java: Declare ftruncate. * java/org/gnu/emacs/EmacsSafThread.java (openDocument1): If initially opening with rwt, verify the file descriptor is really writable; if not, resort to rw and truncating the file descriptor by hand instead. * src/androidvfs.c (NATIVE_NAME (ftruncate)): New function. Truncate file descriptor and return whether that was successful.
* | Update Android portPo Lu2023-08-061-4/+4
| | | | | | | | | | * src/androidvfs.c (android_saf_tree_chmod): Repair file access permissions allowed within FLAGS.
* | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-062-1/+11
|\ \ | |/
| * Add crossref to set-default-file-modes docstringStefan Kangas2023-08-051-1/+3
| | | | | | | | | | * src/fileio.c (Fset_default_file_modes): Doc fix; add to the docstring a cross-reference to with-file-modes.
| * Allow user control on char-width of "ambiguous" charactersEli Zaretskii2023-08-051-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/character.c (syms_of_character) <ambiguous-width-chars>: New char-table. * lisp/international/characters.el (ambiguous-width-chars): Fill the table. (update-cjk-ambiguous-char-widths): New function. (cjk-ambiguous-chars-are-wide): New defcustom, uses 'update-cjk-ambiguous-char-widths' as its :set function. (use-cjk-char-width-table): Obey 'cjk-ambiguous-chars-are-wide' by adding another child char-table for ambiguous-width characters, where the width is set according to the option. * lisp/language/chinese.el ("Chinese-GB", "Chinese-BIG5") ("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK"): * lisp/language/japanese.el ("Japanese"): * lisp/language/korean.el ("Korean"): Add new language-info slot 'cjk-locale-symbol'. Bug#64420
* | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-051-1/+5
|\ \ | |/
| * Merge from origin/emacs-29Eli Zaretskii2023-08-041-1/+5
| |\ | | | | | | | | | | | | | | | | | | | | | 0f183770c56 Fix byte-compiled files that use 'bind-key' from use-package acfcf7f3690 Fix "Paste from Kill Menu" in non X toolkit builds 04996b21241 Handle tabs in the SQL shown in the column listing 573fcf27122 Add new keyword to 'typescript-ts-mode' db7d70d3cad ; Add commentary to 'describe-function's completion
| | * Fix "Paste from Kill Menu" in non X toolkit buildsEli Zaretskii2023-08-041-1/+5
| | | | | | | | | | | | | | | | | | * src/keymap.c (possibly_translate_key_sequence): Don't signal an error if 'key-valid-p' returns nil. Suggested by Stefan Monnier <monnier@iro.umontreal.ca>. (Bug#64927)
| | * Fix link to info node in prin1 docstringStefan Kangas2023-08-031-2/+1
| | | | | | | | | | | | | | | | | | * src/print.c (Fprin1): Fix linking to info node in docstring. (cherry picked from commit 4b73edb8d1da74fd1bda8894e982d9768fd1f18c)
| | * Support files compressed by 'pigz'Amritpal Singh2023-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * src/decompress.c (md5_gz_stream): Check 'stream.avail_in' as well. (Bug#63832) Copyright-paperwork-exempt: yes (cherry picked from commit 46b6d175054e8f6bf7cb45e112048c0cf02bfee9)
* | | ; Last-minute updates to Android portPo Lu2023-08-044-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/electric.el: * lisp/help-macro.el (make-help-screen): * lisp/subr.el (read-char-choice-with-read-key): * src/buffer.c (init_buffer_once): * src/dispextern.h (No_Cursor): * src/keyboard.c (read_char): * src/process.c (Fprocess_send_eof): Fix commentary or unnecessary whitespace changes.
* | | Optimize creation of multibyte menu items on AndroidPo Lu2023-08-043-69/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/androidvfs.c (android_verify_jni_string): Move to android.c. * src/android.c (android_verify_jni_string): New function. (android_build_string): Forgo encoding menu text if TEXT is a multibyte string that's also a valid JNI string. * src/android.h: Update prototypes.
* | | * src/fileio.c (check_vfs_filename): Revert earlier change.Po Lu2023-08-031-13/+3
| | |
* | | Isolate fchmodat within the Android VFS layerPo Lu2023-08-035-9/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/android.h: Update prototypes. * src/androidvfs.c (unix_vfs_ops, android_unix_chmod, afs_vfs_ops) (android_afs_chmod, content_vfs_ops, android_content_chmod) (authority_vfs_ops, android_authority_chmod, saf_root_vfs_ops) (android_saf_root_chmod, saf_tree_vfs_ops, android_saf_tree_chmod) (saf_file_vfs_ops, saf_new_vfs_ops, android_saf_new_chmod) (root_vfs_ops): Add `chmod' to the list of functions implemented by each vnode. (android_fchmodat): New function. * src/fileio.c (Fset_file_modes): Use `emacs_fchmodat'. * src/lisp.h: * src/sysdep.c (emacs_fchmodat): Delegate to android_fchmodat on Android.
* | | Update Android portPo Lu2023-08-031-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsSafThread.java (CacheToplevel): (EmacsSafThread): (DocIdEntry): (getCache): (pruneCache): (cacheDirectoryFromCursor): (run): (documentIdFromName1): (statDocument1): (openDocumentDirectory1): (openDocument1): Introduce a file status cache and populate it with files within directories as they are opened. * java/org/gnu/emacs/EmacsService.java (createDocument): (createDirectory): (moveDocument): Invalidate the file status cache wherever needed. * src/fileio.c (check_vfs_filename): (Fset_file_modes): Permit `set-file-modes' to silently fail on asset and content files.
* | | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-034-6/+5
|\ \ \ | |/ /
| * | ; Prefer HTTPS to HTTP in more linksStefan Kangas2023-08-023-4/+4
| | |
| * | Fix link to info node in prin1 docstringStefan Kangas2023-08-021-2/+1
| | | | | | | | | | | | * src/print.c (Fprin1): Fix linking to info node in docstring.
* | | Fix reporting of key events containing SYM and METAPo Lu2023-08-022-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/android.texi (Android)::(What is Android?): (Android Startup, Android File System, Android Environment) (Android Windowing, Android Fonts, Android Troubleshooting): Improve section titles. (Android Windowing): Describe the relation between keyboard modifiers reported by Android and those in key events. * java/org/gnu/emacs/EmacsWindow.java (onKeyDown, onKeyUp): Clear META_SYM_ON and META_META_MASK when retrieving ASCII characters. * src/androidgui.h: Add ANDROID_META_MASK. * src/androidterm.c (android_android_to_emacs_modifiers) (android_emacs_to_android_modifiers): Transform META to Alt, and vice versa.
* | | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-023-86/+129
|\ \ \ | |/ /
| * | Fix stipple support on PGTKPo Lu2023-08-013-86/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c (image_create_pattern_from_pixbuf): Remove function. (image_bitmap_to_cr_pattern): New function. (image_create_bitmap_from_data): (image_create_bitmap_from_file): Create patterns with the correct mask values directly from bitmap data. Also, don't rely on GDK to read XPMs, as that format isn't supported anymore. * src/pgtkterm.c (pgtk_bitmap_icon): Disable already nonfunctional code. (pgtk_display_x_warning): Wrap warning message. * src/pgtkterm.h (struct pgtk_bitmap_record): Remove `img' field. (bug#64969)
* | | Update Android portPo Lu2023-08-013-7/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/android.texi (Android File System): Describe how to access real files named /assets or /contents if so required. * java/org/gnu/emacs/EmacsService.java (validAuthority): * src/android.c (android_init_emacs_service): * src/android.h: New function. * src/androidvfs.c (android_saf_valid_authority_p): New function. Wrap the Java function. (android_saf_root_stat, android_saf_root_access): Don't return success if no authority by vp->authority's name exists. (android_saf_tree_from_name): Check validity of string data before giving it to JNI.
* | | Micro-optimize PUSHW/PUSHBPo Lu2023-08-011-14/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/sfnt.c (CHECK_STACK_AVAILABLE): New macro. (PUSH): (PUSH_UNCHECKED): Always define to unchecked versions, even if TEST. (PUSH2_UNCHECKED): New macro. (NPUSHB): (NPUSHW): (PUSHB): (PUSHW): Check the number of remaining stack elements once. (stack_overflow_test_args): Expect zero stack arguments.
* | | ; * src/android.c (ANDROID_THROW): Remove unused macro.Po Lu2023-08-011-3/+0
| | |
* | | Merge remote-tracking branch 'origin/master' into feature/androidPo Lu2023-08-015-19/+39
|\ \ \ | |/ /
| * | Merge from origin/emacs-29Eli Zaretskii2023-07-311-13/+23
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 525d05c1b8a Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/... 29ef2157116 ; * lisp/textmodes/paragraphs.el: Remove leftover comment. 80c9f491fc8 Update to Org 9.6.7-5-gd1d0c3 735f3700f65 ; * src/character.c (Fstring_width): Fix last change. bf83fdba9e3 ; * src/character.c (Fstring_width, Fchar_width): Doc fixes. 1198cdb5567 Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs ... 2b8796eea19 Fix rx wrong-code bug: ranges starting with ^ ba60070b81c Backport: Fix some tree-sitter :match regexps 092a2ecb083 ; * admin/make-tarball.txt: Update based on latest experi... 7b9e83d3cf9 Fix bug#64923 0002d4f3166 Avoid spurious whitespace in the modeline of emacsclient ... 96d52f89444 Fix function help for advised aliases (bug#64797) 71419a60c37 Avoid crashes due to invalid 'mode-line-format' b2cb6e82160 ; Better documentation of HOME on MS-Windows 54e98b5f9bd ; Clarify documentation of 'server-after-make-frame-hook' d13029cdcde Avoid crashes under 'which-key-mode' cb1f7db2490 ; Minor documentation fixes 4a687bcc20d Bump Emacs version
| | * ; * src/character.c (Fstring_width): Fix last change.Eli Zaretskii2023-07-301-4/+5
| | |
| | * ; * src/character.c (Fstring_width, Fchar_width): Doc fixes.Eli Zaretskii2023-07-301-13/+22
| | |
| * | Merge from origin/emacs-29Eli Zaretskii2023-07-311-0/+11
| |\ \ | | |/ | | | | | | | | | 092a2ecb083 ; * admin/make-tarball.txt: Update based on latest experi... 7b9e83d3cf9 Fix bug#64923
| | * Fix bug#64923Po Lu2023-07-301-0/+11
| | | | | | | | | | | | | | | * src/xfns.c (Fx_create_frame): Prevent cairo surface from being left without a desired size. (bug#64923)
| | * Avoid crashes due to invalid 'mode-line-format'Eli Zaretskii2023-07-301-1/+2
| | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (display_mode_element, redisplay_window_error): Don't take XCAR of what can be Qnil. (Bug#64893) (cherry picked from commit 7ea3f39deec3d54914077455e70605a14eb7d200)
| | * Avoid crashes under 'which-key-mode'Eli Zaretskii2023-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | | * src/keyboard.c (Fthis_single_command_keys): Don't allow calls to Fvector with negative first argument. (Bug#64857) (cherry picked from commit 65834b8f8d53402517da7fe2446f5bac0aa30c39)
| | * ; Minor documentation fixesEli Zaretskii2023-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/character.c (Fstring_width): Doc fix. * doc/emacs/trouble.texi (Understanding Bug Reporting): Fix typo (bug#64854). (cherry picked from commit f6e4e77d23d0be79be83ef41c3ea9acd5c983af2)
| * | Merge from origin/emacs-29Eli Zaretskii2023-07-311-1/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | ee20b50dfed ; * lisp/progmodes/typescript-ts-mode.el (treesit-query-c... 2215298d90b Update JSX support due to upstream changes (bug#64647) 235561a2ccc Update TSX support due to upstream changes (bug#64647) 12ab82d3b35 ; Fix customization form of 'bookmark-watch-bookmark-file' d149a4dc428 ; Improve documentation of automatic addition to minibuff... 42a99627948 ; Improve documentation of 'last-command-event' 101455cb853 ; * lisp/subr.el (ignore, always): Doc fixes. (Bug#64776)
| | * ; Improve documentation of 'last-command-event'Eli Zaretskii2023-07-221-1/+2
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Commands for Insertion): * doc/lispref/commands.texi (Command Loop Info): * src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Improve the documentation of 'last-command-event' and 'post-self-insert-hook'.
| | * Unbreak build with CHECK_STRUCTS.Philipp Stephani2023-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | | The hash for the Lisp_Overlay structure has changed due to the (comment-only) commit 7ac947f34c745c61f8acc1fe2452a2c720d57a0d. * src/pdumper.c (dump_overlay): Update struct hash.
| * | Merge from origin/emacs-29Eli Zaretskii2023-07-312-5/+3
| |\ \ | | |/ | | | | | | | | | | | | c692bbc6596 Revert "Improve commentary in nsfns.m" bb885928d73 Fix NetBSD build --with-sound 39873d6d5d1 Fix typo in pre-filter for underline property
| | * Revert "Improve commentary in nsfns.m"Mattias Engdegård2023-07-211-5/+1
| | | | | | | | | | | | | | | | | | This reverts commit 3af27a4b815906c2ee38cbaf3a765289b3df061a, because it missed the point completely. Please talk to the original author next time.
| | * Fix NetBSD build --with-soundEli Zaretskii2023-07-201-0/+2
| | | | | | | | | | | | | | | * src/sound.c (alsa_write): Use ESTRPIPE only if defined. (Bug#64698)
* | | Update Android portPo Lu2023-07-312-8/+13
| | | | | | | | | | | | | | | * src/sfnt.c (ISECT): Micro-optimize this instruction. * src/sfntfont.c (sfnt_parse_style): Avoid GC safety problem.
* | | ; Update Android portPo Lu2023-07-311-3/+4
| | | | | | | | | | | | * src/sfntfont.c (sfnt_parse_style): Fix misworded commentary.
* | | Initialize Android API level earlierPo Lu2023-07-312-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsNative.java (EmacsNative): * java/org/gnu/emacs/EmacsNoninteractive.java (main): * java/org/gnu/emacs/EmacsService.java (run): * java/org/gnu/emacs/EmacsThread.java (run): * src/android.c (initEmacs, setEmacsParams): Set `android_api_level' within setEmacsParams, not in initEmacs. * src/androidvfs.c: Pacify compiler warnings.
* | | Implement cross-directory SAF rename operationsPo Lu2023-07-313-6/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsService.java (renameDocument): Don't catch UnsupportedOperationException; handle ENOSYS in android_saf_rename_document instead. (moveDocument): New function. * lisp/subr.el (y-or-n-p): Always change the text conversion style. * src/android.c (android_init_emacs_service) (android_exception_check_4): New function. * src/android.h: Update Java function table. * src/androidvfs.c (android_saf_rename_document): Handle ENOSYS here by setting errno to EXDEV. (android_saf_move_document): New function. (android_document_id_from_name): Take const `dir_name'. (android_saf_tree_rename): Use delete-move-rename to implement cross-directory renames.
* | | Partially implement rename operations on SAF filesPo Lu2023-07-303-3/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsSafThread.java (postInvalidateCacheDir): * java/org/gnu/emacs/EmacsService.java (renameDocument): New functions. * src/android.c (android_init_emacs_service): * src/android.h (struct android_emacs_service): Link to new JNI function. * src/androidvfs.c (android_saf_rename_document): New function. (android_saf_tree_rename): Implement in terms of that function if possible.
* | | Correct directory permissions reported for VFS filesPo Lu2023-07-291-2/+5
| | | | | | | | | | | | | | | | | | * java/org/gnu/emacs/EmacsSafThread.java (statDocument1): * src/androidvfs.c (android_afs_stat, android_content_stat) (android_saf_root_stat): Report search permissions for files.