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

172704 commits

Author SHA1 Message Date
Eli Zaretskii
2cbea4f35c Better documentation of 'emacs-internal' encoding
* doc/lispref/nonascii.texi (Coding System Basics): Recommend
'emacs-internal' encoding for caching.
2024-06-15 15:59:55 +03:00
Eli Zaretskii
d802e56182 ; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Doc fix. 2024-06-15 15:02:11 +03:00
Arash Esbati
d05f473285 ; Fix some docstrings. (bug#71532) 2024-06-15 14:58:22 +03:00
Eli Zaretskii
45a191738c Fix doc strings in ispell.el
* lisp/textmodes/ispell.el (ispell-check-version)
(ispell-get-casechars, ispell-get-not-casechars)
(ispell-get-otherchars, ispell-get-many-otherchars-p)
(ispell-get-ispell-args, ispell-get-extended-character-mode)
(ispell-get-coding-system, ispell-word, ispell-get-word)
(ispell-pdict-save, ispell-command-loop, ispell-help)
(ispell-filter, ispell-highlight-spelling-error)
(ispell-change-dictionary, ispell-region, ispell-ignore-fcc)
(ispell-get-line, ispell-message): Doc fixes (bug#71532)
2024-06-15 14:55:31 +03:00
Ashwin Kafle
c637adbf32 Fix calc-trail-here for first line of trail.
* lisp/calc/calc.el(calc-trail-here): Change 'or' to 'and'
since (bobp) can return true even if the buffer is not empty.
(Bug#71533)
2024-06-15 14:01:00 +03:00
kobarity
af6e7ed4c1 Allow escape sequences in Python prompts
* lisp/progmodes/python.el (python-shell-prompt-detect): Use
Python's json package if available, and remove escape sequences
in prompts.
* test/lisp/progmodes/python-tests.el
(python-tests-interpreter-2-6-higher-p): New predicate
function.
(python-shell-prompt-detect-7): New test.  (Bug#71440)
2024-06-15 13:46:29 +03:00
Eli Zaretskii
ffa349f983 Fix 'reindent-then-newline-and-indent' with 'abbrev-mode'
* lisp/simple.el (reindent-then-newline-and-indent): Use a marker
for the initial position.  (Bug#71459)
2024-06-15 13:04:12 +03:00
Eli Zaretskii
6d12157fa8 Prevent deletion of separator in *edit string* buffer
* lisp/textmodes/string-edit.el (string-edit): Make the separator
line read-only.  (Bug#71405)
2024-06-15 11:37:34 +03:00
Eli Zaretskii
988203fe98 Fix electric-pair-mode when characters are bound to non-ASCII keys
* src/cmds.c (Fself_insert_command): Record the argument C in
'last-command-event'.  (Bug#71337)
2024-06-15 11:08:22 +03:00
Eli Zaretskii
8d67bdae59 ; * nt/README.W32: Remove Windows 95. 2024-06-15 10:00:59 +03:00
Eli Zaretskii
f0f0f0fe43 ; * nt/README: Remove Windows 95. 2024-06-15 09:59:55 +03:00
Po Lu
25452986cb Send proper substitution character to Android IMEs
* src/androidterm.c (android_text_to_string): Substitute
REPLACEMENT CHARACTER for NULL in converting characters not
representable without surrogate pairs to UTF-16.
2024-06-15 10:04:07 +08:00
Arsen Arsenović
1079d333ab typescript/tsx-ts-mode: Indentation for type parameters
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Add rule for type_parameters.
2024-06-15 02:18:56 +03:00
Eli Zaretskii
47746c1f37 ; * src/insdel.c (insert_from_gap_1): Update commentary. 2024-06-14 21:44:56 +03:00
Eli Zaretskii
0372ce5f60 ; Update comments in a recent commit
* src/process.c (read_and_insert_process_output):
* src/insdel.c (insert_from_gap):
* src/coding.h (struct coding_system): Improve comments (bug#71525).
2024-06-14 21:42:18 +03:00
Eshel Yaron
3b07d33059
; Fix Icomplete error during candidate highlighting
* lisp/icomplete.el (icomplete-completions): Pass completion
candidates through 'completion-lazy-hilit' before trimming
common prefix, rather than after.

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00271.html
2024-06-14 19:49:21 +02:00
Dmitry Gutov
a8d5c5fd87 "Insert before markers" in read_and_insert_process_output properly
* 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.
2024-06-14 19:50:59 +03:00
Dmitry Gutov
08e38818f6 * lisp/progmodes/project.el: Bump the version 2024-06-14 18:27:48 +03:00
Eli Zaretskii
6a9f1b504a Fix generation of org.texi from org.org
* doc/misc/Makefile.in (org_template): Bind
'org-id-track-globally' to nil when running
'org-texinfo-export-to-texinfo-batch', to avoid searching local
user files when building the Org manual.
2024-06-14 14:38:01 +03:00
Po Lu
11b145ac07 Correct last change
* lisp/term.el (term-generate-db-directory): Don't delete
DST-DIRECTORY if not yet existent.
2024-06-14 16:42:32 +08:00
Po Lu
f66341a13b Port term.el's terminfo machinery to Android
* lisp/term.el (term-generate-db-directory): New function.  Copy
/assets/etc/e to the cache directory, on Android, and return the
same.
(term-exec-1): Call term-generate-db-directory in place of
data-directory.
2024-06-14 16:21:55 +08:00
Po Lu
9c9afd5235 Unconditionally prefer built-in decompression functions on Android
* lisp/jka-compr.el (jka-compr-insert-file-contents): Prefer
built-in decompression functions (i.e., zlib) to external
agents.
2024-06-14 15:12:05 +08:00
Jim Porter
19b407ac74 ; * lisp/eshell/em-script.el (eshell-execute-file): Improve docstring. 2024-06-13 21:44:40 -07:00
Po Lu
a458dc5dc8 Restore file's original name after a failed rename_replace on Windows 9X
* 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.
2024-06-14 10:45:02 +08:00
Po Lu
4124b98509 Enable compiling Emacs with implicit Make rules suppressed
* 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.
2024-06-14 10:44:31 +08:00
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