1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
Commit graph

172667 commits

Author SHA1 Message Date
F. Jason Park
bbac7b9fa3 ; Amend some doc strings in ERC
* lisp/erc/erc-backend.el (define-erc-response-handler): Mention
important distinction between aliases for handlers and hooks, and note
expected type for the latter.
* lisp/erc/erc.el (erc--define-channel-user-status-compat-getter):
Mention that these accessors are not inlined like those generated by
`cl-defstruct'.
2024-06-12 12:26:01 -07:00
Eli Zaretskii
e00af96c06 ; Mention new modes in the Emacs user manual
* etc/NEWS: Mark new modes as documented.
* doc/emacs/programs.texi (Program Modes): Add PHP.  (Bug#71380)
Add other new modes.
2024-06-12 21:25:41 +03:00
Vincenzo Pupillo
e37754fc59 Add php-ts-mode
* etc/NEWS: Mention the new mode.
* lisp/progmodes/php-ts-mode.el: New file.  (Bug#71380)
2024-06-12 21:22:29 +03:00
Paul Eggert
ac14d56a4d Start of a fix for bug#71477
* 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.
2024-06-12 10:51:13 -07:00
Stefan Kangas
b8873a7080 Fix misspelled symbols in artist.el
* lisp/textmodes/artist.el (artist-key-undraw-continuously)
(artist-key-draw-continuously)
(artist-key-do-continuously-continuously)
(artist-key-do-continuously-poly)
(artist-key-do-continuously-1point)
(artist-key-do-continuously-2points)
(artist-key-do-continuously-common)
(artist-key-set-point-continuously)
(artist-mouse-draw-continuously): Rename functions to fix misspelling of
"continuously".  Leave old function names as obsolete aliases and update
all callers.
(artist-mt, artist-go-get-undraw-fn, artist-go-get-interval-fn)
(artist-go-get-fill-pred, artist-go-get-fill-fn)
(artist-key-undraw-common, artist-key-draw-common)
(artist-key-do-continously-common, artist-key-set-point-common)
(artist-down-mouse-1): Rename symbol to 'artist-do-continuously' to fix
misspelling of "continuously".  Continue supporting the old symbol for
backwards-compatibility.
2024-06-12 18:17:13 +02:00
Eli Zaretskii
6893c327e9 ; * lisp/menu-bar.el (kill-this-buffer): Another doc fix (bug#71510). 2024-06-12 15:21:27 +03:00
Robert Pluim
3905db6e3a ; * etc/NEWS: Add doc markup for char-to-name 2024-06-12 13:35:41 +02:00
Eli Zaretskii
ebb0a3036d Support --no-window-system option in emacsclient
* lib-src/emacsclient.c (print_help_and_exit, longopts): Add
'--no-window-system' alias for -t.  (Bug#71509)
2024-06-12 14:10:32 +03:00
Eli Zaretskii
c4a6b9dbfe ; * lisp/menu-bar.el (kill-this-buffer): Doc fix (bug#71510). 2024-06-12 13:53:19 +03:00
Michael Albinus
9c2fad55fd Fix tramp-compat-auth-info-password
* lisp/net/tramp-compat.el (tramp-compat-auth-info-password):
Use original function only for Emacs 30+.
2024-06-12 12:46:10 +02:00
Po Lu
6d64cf5ee1 Restore omitted dependency
* java/Makefile.in (install_temp): Depend on
$(libsrc)/asset-directory-tool.
2024-06-12 17:03:00 +08:00
Eli Zaretskii
7485d7aef3 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2024-06-12 11:48:58 +03:00
Eli Zaretskii
eb5aafb0f4 Fix info/DIR generation broken by update to Org manual
* build-aux/make-info-dir: Adapt to latest changes in Org manual's
markup.
2024-06-12 11:46:36 +03:00
Po Lu
eee084b1d7 Merge remote-tracking branch 'savannah/master' into master-android-1 2024-06-12 16:45:47 +08:00
Po Lu
02e70821b3 Restore functionality on Android 2.2
* 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.
2024-06-12 16:44:21 +08:00
Eli Zaretskii
af9bf86bd7 ; Fix defcustoms in dired-aux.el
* lisp/dired-aux.el (dired-backup-overwrite)
(dired-create-destination-dirs)
(dired-create-destination-dirs-on-trailing-dirsep)
(dired-vc-rename-file, dired-do-revert-buffer)
(dired-isearch-filenames, dired-confirm-shell-command): Fix doc
strings and customization tags.
2024-06-12 10:19:32 +03:00
Eli Zaretskii
05fe419deb ; * doc/emacs/maintaining.texi (VC Change Log): Fix recent change. 2024-06-12 09:16:40 +03:00
Po Lu
f543ec18f4 ; * java/Makefile.in: Fix typo. 2024-06-12 13:59:08 +08:00
Po Lu
5fc75b051f Improve compression of Emacs packages on Android 2.2
* configure.ac (ZIP): Search for a `zip' executable and
substitute the same if targeting SDK 8.

* java/INSTALL: Document new requirement.

* java/Makefile.in (GZIP_PROG, ZIP): New substitutions.
(.PHONY): Delete references to directory-tree.

(install_temp): On SDK 8 and earlier, compress large *.el and
Info files with gzip, and divide install_temp into three
separate directories, with one for large files, another for
gzipped files, and one more for the remainder.
(install_temp/assets/directory-tree, install_temp/assets/version)
(install_temp/assets/build_info): Merge these rules into
install_tmp, that they may execute before the assets directory
is split.
(emacs.apk-in): Package each directory separately, accounting
for their varied compression requirements.

* lisp/term/android-win.el (input-decode-map): Define select to
return in input-decode-map.
2024-06-12 13:52:33 +08:00
Sean Whitton
a300db7ad4 Make C-u 1 C-x v L slightly more discoverable
* doc/emacs/maintaining.texi (VC Change Log): List C-u 1 C-x v L
as though it were a separate command.  Give the longer
description its own paragraph.
2024-06-12 07:43:53 +08:00
Visuwesh
076e8ad5fc Fix customisation buffer for dired group
* lisp/dired-aux.el
(dired-create-destination-dirs-on-trailing-dirsep): Actually
concat the string.  (Bug#71490)
2024-06-11 23:22:53 +02:00
Dmitry Gutov
3199b8584e read_and_insert_process_output: Insert before markers
* 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).
2024-06-11 21:03:19 +03:00
Michael Albinus
5ecff95993 Refactor tramp-*-process-file functions
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't compute
process name, this is done in `tramp-skeleton-make-process'.

* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-process-file):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
Use `tramp-skeleton-process-file'.

* lisp/net/tramp.el (tramp-get-unique-process-name): New defun.
(tramp-skeleton-make-process): Use it.
(tramp-skeleton-process-file): New defmacro.
2024-06-11 14:43:28 +02:00
Eli Zaretskii
4b902f5031 ; * src/emacs.c (Fkill_emacs): Doc fix. 2024-06-11 15:39:51 +03:00
Eli Zaretskii
7375b6d5ad ; * doc/lispref/nonascii.texi (Character Codes): Fix wording. 2024-06-11 15:09:30 +03:00
Robert Pluim
e3078994d8 Show character names when describing translations
This implements Bug#71411.

* lisp/help.el (help-key-description): Use 'char-to-name' to show the
Unicode name of translated keys.
(help--describe-command): And here.

* etc/NEWS: Announce the change.
2024-06-11 11:06:37 +02:00
Robert Pluim
e4b243b931 Use 'char-to-name'
* lisp/international/emoji.el (emoji--name): Lookup name using 'char-to-name'.
* lisp/international/textsec.el (textsec-domain-suspicious-p): And here.
* lisp/simple.el (what-cursor-position): And here.
2024-06-11 11:06:37 +02:00
Robert Pluim
3a4cf1aa1e Add 'char-to-name' convenience function
* lisp/international/mule-cmds.el (char-to-name): New function.  This is
the inverse of 'char-from-name'.
* doc/lispref/nonascii.texi (Character Codes): Document it.
* etc/NEWS: Announce it.
2024-06-11 11:06:37 +02:00
Po Lu
cc30758eed Enable support for color fonts in recent releases of Xft
* 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.
2024-06-11 17:00:00 +08:00
Eli Zaretskii
c0aa201ade ; Revert "Provide for negative PIDs on MS Windows"
This reverts commit 9e96fbfd85.
Please don't install any changes in this area without discussion.
Bug#71477.
2024-06-11 10:38:58 +03:00
Eli Zaretskii
57c492e1c0 ; Revert "* src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly."
This reverts commit f33806dd66.
Please don't install changes in this area without discussion.
2024-06-11 10:38:11 +03:00
Eli Zaretskii
a95f9e5bc6 ; * src/process.c (read_and_dispose_of_process_output): Fix style. 2024-06-11 10:37:31 +03:00
Po Lu
1aa83da46d ; * etc/NEWS: Rename read-process-output-fast here also. 2024-06-11 14:40:55 +08:00
Po Lu
677f082b0f Eliminate some redundant synchronization on Android
* java/org/gnu/emacs/EmacsService.java (resetIC): Return on all
versions of Android if the connection need not be reset.

* java/org/gnu/emacs/EmacsView.java (getICMode, setICMode):
Remove needless synchronization.
2024-06-11 14:40:55 +08:00
Dmitry Gutov
bac8a70f45 fast-read-process-output: Make safer
* 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.
2024-06-11 05:54:57 +03:00
Dmitry Gutov
d9890bb870 read_process_output_set_last_coding_system: Extract, reuse
* 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).
2024-06-11 05:37:45 +03:00
Po Lu
f33806dd66 * src/filelock.c (pid_strtoimax) [!WINDOWSNT]: Define correctly. 2024-06-11 10:15:28 +08:00
Po Lu
9e96fbfd85 Provide for negative PIDs on MS Windows
* 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)
2024-06-11 10:05:14 +08:00
Dmitry Gutov
5a576069fc read_and_insert_process_output: Call 'prepare_to_modify_buffer' first
* src/process.c (read_and_insert_process_output): Call
'prepare_to_modify_buffer' before any insertions (bug#71452).
2024-06-11 04:51:37 +03:00
Po Lu
f74f4089fd ; * src/process.c (syms_of_process): Fix ommission. 2024-06-11 09:09:35 +08:00
Stefan Kangas
37a715c609 Fix recently added eshell test
* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/empty-background-command): Fix failing test.
2024-06-10 22:18:19 +02:00
Eli Zaretskii
7c97d05b56 Avoid rare assertion violations when deleting a frame
* src/dispnew.c (adjust_frame_glyphs): Allow nrows = 0 when
deleting a frame.  (Bug#71475)
2024-06-10 22:13:29 +03:00
Eli Zaretskii
2ac85aa613 ; * src/treesit.c (treesit_check_node): Don't use non-ASCII comments. 2024-06-10 21:24:51 +03:00
Eli Zaretskii
ffd2c492a0 Fix treesit-tests
* test/src/treesit-tests.el (treesit-node-api): Adapt the test to
changes in 'treesit_check_node'.  (Bug#71012)
2024-06-10 21:22:47 +03:00
Eli Zaretskii
aca5de19b8 Allow to print treesit objects from GDB
* src/.gdbinit (xtsparser, xtsnode, xtsquery): New functions.
(xpr): Call them for treesit objects.
2024-06-10 21:12:12 +03:00
Mattias Engdegård
ce4e5e6a28 * src/print.c (print_vectorlike_unreadable): Fix merge accident. 2024-06-10 18:50:15 +02:00
Mattias Engdegård
6d0b1db518 * etc/emacs_lldb.py (Lisp_Object): Add TS types. 2024-06-10 18:50:15 +02:00
Andrea Corallo
e6b771570e ; Silence a byte-compiler warning in typescript-ts-mode.el
* lisp/progmodes/typescript-ts-mode.el (treesit-node-child): Declare.
2024-06-10 18:03:32 +02:00
kobarity
3003d6a0c0 ; Fix recent change to python-tests.el
* test/lisp/progmodes/python-tests.el
(python-tests--pythonstartup-file): Use already bound
'python-shell-interpreter'.  (Bug#70815)
2024-06-10 17:43:07 +02:00
Eli Zaretskii
84653558fe ; Another fix of non-ASCII characters in Emacs manual. 2024-06-10 18:10:03 +03:00