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

172679 commits

Author SHA1 Message Date
Pär Bohrarper
2dae603c41 Fix file listing in submodules with project-files-relative-names=t
* lisp/progmodes/project.el (project--vc-list-files):
Prepend module names to files when project-files-relative-names is
non-nil (bug#71538).
2024-06-14 04:05:46 +03:00
Jim Porter
4973801c19 ; Minor editorial fixes to some Eshell tests
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/kill-process/redirect-message): Move next to its sibling
tests.
(esh-proc-test/remote/remote-path): Rename from 'esh-var-test/...'.
2024-06-13 12:22:01 -07:00
Eshel Yaron
56537ab022
; (completion-basic-all-completions): Fix recent change
* lisp/minibuffer.el (completion-basic-all-completions): Don't
omit base size.

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00235.html
2024-06-13 16:43:41 +02:00
Harald Jörg
39e3c30b51 ;cperl-mode.el: Avoid false positives when parsing new Perl syntax
* lisp/progmodes/cperl-mode.el (cperl--package-for-imenu-rx)
(cperl--class-for-imenu-rx): avoid false positives when collecting
imenu entries
* lisp/progmodes/cperl-mode.el (cperl-init-faces): avoid false
positives when detecting package names

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-imenu-index): Add test verifying that $class_false is
not shown as a class _false

* test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add a line
containing a false positive "$class_false"
2024-06-13 14:37:13 +02:00
Po Lu
14f7506c99 ; * src/androidterm.c (android_term_init): Typo. 2024-06-13 20:12:03 +08:00
Mattias Engdegård
59367f6a3a php-ts-mode: minor fixes
* lisp/progmodes/php-ts-mode.el (php-ts-mode-flymake-php):
Don't use `any` to mean `not-newline`; it's misleading.
(php-ts-mode--predefined-constant): Remove duplicate "E_USER_NOTICE".
2024-06-13 10:49:28 +02:00
Eli Zaretskii
72e6b05221 ; * src/w32proc.c (sys_kill): Handle negative PID when sig == 0. 2024-06-13 11:03:52 +03:00
Michael Albinus
8eeb159b95 Adapt emacsclient options in doc
* doc/emacs/misc.texi (emacsclient Options):
* doc/man/emacsclient.1: Adapt option list.
2024-06-13 09:29:44 +02:00
Eli Zaretskii
0007231a78 Fix removal of file locks on MS-Windows 9X
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)
2024-06-13 10:24:21 +03:00
Po Lu
94bcd7964b Correctly define `select' binding on Android
* 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.
2024-06-13 10:46:59 +08:00
Dmitry Gutov
6b7ff60a5e Highlight the suffix in *Completions* buffer in 'basic' style too
* lisp/minibuffer.el (completion-basic-all-completions):
Make sure to highlight the suffix as well (bug#71419).
2024-06-13 00:46:12 +03:00
F. Jason Park
d1e98a8f01 Release ERC 5.6
* lisp/erc/erc.el: Change Version header from 5.6-git to 5.6.  A
`customize-package-emacs-version-alist' mapping for ERC 5.6 to Emacs
30.1 was already added when moving from 5.5 to 5.6-git.  The ERCVER
variable in doc/misc/erc.texi was likewise updated at that time.
Going forward, such changes will continue to happen preemptively, on
the flip side of each release.
(erc-version): Change version from 5.6-git to 5.6.
2024-06-12 12:26:01 -07:00
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