1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

165549 Commits

Author SHA1 Message Date
Jens Schmidt
fac0e2d533 Avoid false "wrong passphrase" messages in EPA
* lisp/epa-file.el (epa--wrong-password-p): Use a stricter regexp
to match "wrong passphrase" errors generated by GnuPG.  (Bug#65316)
2023-08-17 11:11:01 +03:00
dannyfreeman
8f683b51d8 Fix jsx font-lock in older tree-sitter-js grammars
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Use
queries that are backwards compatible with
tree-sitter-javascript bb1f97b.
* list/progmodes/js.el
(-jsx--treesit-font-lock-compatibility-bb1f97b): Delete unused
function.  (Bug#65234)
2023-08-17 11:05:00 +03:00
Eli Zaretskii
d9af79ae39 Fix cloning 'face-remapping-alist' for indirect buffers
* lisp/face-remap.el (face-remap--copy-face): Remove.
(face-attrs--make-indirect-safe): Use 'copy-tree'.  Suggested by
Stefan Monnier <monnier@iro.umontreal.ca>.
2023-08-17 10:51:36 +03:00
Eli Zaretskii
636fb267c4 Improve documentation of case transfer in replacement commands
* doc/emacs/search.texi (Replacement and Lax Matches):
* src/search.c (Freplace_match):
* lisp/replace.el (query-replace, query-replace-regexp): Clarify
in the doc string and the manual how letter-case is transferred
from the replaced text to the replacement text.  (Bug#65347)
2023-08-17 10:07:48 +03:00
Eli Zaretskii
7856d51436 Fix horizontal scrolling of images with C-f
* lisp/image-mode.el (image-forward-hscroll): Calculate the
window-width more accurately, as the number of full columns that
fits in the window's text-area.  (Bug#65187)
2023-08-16 20:42:16 +03:00
Eli Zaretskii
8cf5659ec2 ; Fix defcustom in completion.el
* lisp/completion.el (completion-search-distance): Fix doc string
and customization type.  (Bug#65327)
2023-08-16 20:19:34 +03:00
Eli Zaretskii
a8c8a4e368 ; * src/fns.c (Fcopy_sequence): Doc fix. (Bug#64960) 2023-08-16 15:42:24 +03:00
Eli Zaretskii
205d87cdca Fix unpacking ZIP archives on MS-Windows
* lisp/arc-mode.el (archive-zip-summarize): Decode file names as
UTF-8 when bit 11 of flags is set, even on MS-Windows.
(Bug#65305)
2023-08-16 15:34:09 +03:00
Thomas Voss
3712e8bc38 ; Fix typos in lisp/keymap.el doc strings (bug#65329).
Copyright-paper-exempt: yes
2023-08-16 15:24:21 +03:00
Jim Porter
21b2ecee66 Fix command example in Eshell manual
* doc/misc/eshell.texi (Introduction): Fix example (bug#65303).

Reported by Eric Gillespie <brickviking@gmail.com>.
2023-08-15 22:09:14 -07:00
Daniel Martín
26949819df ; lisp/progmodes/csharp-mode.el (treesit-query-capture): Declare (bug#65297). 2023-08-15 18:47:53 +03:00
Eli Zaretskii
221ed70b90 ; Improve documentation of 'define-alternatives'
* doc/lispref/commands.texi (Generic Commands):
* lisp/simple.el (define-alternatives): Improve documentation of
'define-alternatives'.
2023-08-15 17:08:12 +03:00
Jim Porter
32280205e2 Add user options mentioned in the Eshell manual to the variable index
* doc/misc/eshell.texi: Make variable index entries use "code" style,
and add indexing for any options already in the manual.
2023-08-14 19:21:03 -07:00
Andrea Corallo
cf3145a486 * Add missing alias to `native-comp-enable-subr-trampolines'.
* lisp/subr.el (native-comp-deferred-compilation): Alias to
native-comp-jit-compilation.
2023-08-14 15:48:53 +02:00
Andrea Corallo
922b649028 * Add missing alias to `native-comp-enable-subr-trampolines'.
* lisp/subr.el (comp-enable-subr-trampolines): Alias to
native-comp-enable-subr-trampolines.
2023-08-14 15:37:30 +02:00
Po Lu
6962823c83 ; * etc/PROBLEMS: Fix typo and clarify wording.
I-Bus is merely one of the many X input methods plagued with
crashes.
2023-08-14 16:04:03 +08:00
Michael Albinus
fdab7aaada ; * lisp/net/tramp.el (tramp-skeleton-write-region): Fix last change. 2023-08-14 09:42:43 +02:00
Kyle Meyer
3eff53b456 Update to Org 9.6.7-13-g99cc96 2023-08-13 22:11:45 -04:00
Michael Albinus
c42970d775 Handle last-coding-system-used in Tramp for all backends
* lisp/net/tramp.el (tramp-skeleton-write-region):
Handle `last-coding-system-used'.
(tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Set `coding-system-used'.  (Bug#65022)

* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
Move `last-coding-system-used' handling to
`tramp-skeleton-write-region'.
2023-08-13 16:48:00 +02:00
Devon Sean McCullough
ffafe38d03 Add 2 Welsh characters to iso-transl.el
* lisp/international/iso-transl.el (iso-transl-char-map): Add two
Welsh characters.  (Bug#65248)
2023-08-13 09:43:32 +03:00
Andrea Corallo
842dbf500e * Fix `batch-byte+native-compile' target directory.
* lisp/emacs-lisp/comp.el (batch-native-compile): Don't shadow
`native-compile-target-directory' unless necessary.
2023-08-12 18:51:45 +02:00
Eli Zaretskii
8dbd5aa1ee Avoid crashes in 'display_count_lines' when current buffer was killed
* src/xdisp.c (Fformat_mode_line):
* src/fns.c (Fline_number_at_pos): Don't allow to count lines in a
dead buffer.  (Bug#65060)
2023-08-12 15:06:48 +03:00
Daniel Martín
47b4f4cf78 ; * doc/emacs/mini.texi (Completion Commands): Fix a typo (bug#65242). 2023-08-12 11:53:41 +03:00
J M
78999d5213 Update csharp tree-sitter support due to upstream changes
A change in tree-sitter-c-sharp grammar for csharp (commit
18a531), has removed the keyword void_keyword and advised
we should use predefined_type.
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
Support both old and new style of keywords in tree-sitter-c-sharp
grammar.  (Bug#65113)
2023-08-12 10:23:58 +03:00
Matthew Tromp
556cb01b48 Substitute command keys in 'ielm-header' at use time
Before, command keys were substituted into the ielm-header when
ielm.el was loaded, which resulted in the substitutions depending on
the user's current buffer instead of the ielm buffer.
For example, if the user was in an info-mode buffer, the key would
appear as 'H' instead of 'C-h m'.
Now, the command key is substituted after the ielm buffer has been
created.
* lisp/ielm.el (ielm-header): Remove substitute-command-keys.
(inferior-emacs-lisp-mode): Add substitute-command-keys.  (Bug#65213)

Copyright-paperwork-exempt: yes
2023-08-12 10:14:36 +03:00
Eli Zaretskii
99367078e5 ; * etc/PROBLEMS: Add entry about XIM problems (bug#65205). 2023-08-12 10:04:55 +03:00
Eli Zaretskii
03e897c08f Fix rare crashes in redisplay due to problems with fontsets
* src/xdisp.c (get_next_display_element): If we have no usable
face to display a character/composition, treat that as glyphless.
(produce_glyphless_glyph): If neither it->face nor its ASCII face
are usable, fall back to the frame's default font.  (Bug#65198)
2023-08-12 09:38:28 +03:00
Eli Zaretskii
b1ba06a1e4 Fix a typo in 'leuven-dark-theme.el'
* etc/themes/leuven-dark-theme.el (leuven-dark): Fix a typo.
Reported by John Poole <saxcos@posteo.es>.  (Bug#65239)
2023-08-12 09:27:23 +03:00
Gregory Heytings
e80a9dcabb ; * admin/git-bisect-start: Update failing commits 2023-08-11 14:22:17 +00:00
Gregory Heytings
9091f42784 ; * admin/git-bisect-start: Update failing commits 2023-08-10 17:34:40 +00:00
Robert Pluim
344ac529ca ; * etc/PROBLEMS: Fix typo. 2023-08-10 12:44:37 +02:00
Michael Albinus
bccf848b26 Adapt Tramp test
* test/lisp/net/tramp-tests.el (tramp-test41-special-characters):
Skip for macOS.
2023-08-10 12:17:59 +02:00
dannyfreeman
71bc060e40 Properly expand the JSX indentation rules in 'js-ts-mode'
* lisp/progmodes/js.el (js--treesit-indent-rules): Fix
'js-ts-mode' indent bug in JSX expressions. Before this
change, treesit indent mechanisms were trying to call this
compatibility function like a matching or anchor rule.
This resulted in an error when running `indent-for-tab-command`
while the cursor was in a JSX expression:

treesit--simple-indent-eval: Wrong number of
arguments: ((cl-struct-js--pitem-tags ido-cur-list t) nil "Indent rules
helper, to handle different releases of tree-sitter-javascript."

(Bug#65134)
2023-08-10 11:59:13 +03:00
Andrea Corallo
889cfb42ed * Add `emacs-lisp-native-compile' to easy-menu.
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Add menu
item for emacs-lisp-native-compile.
2023-08-10 10:39:14 +02:00
Andrea Corallo
4535aafa8a * lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Simplify condition. 2023-08-10 10:34:01 +02:00
Andrea Corallo
173af0cad5 * Introduce `emacs-lisp-native-compile'.
* lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile): New command.
(emacs-lisp-native-compile-and-load): Make use of.
2023-08-10 10:32:02 +02:00
Eli Zaretskii
063d7d89d7 Fix the -x switch in non-X builds
* src/emacs.c (main): Move the handling of the -x switch out of
the HAVE_X_WINDOWS condition, and simplify the rest of the code by
avoiding code duplication in HAVE_X_WINDOWS and !HAVE_X_WINDOWS
cases.  (Bug#65048)
2023-08-10 10:50:35 +03:00
Po Lu
5a7fb0b39b Document that `set-mouse-color' does not work everywhere
* etc/PROBLEMS (Miscellaneous Problems): Mention where
`set-mouse-color' does not work.
2023-08-10 15:31:09 +08:00
Eli Zaretskii
d06fc72496 ; * doc/emacs/dired.texi (Misc Dired Features): Fix last change. 2023-08-10 09:08:59 +03:00
Eli Zaretskii
97b8ac376b Fix the effects and documentation of 'dired-free-space'
* lisp/dired.el (dired-free-space): Fix doc string and Custom tags.
(dired--insert-disk-space): When 'dired-free-space' is 'separate',
return the position of the beginning of the disk-space line, to be
compatible with pre-Emacs 29 behavior under
'dired-hide-details-mode'.  (Bug#65186)

* doc/emacs/dired.texi (Misc Dired Features): Fix wording in
documentation of 'dired-free-space'.
2023-08-10 09:06:05 +03:00
Stefan Kangas
75c72e59f6 ; Fix typo 2023-08-10 07:21:22 +02:00
Stefan Kangas
6d11b7b300 Fix cross-reference to eldoc in eglot manual
* doc/misc/eglot.texi (Eglot Features): Fix cross-reference to eldoc
node in the Emacs manual.
2023-08-09 16:57:38 +02:00
Eli Zaretskii
913e50aba6 Add native-compilation to Emacs Lisp mode menu
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Add menu
item for emacs-lisp-native-compile-and-load.
2023-08-09 17:35:24 +03:00
Andrea Corallo
b93107c20b Fix emacs-lisp-native-compile-and-load eln target directory (bug#64226)
* lisp/emacs-lisp/comp.el (comp-spill-lap-function): Don't use
`byte+native-compile' to select output directory but always axpect
it explicit through `native-compile-target-directory'.
(batch-byte+native-compile): Set `native-compile-target-directory'.
* test/src/comp-tests.el (comp-tests-bootstrap): Set
`native-compile-target-directory'.
2023-08-09 15:19:26 +02:00
Eli Zaretskii
7e3c616086 ; Re-enable the /dev/urandom test
* test/src/fileio-tests.el (fileio-tests--non-regular-insert):
Remove :unstable, but comment out the single failing test.
2023-08-09 07:25:59 -04:00
Mattias Engdegård
ff21717f05 Disable failing test (bug#65156)
* test/src/fileio-tests.el (fileio-tests--non-regular-insert):
Mark as :unstable, since /dev/urandom is seekable.

Do not merge to master.
2023-08-09 10:23:28 +02:00
Po Lu
4767f5eaee Better fix for bug#65156
* src/fileio.c (Finsert_file_contents): Correct seek-ability
test, since lseek returns -1 upon failure.  (Bug#65156)
2023-08-09 10:49:44 +08:00
Eli Zaretskii
dd1d8414b3 Fix insert-file-contents with pipes and /dev/stdin
* src/fileio.c (Finsert_file_contents): Restore logic of
non-regular but seekable files.  (Bug#65156)
2023-08-08 22:18:46 +03:00
Eli Zaretskii
50649a6d1a ; * etc/PROBLEMS: Fix wording. 2023-08-08 15:22:14 +03:00
Stefan Kangas
f0dda682ff ; * etc/NEWS.28: Add deletion of levents.el. 2023-08-08 04:47:34 +02:00