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

165579 Commits

Author SHA1 Message Date
Yuan Fu
18b292140e
; * src/treesit.c: Add ts function boilerplate 2023-08-31 16:00:54 -07:00
Yuan Fu
ec4d29c449
Improve performance of treesit_cursor_helper_1
* src/treesit.c: (treesit_cursor_helper_1): Use
ts_tree_cursor_goto_first_child_for_byte to speed up traversing among
siblings.  The "while (ts_node_end_byte (cursor_node) < end_pos)" can
be removed with the check added in the loop below.
2023-08-30 20:53:03 -07:00
Stefan Monnier
f26622b2a4 * lisp/subr.el (combine-change-calls-1): Fix bug#64989
Silence the spurious warning, and improve the warning while at it.
Do not merge to master.
2023-08-28 12:12:42 -04:00
Kyle Meyer
648a5e33e8 Update to Org 9.6.8-3-g21171d 2023-08-27 22:38:34 -04:00
Yuan Fu
458442fe78
Escape percent character in treesit--inspect-name (bug#65540)
* lisp/treesit.el (treesit-inspect-node-at-point): Escape percent.
2023-08-27 14:50:43 -07:00
Jim Porter
bc0426ce8e Don't add an extraneous slash in remote PATH list in Eshell
Previously, in a remote directory, '(eshell-get-path)' would return a
list of strings like "/ssh:localhost://usr/bin".  While that shouldn't
break most things, it's not strictly correct either.  See bug#65551.

* lisp/eshell/esh-util.el (eshell-get-path): Use 'concat' instead of
'file-name-concat'.

* test/lisp/eshell/esh-util-tests.el: Require 'tramp' and
'eshell-tests-helpers'.
(esh-util-test/path/get, eshell-util-test/path/get-remote): New tests.
2023-08-27 12:49:25 -07:00
Michael Albinus
34f7a47c9c Fix Tramp on MS Windows
* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
Apply `tramp-drop-volume-letter' consequently.
2023-08-27 20:06:13 +02:00
Andrea Corallo
ea5fd6c96b * Fix native disassemble on Windows platforms (bug#65455)
* lisp/emacs-lisp/disass.el (disassemble-internal): Improve regexp.
2023-08-27 19:03:48 +02:00
Andrea Corallo
91d2d8439b * Handle missing eln file when trying to disassble (bug#65455)
* lisp/emacs-lisp/disass.el (disassemble-internal): Handle missing
eln file.
2023-08-27 17:04:08 +02:00
Andrea Corallo
e7ac50a153 * lisp/emacs-lisp/comp.el (comp--native-compile): Fix OUTPUT for non abs paths 2023-08-27 16:41:35 +02:00
Jonas Bernoulli
45cf3a0ced Update to Transient v0.4.3 2023-08-27 14:47:14 +02:00
Michael Albinus
31d3808fb9 Adapt Eshell manual
* doc/misc/eshell.texi (Arguments): Mention more special
characters to be quoted in remote file names.  (Bug#65431)
2023-08-27 13:20:37 +02:00
Eli Zaretskii
0c50af054f Fix applying patches with Git on MS-Windows
* lisp/vc/vc.el (vc-diff-internal): For Git, always suppress EOL
conversion when reading the diffs into a buffer.  Doc fix.
* lisp/vc/vc-git.el (vc-git-checkin): Make sure to suppress EOL
conversion when the patch file is written.  (Bug#65049)
2023-08-27 08:24:39 +03:00
Po Lu
de335cb3dc ; Effect a safer version of that fix for Emacs 29
* src/haikuterm.c (haiku_draw_stretch_glyph_string): Use
computed X value, as on X.

Do not merge to master.
2023-08-27 10:22:46 +08:00
Po Lu
a6cb8e3a1f Repair bug#65068 on Emacs 29
* src/xterm.c (x_term_init): Disable ControlFallback library
control wherever present.  (bug#65068)

Do not merge to master.
2023-08-26 18:12:24 +08:00
Eli Zaretskii
39d2285bdc ; * doc/emacs/sending.texi (Mail Aliases): Add some useful commands. 2023-08-26 09:38:22 +03:00
Eli Zaretskii
f3fa436bc0 ; Fix doc string of 'current-idle-time'
* src/keyboard.c (Fcurrent_idle_time): Doc fix (bug#65512).
2023-08-25 08:53:21 +03:00
Stefan Kangas
02532bb582 Fix custom :type of dired-mouse-drag-files
* lisp/dired.el (dired-mouse-drag-files): Fix :type to allow
specifying 'move'.  (Bug#65497)
2023-08-24 22:42:55 +02:00
Eshel Yaron
fc5de406be ; Improve SMTPmail documentation about OAuth2
* doc/misc/smtpmail.texi (Authentication): Fix authentication
mechanism count and add index entries for OAuth 2.0.  (Bug#65507)
2023-08-24 21:06:26 +03:00
James Thomas
1aaeaf22ce Account for string names in active file
Account also for strings when reading in group names from an active
file (bug#62812).
* lisp/gnus/nnmail.el (nnmail-parse-active): Make it similar to
gnus-active-to-gnus-format
2023-08-24 10:42:30 +03:00
Christoph Göttschkes
4860456584 Fix 'makefile-browser-client' variable initialization
* lisp/progmodes/make-mode.el (makefile-browser-client):
Initialize to nil.  (Bug#65487)

Copyright-paperwork-exempt: yes
2023-08-24 10:23:14 +03:00
Eli Zaretskii
b72f23a532 ; Fix 'desktop-restore-reuses-frames' customize values
* lisp/desktop.el (desktop-restore-reuses-frames): Fix defcustom's
value.  (Bug#65435)
2023-08-21 21:18:08 +03:00
Stefan Kangas
45cc57ac25 ; Silence byte-compiler
* test/src/comp-tests.el (native-comp-eln-load-path): Declare.

(cherry picked from commit 508d24c8b9)
2023-08-20 20:05:26 +02:00
Eli Zaretskii
3296031ad7 ; Another improvement for documentation of pixelwise scrolling
* doc/lispref/commands.texi (Misc Events): More details about
pixelwise mouse-wheel scrolling events.  (Bug#65070)
2023-08-20 11:09:40 +03:00
Yuan Fu
baeb2d71ae
Support defun navigation for DEFUN in c-ts-mode (bug#64442)
Before this change, beginning/end-of-defun just ignores DEFUN in
c-ts-mode. After this change, beginning/end-of-defun can recognize
DEFUN, but a DEFUN definition is considered two defuns. Eg,
beginning/end-of-defun will stop at (1) (2) and (3) in the following
snippet:

(1)DEFUN ("treesit-node-parser",
       Ftreesit_node_parser, Streesit_node_parser,
       1, 1, 0,
       doc: /* Return the parser to which NODE belongs.  */)
  (Lisp_Object node)
(2){
  CHECK_TS_NODE (node);
  return XTS_NODE (node)->parser;
}
(3)

Ideally we want point to only stop at (1) and (3), but that'll be a
lot harder to do.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--defun-valid-p): Refactor to take in account of DEFUN body.
(c-ts-mode--emacs-defun-body-p): New function.
(c-ts-base-mode): Add DEFUN and DEFUN body to recognized types.
(c-ts-mode--emacs-defun-at-point): Now that we recognize both parts of
a DEFUN as defun, c-ts-mode--emacs-defun-at-point needs to be updated
to adapt to it.
2023-08-19 14:55:32 -07:00
Eli Zaretskii
781ddd7e7d Fix touchpad scrolling on MS-Windows
* src/w32term.c (w32_construct_mouse_wheel): The number of lines
to scroll should always be positive in wheel-scroll events.
Whether to scroll up or down is encoded in the modifiers, which
produce either wheel-up or wheel-down event.  (Bug#65070)

* doc/lispref/commands.texi (Misc Events): Clarify the
documentation of 'wheel-up' and 'wheel-down' events.
2023-08-19 17:01:18 +03:00
Philip Kaludercic
c125bd060e Fix order in which package-vc dependencies are resolved
* lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies):
Avoid a type-mismatch when comparing two packages.  (Bug#65283)
2023-08-19 11:39:50 +02:00
Joseph Turner
500ced133a Fix building of VC package manuals with relative org links/includes
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Ensure that default-default is the docs-directory around
org-export-to-file to ensure that links to relative files work
correctly.  (Bug#65243)
2023-08-19 11:39:50 +02:00
Eli Zaretskii
456ecabe9e Fix the documentation of 'cl-flet'
* doc/misc/cl.texi (Function Bindings): Update the description.
(Bug#65362)
2023-08-19 11:50:09 +03:00
Eli Zaretskii
f6ebd1ef0d ; * src/treesit.c (Ftreesit_node_parent): Improve commentary. 2023-08-18 09:19:59 +03:00
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