Commit graph

165616 commits

Author SHA1 Message Date
Philipp Stephani
1a668cda8b Unbreak builds with CHECK_STRUCTS.
* src/pdumper.c (dump_buffer): Fix hash for 'struct buffer'.  The
recent changes to that structure where commits
8f3091defb and
0bd4661941, both of which just affected
comments.
2023-09-07 11:33:37 +02:00
Jens Schmidt
77b6e9bb17 Improve documentation of EPG
* lisp/epg.el (epg-context-set-passphrase-callback): Update
GnuPG-version-dependent information in docstring and refer to
Info node `(epa)' for details.
(epg-start-edit-key): Replace description of arguments by a
reference to `epg-edit-key'.
(epg-edit-key): More precisely describe callback operation and
arguments and provide an example of how to edit a key.  (Bug#65603)
2023-09-07 12:24:34 +03:00
Eli Zaretskii
d3382f9471 ; * lisp/completion.el (dynamic-completion-mode): Doc fix. 2023-09-07 09:52:23 +03:00
Daniel Martín
1458daf316 Avoid crashes on macOS with context menus
* src/nsmenu.m ([EmacsMenu menuNeedsUpdate:]): Avoid crashes with
context menus.  (Bug#63495)
2023-09-07 08:21:38 +03:00
Yuan Fu
14819131ff Fix c-ts-mode BSD style indentation
* lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles):
Add else_clause.

(cherry picked from commit d392a5d3c1)
2023-09-07 08:07:25 +03:00
Eshel Yaron
bc56da92d8 ; Fix error in 'tex-recenter-output-buffer'
* lisp/textmodes/tex-mode.el (tex-recenter-output-buffer): Check
that 'display-buffer' returned a window, rather than nil, before
selecting it.  (Bug#65762)
2023-09-06 19:37:38 +03:00
David Ponce
d17c5adc05 Fix regexp for recognizing PBM images
* lisp/image.el (image-type-header-regexps): Don't use [:space:],
as its meaning depends on the current buffer's syntax tables.
(Bug#65496)
2023-09-06 18:58:48 +03:00
Eli Zaretskii
9e9f61866e Improve wording in ELisp manual
* doc/lispref/objects.texi (Printed Representation): Improve
wording.  Suggested by Xie Shynur <one.last.kiss@outlook.com>.
(Bug# 60639)
2023-09-06 15:49:11 +03:00
Joseph Turner
7427efa033 Fix typo (Bug#65764)
* lisp/subr.el (backward-word-strictly): Fix typo.
2023-09-06 14:26:10 +02:00
Eli Zaretskii
59c6624408 ; * lisp/ido.el (ido-completion-buffer): Fix :type (bug#65756). 2023-09-06 13:49:32 +03:00
Po Lu
4ec4b18c2a Fix libgccjit build on Haiku
* configure.ac (LIBGCCJIT_LIBS): Link only with -lgccjit under
Haiku.
2023-09-06 11:19:38 +08:00
Stefan Monnier
80bdcf8f35 (regexp-tests-backtrack-optimization): Mark it as failing
* test/src/regex-emacs-tests.el (regexp-tests-backtrack-optimization):
The fix for bug#65726 broke some of the optimization added for bug#61514.
2023-09-05 10:54:25 -04:00
Mattias Engdegård
8a9e653cc8 ; Add regression test for bug#65726
* test/src/regex-emacs-tests.el
(regex-tests-mutual-exclusive-inf-rec): New test.
2023-09-05 15:39:29 +02:00
Stefan Monnier
6fad73d7cc * src/regex-emacs.c (mutually_exclusive_p): Fix inf-loop (bug#65726) 2023-09-04 13:11:31 -04:00
Eli Zaretskii
1d3d419607 ; * lisp/files.el (save-some-buffers-functions): Doc fix (bug#65414). 2023-09-04 19:06:19 +03:00
Stefan Kangas
42b14c6e5b Bump seq version to 2.24
* lisp/emacs-lisp/seq.el: Bump version to 2.24.  (Bug#60990)
2023-09-04 17:29:04 +02:00
Stefan Kangas
ff5190a174 Add note on ELPA to admin/notes/bug-triage
* admin/notes/bug-triage: Add section on (Non-)GNU ELPA packages and
do some copy editing.
2023-09-04 17:29:00 +02:00
Eli Zaretskii
f1e4cbe72a ; * etc/PROBLEMS: Minor wording fix. 2023-09-03 09:03:22 +03:00
Po Lu
fd5593c7f2 * etc/PROBLEMS: Mention bug#65432 and its remedy. 2023-09-03 09:25:06 +08:00
Theodor Thornhill
dd896ea1e6
Ignore errors when checking for object initializers (bug#63379)
Since this is merely a check for syntax, we don't really care about
any internal errors inside of backward-up-list.

* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Wrap
command in ignore-errors.
2023-09-02 19:35:00 +02:00
Stefan Kangas
3550f44c17 ; Fix typos 2023-09-02 18:57:11 +02:00
Stefan Kangas
5b246b9b81 * CONTRIBUTE: Document making ChangeLogs with Magit. 2023-09-02 16:13:08 +02:00
Stefan Kangas
0bd4661941 Doc fixes for obsolete functions and variables
* admin/notes/multi-tty:
* doc/emacs/building.texi (Debugger Operation):
* doc/misc/efaq-w32.texi (Line ends by file system):
* doc/misc/gnus.texi (Hashcash):
* lisp/emacs-lisp/eieio.el (eieio-class-parents)
(eieio-class-children):
* lisp/progmodes/perl-mode.el:
* lisp/textmodes/ispell.el (ispell-lookup-words):
* src/buffer.h: Update or delete references to variables and functions
made obsolete in Emacs 24.4.
2023-09-02 15:37:08 +02:00
Eli Zaretskii
524c0c34f2 ; * lisp/ffap.el (ffap-rfs-regexp): Fix :type (bug#65698). 2023-09-02 15:01:23 +03:00
Eli Zaretskii
f48dccc467 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29 2023-09-02 14:26:15 +03:00
Mauro Aranda
71a85e2266 A revision to the Widget manual
* doc/misc/widget.texi (Widgets Basics, Working with Widgets)
(Widgets and the Buffer, Widget Gallery, Customization): New chapters.
(Basic Types, Sexp Types): Demote to subsections.
(Widget Browser): Rename to Inspecting Widgets.
(Widget Properties): Remove.

(Top): Adapt menu to changes.
(Introduction): Rearrange text.  Move warnings to a better place, and
user options to the Customization chapter.
(User Interface): Don't fully describe commands and customization
options here.
(Setting Up the Buffer): Expand on widget creation process and add
documentation for useful functions which deal with
creation/conversion.
(Defining New Widgets): Expand the documentation on define-widget.
All relevant properties moved to the description of the default
widget, in Widget Gallery.
(Utilities): Add some more useful functions not previously documented.
(Wishlist): Remove out-of-date items.
2023-09-02 14:25:04 +03:00
Stefan Kangas
dbbcf4a659 Fix fontification of " in edit-kbd-macro
* lisp/edmacro.el (edit-kbd-macro): Fix fontification when editing
keyboard macros containing the " character.
2023-09-02 09:51:29 +02:00
Eli Zaretskii
2137fdfd55 * lisp/emacs-lisp/gv.el (buffer-local-value): Unobsolete (bug#65555). 2023-09-02 10:44:50 +03:00
Eli Zaretskii
e660ee88e3 ; Remove incorrect example from ELisp Reference manual
* doc/lispref/commands.texi (Event Examples): Remove incorrect
example of using SIGUSR1 signal as an event.  (Bug#65577)
2023-09-02 10:38:16 +03:00
Jens Schmidt
c32fd92d67 Add documentation to plstore.el
* lisp/plstore.el: Add link to epa manual.  Describe more
restrictions.  Fix a typo in the examples.  Fix terminology.  Mark
FIXMEs as such.
* lisp/plstore.el (plstore-save): Describe edge case when no recipient
matches and mark as FIXME.  (Bug#63627)
2023-09-02 10:34:06 +03:00
Stefan Kangas
57760f585e * lisp/help.el (substitute-quotes): Improve docstring. 2023-09-02 02:21:54 +02:00
Stefan Kangas
60dcea7658 Fix two defcustom :types
* lisp/frame.el (blink-cursor-blinks):
* lisp/url/url-vars.el (url-max-redirections): Revert defcustom :types
back to integer.  (Bug#65655)
2023-09-01 22:18:35 +02:00
Manuel Giraud
890a4c209a Fix `image-auto-resize-on-window-resize' custom :type
* lisp/image-mode.el (image-auto-resize-on-window-resize): Change
custom :type from integer to number to be able to set below 1
second.  (Bug#65626)
2023-09-01 20:17:39 +02:00
Ross Timson
369f2eea10 Add "terraform-ls" LSP server to Eglot
* lisp/progmodes/eglot.el (eglot-server-programs): Add "terraform-ls",
the official Terraform LSP server.  (Bug#65671)

Copyright-paperwork-exempt: yes
2023-09-01 19:58:26 +02:00
Eli Zaretskii
5cbe96d17f ; Improve documentation of 'char-table-range'
* doc/lispref/sequences.texi (Char-Tables):
* src/chartab.c (Fchar_table_range): Clarify what
'char-table-range' returns for an argument that is a cons cell.
2023-09-01 16:33:40 +03:00
Eli Zaretskii
a219ee8c31 Fix minor bugs in vc-git and vc-hg on Windows uncovered by vc-tests
* lisp/vc/vc-hg.el (vc-hg-state-slow): Non-existing files emit a
different message on MS-Windows; support that.
* lisp/vc/vc-git.el (vc-git-checkin): Make sure
'default-directory' is not nil when calling
'make-nearby-temp-file' on MS-Windows.

* test/lisp/vc/vc-tests.el (vc-test--version-diff): Run
'default-directory' through 'file-truename', otherwise the
'vc-test-cvs06-version-diff' test might fail on MS-Windows.
2023-09-01 16:08:36 +03:00
Dmitry Gutov
3f7598806e Add syntax-propertize-function to js-ts-mode
* lisp/progmodes/js.el (js-ts--s-p-query):
New variable (bug#65470).
(js-ts--syntax-propertize): New function.
(js-ts-mode): Use it.
2023-09-01 04:41:37 +03:00
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