]> git.eshelyaron.com Git - emacs.git/log
emacs.git
21 months ago* etc/USE-PACKAGE-NEWS: Delete file. feature/use-package
Stefan Kangas [Thu, 8 Dec 2022 17:00:19 +0000 (18:00 +0100)]
* etc/USE-PACKAGE-NEWS: Delete file.

Ref: https://lists.gnu.org/r/emacs-devel/2022-11/msg01535.html

21 months ago* admin/git-bisect-start: Prune use-package merge commits.
Stefan Kangas [Thu, 8 Dec 2022 16:49:30 +0000 (17:49 +0100)]
* admin/git-bisect-start: Prune use-package merge commits.

21 months ago; Minor doc fixes in bind-key.el
Stefan Kangas [Thu, 8 Dec 2022 16:14:31 +0000 (17:14 +0100)]
; Minor doc fixes in bind-key.el

* lisp/use-package/bind-key.el (bind-key-segregation-regexp)
(bind-key): Minor doc fixes.

21 months agoUpdate use-package defgroups
Stefan Kangas [Thu, 8 Dec 2022 16:10:47 +0000 (17:10 +0100)]
Update use-package defgroups

* lisp/use-package/bind-key.el (bind-key):
* lisp/use-package/use-package-core.el (use-package):
* lisp/use-package/use-package-ensure.el (use-package-ensure): Add
:link, :version and :group to defgroups.

21 months agoDrop key-chord.el support from use-package
Stefan Kangas [Thu, 8 Dec 2022 00:12:02 +0000 (01:12 +0100)]
Drop key-chord.el support from use-package

* lisp/use-package/bind-chord.el:
* lisp/use-package/use-package-chords.el:
* test/lisp/use-package/use-package-chords-tests.el: Delete files.
* doc/misc/use-package.texi (use-package-chords): Delete section.
Ref: https://lists.gnu.org/r/emacs-devel/2022-12/msg00052.html

21 months agoChange use-package custom :group to `initialization`
Stefan Kangas [Thu, 8 Dec 2022 07:48:24 +0000 (08:48 +0100)]
Change use-package custom :group to `initialization`

* lisp/use-package/use-package-core.el (use-package): Move
defgroup to custom :group 'initialization'.

21 months ago; Document use-package-reset-statistics
Stefan Kangas [Thu, 8 Dec 2022 05:36:44 +0000 (06:36 +0100)]
; Document use-package-reset-statistics

* doc/misc/use-package.texi (Gathering Statistics): Document
use-package-reset-statistics.

21 months ago; use-package: Improve :ensure-system-package docstrings
Stefan Kangas [Thu, 8 Dec 2022 05:27:22 +0000 (06:27 +0100)]
; use-package: Improve :ensure-system-package docstrings

* lisp/use-package/use-package-ensure-system-package.el
(use-package-ensure-system-package--custom-packages)
(use-package-ensure-system-package-consify)
(use-package-ensure-system-package-update-custom-packages)
(use-package-normalize/:ensure-system-package)
(use-package-ensure-system-package-exists?): Improve docstrings.

21 months agouse-package: Improve :mode keyword documentation
Stefan Kangas [Thu, 8 Dec 2022 01:25:53 +0000 (02:25 +0100)]
use-package: Improve :mode keyword documentation

* doc/misc/use-package.texi (Modes and interpreters): Improve
section and document the use of a list of regexps.

Resolves https://github.com/jwiegley/use-package/issues/996

21 months agoImprove bind-keys* and override-global-mode docstrings
Stefan Kangas [Thu, 8 Dec 2022 01:00:13 +0000 (02:00 +0100)]
Improve bind-keys* and override-global-mode docstrings

* lisp/use-package/bind-key.el (bind-keys*): Add docstring.
(override-global-mode) Improve docstring.

21 months ago; * doc/misc/use-package.texi: Improve indexing.
Stefan Kangas [Thu, 8 Dec 2022 00:49:04 +0000 (01:49 +0100)]
; * doc/misc/use-package.texi: Improve indexing.

21 months agoAdd new use-package manual
Stefan Kangas [Wed, 7 Dec 2022 23:47:04 +0000 (00:47 +0100)]
Add new use-package manual

* doc/misc/use-package.texi: Rewrite manual.

21 months agoFix use-package tests
Stefan Kangas [Fri, 2 Dec 2022 23:55:56 +0000 (00:55 +0100)]
Fix use-package tests

* test/lisp/use-package/use-package-chords-tests.el:
* test/lisp/use-package/use-package-tests.el: Remove local
variables section.  Require 'ert' and fix copyright header.

21 months ago* doc/misc/Makefile.in (INFO_COMMON): Add use-package.
Stefan Kangas [Wed, 30 Nov 2022 15:17:38 +0000 (16:17 +0100)]
* doc/misc/Makefile.in (INFO_COMMON): Add use-package.

21 months ago; * etc/NEWS: Mention use-package.
Stefan Kangas [Wed, 30 Nov 2022 15:15:15 +0000 (16:15 +0100)]
; * etc/NEWS: Mention use-package.

21 months ago; Merge from https://github.com/jwiegley/use-package
Stefan Kangas [Wed, 30 Nov 2022 01:38:56 +0000 (02:38 +0100)]
; Merge from https://github.com/jwiegley/use-package

21 months agoFix interactive selection of emacs-lock mode, broken by 2a4b0da28c
Juanma Barranquero [Wed, 30 Nov 2022 00:38:59 +0000 (01:38 +0100)]
Fix interactive selection of emacs-lock mode, broken by 2a4b0da28c

* lisp/emacs-lock.el (emacs-lock--set-mode): Check that
arg is 4 and prefix is '(4).
(emacs-lock-mode): Pass also `current-prefix-arg' to
`emacs-lock--set-mode'.

21 months agoFix typo in flag to load Emacs-specific LLDB commands
Daniel Martín [Tue, 29 Nov 2022 22:03:42 +0000 (23:03 +0100)]
Fix typo in flag to load Emacs-specific LLDB commands

* src/.lldbinit: Fix typo in flag to parse .lldbinit files from the
current directory.  (Bug#59702)

21 months ago; Typo fixes in etc/NEWS and lisp/ files
Juanma Barranquero [Tue, 29 Nov 2022 21:37:18 +0000 (22:37 +0100)]
; Typo fixes in etc/NEWS and lisp/ files

21 months agoCC Mode: Prevent lone ids being parsed as types unless in decl arglists
Alan Mackenzie [Tue, 29 Nov 2022 20:19:34 +0000 (20:19 +0000)]
CC Mode: Prevent lone ids being parsed as types unless in decl arglists

This fixes bug #59051.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): In the test for the
last invocation of c-fdoc-shift-type-backward before CASE 1, additionally
test CONTEXT not being an arglist or BACKUP-AT-TYPE being non-nil.

21 months ago; Improve error message when LSP server not found
Stefan Kangas [Tue, 29 Nov 2022 19:28:16 +0000 (20:28 +0100)]
; Improve error message when LSP server not found

* lisp/progmodes/eglot.el (eglot--guess-contact): Improve wording of
error message when no LSP server was found.

21 months ago; * doc/misc/eglot.texi (Setting Up LSP Servers): Improve indexing.
Stefan Kangas [Tue, 29 Nov 2022 19:27:52 +0000 (20:27 +0100)]
; * doc/misc/eglot.texi (Setting Up LSP Servers): Improve indexing.

21 months agoAllow csharp-mode in c-default-style
Mattias Engdegård [Tue, 29 Nov 2022 16:20:16 +0000 (17:20 +0100)]
Allow csharp-mode in c-default-style

* lisp/progmodes/cc-vars.el (c-default-style):
Add csharp-mode to the type.  This fixes test-custom-opts.

21 months agoIn project-find-file, add abbreviated file names to history
Augusto Stoffel [Mon, 28 Nov 2022 22:50:41 +0000 (23:50 +0100)]
In project-find-file, add abbreviated file names to history

* lisp/progmodes/project.el (project--read-file-cpd-relative):
Use 'abbreviate-file-name' (bug#58447).

21 months ago* lisp/progmodes/project.el (project-vc-name): Fix the :type form (bug#48747).
Dmitry Gutov [Tue, 29 Nov 2022 16:01:19 +0000 (18:01 +0200)]
* lisp/progmodes/project.el (project-vc-name): Fix the :type form (bug#48747).

21 months agoTramp cleanup
Michael Albinus [Tue, 29 Nov 2022 16:00:02 +0000 (17:00 +0100)]
Tramp cleanup

* doc/misc/tramp.texi: Use @value{tramp} where appropriate.

* doc/misc/trampver.texi: Change "Tramp" format ifplaintext.

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
Ignore `memory-info'.

21 months agoMerge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29
Eli Zaretskii [Tue, 29 Nov 2022 11:55:31 +0000 (13:55 +0200)]
Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29

21 months ago; Fix typo in NEWS
Kai Ma [Tue, 29 Nov 2022 09:57:27 +0000 (10:57 +0100)]
; Fix typo in NEWS

21 months agoAllow be-resources to fail
Po Lu [Tue, 29 Nov 2022 06:25:04 +0000 (06:25 +0000)]
Allow be-resources to fail

* lib-src/be_resources.cc (be_perror): Print additional blurb.
(main): Return 0 on failure as well, but print the blurb.
Problem reported by the Haiku packager.

21 months agoSimplify erc-sasl's auth-source API
F. Jason Park [Thu, 24 Nov 2022 05:31:19 +0000 (21:31 -0800)]
Simplify erc-sasl's auth-source API

* doc/misc/erc.texi: Revise descriptions in SASL chapter to reflect
simplified auth-source options.

* lisp/erc/erc-sasl.el (erc-sasl-password,
erc-sasl-auth-source-function): Revise doc strings.
(erc-sasl-auth-source-password-as-host): New function to serve as
more useful choice for option `erc-sasl-auth-source-function'.
(erc-sasl--read-password): Promote auth-source to pole position, above
an explicit string and `:password'.

* test/lisp/erc/erc-sasl-tests.el (erc-sasl--read-password--basic):
Massage tests to conform to simplified `erc-sasl-password'
API.  (Bug#29108.)

21 months ago* doc/misc/erc.texi: Revise SASL and modules chapters.
F. Jason Park [Thu, 24 Nov 2022 05:31:19 +0000 (21:31 -0800)]
* doc/misc/erc.texi: Revise SASL and modules chapters.

21 months agoAdd erc-sasl-auth-source-function to cached options
F. Jason Park [Thu, 24 Nov 2022 05:31:19 +0000 (21:31 -0800)]
Add erc-sasl-auth-source-function to cached options

* lisp/erc/erc-sasl.el (erc-sasl--read-password): Consult cached
options instead of `erc-sasl-auth-source-function'.
(erc-sasl--init): Add `erc-sasl-auth-source-function' to
`erc-sasl--options'.

* test/lisp/erc/erc-sasl-tests.el (erc-sasl--read-password--basic,
erc-sasl--read-password--auth-source): Look for original value of
`erc-sasl-auth-source-function' in `erc-sasl--options' under the
`authfn' key.

21 months agoImprove fontification in csharp-ts-mode
Jostein Kjønigsen [Mon, 28 Nov 2022 12:06:03 +0000 (13:06 +0100)]
Improve fontification in csharp-ts-mode

* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
Improve rules for variables, new-expressions, and catch statements.

21 months agoImprove fontification in typescript-ts-mode
Jostein Kjønigsen [Mon, 28 Nov 2022 15:05:27 +0000 (16:05 +0100)]
Improve fontification in typescript-ts-mode

- Restore method-name fontification.
- Fontify all types in class-declarations, extendees too

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Change patterns.

21 months agoAdd more font-lock settings to css-ts-mode
Theodor Thornhill [Mon, 28 Nov 2022 08:35:15 +0000 (09:35 +0100)]
Add more font-lock settings to css-ts-mode

* lisp/textmodes/css-mode.el (css--treesit-settings): Add new
font-lock features 'query', 'keyword', 'operator' and 'bracket'.
(css-ts-mode): Use new features.

21 months agoReparse tree-sitter tree when buffer restriction changes
Yuan Fu [Mon, 28 Nov 2022 22:21:39 +0000 (14:21 -0800)]
Reparse tree-sitter tree when buffer restriction changes

* src/treesit.c (treesit_sync_visible_region): Set nee_reparse flag to
true if buffer range changes.  Add some assertion.

* src/treesit.c (treesit_ensure_parsed): Move
treesit_sync_visible_region in front of the check for need_reparse.

21 months ago; typos
Mattias Engdegård [Mon, 28 Nov 2022 18:46:10 +0000 (19:46 +0100)]
; typos

(cherry picked from commit 7939184f8e0370e7a3397d492812c6d202c2a193)

21 months agoFix GUD item on the menu bar in source buffers
Eli Zaretskii [Mon, 28 Nov 2022 19:19:22 +0000 (21:19 +0200)]
Fix GUD item on the menu bar in source buffers

* lisp/progmodes/gud.el (alist-get): Restore gud-minor-mode menu
on the menu bar.  (Bug#59605)

21 months agoCut the emacs-29 release branch
Eli Zaretskii [Mon, 28 Nov 2022 17:47:35 +0000 (19:47 +0200)]
Cut the emacs-29 release branch

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 29.0.60.

* admin/admin.el (set-version): Fix regexp for configure.ac.

* lisp/cus-edit.el (customize-changed-options-previous-release):
Bump last version to 28.2.

21 months agoDo not prune native-compiled system directories (bug#59658)
Juanma Barranquero [Mon, 28 Nov 2022 16:46:21 +0000 (17:46 +0100)]
Do not prune native-compiled system directories (bug#59658)

* lisp/emacs-lisp/comp.el (native-compile-prune-cache):
Skip last directory in `native-comp-eln-load-path'.

21 months ago; Fix typo in eglot-alternatives (Bug#59653)
Stefan Kangas [Mon, 28 Nov 2022 14:32:25 +0000 (15:32 +0100)]
; Fix typo in eglot-alternatives (Bug#59653)

* lisp/progmodes/eglot.el (eglot-alternatives): Fix typo.
Problem reported by Arash Esbati <arash@gnu.org>.

21 months agoFix display of long completions.
Gregory Heytings [Mon, 28 Nov 2022 12:17:30 +0000 (12:17 +0000)]
Fix display of long completions.

* lisp/minibuffer.el (completion--insert-strings): Do not assume
"at least 2 columns", which is not possible when completion
strings are long, e.g. with completions-detailed set.

21 months ago; * doc/lispref/windows.texi (Selecting Windows): Doc fix
Juanma Barranquero [Mon, 28 Nov 2022 11:58:26 +0000 (12:58 +0100)]
; * doc/lispref/windows.texi (Selecting Windows): Doc fix

21 months ago; Don't emit a "Server stopped" message when restarting the Emacs server
Jim Porter [Mon, 28 Nov 2022 01:22:49 +0000 (17:22 -0800)]
; Don't emit a "Server stopped" message when restarting the Emacs server

* lisp/server.el (server-stop): Return non-nil when we actually stop
the server.  Don't message about stopping the server here (but do log
it).
(server-start): Emit the appropriate message about stopping or
restarting the server.

21 months agoDo not enter locked narrowing when it would span the whole buffer
Gregory Heytings [Mon, 28 Nov 2022 01:20:46 +0000 (01:20 +0000)]
Do not enter locked narrowing when it would span the whole buffer

* src/xdisp.c (handle_fontified_prop):
* src/keyboard.c (safe_run_hooks_maybe_narrowed): Add condition.

21 months ago* lisp/progmodes/xref.el (xref--outdated-p): Fix broken docstring.
Dmitry Gutov [Mon, 28 Nov 2022 01:07:01 +0000 (03:07 +0200)]
* lisp/progmodes/xref.el (xref--outdated-p): Fix broken docstring.

21 months agoCatch more cases in info--ensure-not-in-directory-node
Stefan Kangas [Mon, 28 Nov 2022 00:32:01 +0000 (01:32 +0100)]
Catch more cases in info--ensure-not-in-directory-node

* lisp/info.el (info--ensure-not-in-directory-node): Fix the case
where "DIR" is in upper-case, and if 'Info-current-file' is an
absolute file name.
Problem reported by Eli Zaretskii <eliz@gnu.org>.

21 months agoFix incompatible -t and -r options in emacsclient
Gregory Heytings [Sun, 27 Nov 2022 23:15:00 +0000 (23:15 +0000)]
Fix incompatible -t and -r options in emacsclient

* lib-src/emacsclient.c (decode_options): Do not allow -t and -r
together.

21 months agoMinor improvements to locked narrowing
Gregory Heytings [Sun, 27 Nov 2022 22:53:20 +0000 (22:53 +0000)]
Minor improvements to locked narrowing

* src/xdisp.c (get_locked_narrowing_begv)
(get_locked_narrowing_zv): Safer handling of negative values.
(handle_fontified_prop): Do not use locked narrowing if the region
size is <= 0.

* src/keyboard.c (safe_run_hooks_maybe_narrowed): Do not use
locked narrowing if the region size is <= 0.

21 months agoRemove treesit-comment-start/end and use comment-start/end-skip
Yuan Fu [Sun, 27 Nov 2022 22:15:57 +0000 (14:15 -0800)]
Remove treesit-comment-start/end and use comment-start/end-skip

treesit-comment-start/end is unnecessary because of
comment-start/end-skip, so they should be removed.

Cleanup and set comment-start/end-skip for tree-sitter C-like major
modes.

I replaced the [ \t]* part in comment-start-skip with (syntax
whitespace), which is what comment-end-skip uses.  I also added
grouping in comment-start-skip to match that of comment-end-skip.

* lisp/progmodes/c-ts-mode.el (c-ts-mode)
(c++-ts-mode)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode)
* lisp/progmodes/java-ts-mode.el (java-ts-mode)
* lisp/progmodes/js.el (js-ts-mode)
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Setup
comment-start/end-skip.

* lisp/treesit.el (treesit-comment-start)
(treesit-comment-end): Remove variables.
(treesit-simple-indent-presets): Use comment-start/end-skip instead.

21 months agoMerge pull request from skangas/revert-for-copyright
John Wiegley [Sun, 27 Nov 2022 22:18:03 +0000 (14:18 -0800)]
Merge pull request from skangas/revert-for-copyright

GitHub-reference: https://github.com/jwiegley/use-package/issues/1026

21 months agoMerge pull request from skangas/revert-for-copyright2
John Wiegley [Sun, 27 Nov 2022 22:17:52 +0000 (14:17 -0800)]
Merge pull request from skangas/revert-for-copyright2

GitHub-reference: https://github.com/jwiegley/use-package/issues/1027

21 months agoMerge branch 'feature/improved-locked-narrowing'
Gregory Heytings [Sun, 27 Nov 2022 21:19:41 +0000 (22:19 +0100)]
Merge branch 'feature/improved-locked-narrowing'

21 months agoFix the new ctags test
Eli Zaretskii [Sun, 27 Nov 2022 18:01:50 +0000 (20:01 +0200)]
Fix the new ctags test

* test/manual/etags/Makefile (ctags_update): Sort CTAGS* files
before comparing.  Patch by lu4nx <lx@shellcodes.org>.  (Bug#59544)

* .gitignore: Ignore CTAGS*.sorted files.

21 months ago; Consistently call alists "association list"
Stefan Kangas [Sun, 27 Nov 2022 17:07:57 +0000 (18:07 +0100)]
; Consistently call alists "association list"

* doc/lispref/compile.texi (Compiler Errors):
* doc/misc/gnus.texi (Score File Format):
* etc/NEWS.24:
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings):
* lisp/progmodes/gdb-mi.el (gdb-threads-list)
(gdb-breakpoints-list, gdb-place-breakpoints): Prefer the term
"association list" for alists.

21 months ago; * src/treesit.c (Ftreesit_parser_included_ranges): Doc fix.
Eli Zaretskii [Sun, 27 Nov 2022 17:08:18 +0000 (19:08 +0200)]
; * src/treesit.c (Ftreesit_parser_included_ranges): Doc fix.

21 months ago; Fix typo (Bug#59634)
Stefan Kangas [Sun, 27 Nov 2022 17:02:55 +0000 (18:02 +0100)]
; Fix typo (Bug#59634)

* src/treesit.c (Ftreesit_parser_included_ranges): Fix typo.

21 months ago; * lisp/progmodes/xref.el: Fix some typos
Juanma Barranquero [Sun, 27 Nov 2022 16:29:58 +0000 (17:29 +0100)]
; * lisp/progmodes/xref.el: Fix some typos

21 months agoExtend memory-info for remote systems
Michael Albinus [Sun, 27 Nov 2022 15:57:03 +0000 (16:57 +0100)]
Extend memory-info for remote systems

* doc/lispref/files.texi (Magic File Names): Add memory-info.

* doc/lispref/internals.texi (Garbage Collection): memory-info can
also retrieve values from remote systems.

* etc/NEWS: Document changes in memory-info.  Fix typos.

* lisp/files.el (warn-maybe-out-of-memory): Ensure local memory info.

* lisp/net/tramp.el (tramp-handle-memory-info): New defun.
(tramp-file-name-for-operation)
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist)
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add 'memory-info'.

* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-exec-path):
Let-bind `process-file-side-effects'.

* src/alloc.c (Fmemory_info): Support remote systems.
(Qmemory_info): Declare.

* test/lisp/net/tramp-tests.el (tramp-test31-memory-info): New test.

21 months agoConsistently refer to VC packages as such
Philip Kaludercic [Sun, 27 Nov 2022 14:31:29 +0000 (15:31 +0100)]
Consistently refer to VC packages as such

* lisp/emacs-lisp/package-vc.el: Replace instances of "source package"
in comments and docstrings.
* lisp/emacs-lisp/package.el: Replace instances of "source package" in
comments and docstrings.

21 months agoFix xref interaction with which-func (bug#59575)
Juanma Barranquero [Sun, 27 Nov 2022 13:57:14 +0000 (14:57 +0100)]
Fix xref interaction with which-func (bug#59575)

* lisp/progmodes/xref.el (xref--add-log-current-defun):
New function.
(xref--xref-buffer-mode): Assign it buffer-locally to
`add-log-current-defun-function'.

21 months agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 27 Nov 2022 13:44:17 +0000 (15:44 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

21 months ago; Fix last change in etags.c
Eli Zaretskii [Sun, 27 Nov 2022 13:43:39 +0000 (15:43 +0200)]
; Fix last change in etags.c

* lib-src/etags.c (cleanup_tags_file): Renamed from
clean_matched_file_tag.

* test/manual/etags/CTAGS.good_update:
* test/manual/etags/CTAGS.good_crlf: Update to match the test.

21 months agoFixed ctags local command execute vulnerability
lu4nx [Fri, 25 Nov 2022 06:38:29 +0000 (14:38 +0800)]
Fixed ctags local command execute vulnerability

* lib-src/etags.c:

(clean_matched_file_tag): New function
(do_move_file): New function
(readline_internal):
Add `leave_cr` parameter, if true, include the \r character

* test/manual/etags/CTAGS.good_crlf: New file
* test/manual/etags/CTAGS.good_update: New file
* test/manual/etags/crlf: New file
* test/manual/etags/Makefile: Add `ctags -u` test cases

21 months agoFix xref to correctly display Windows absolute filenames
Juanma Barranquero [Sun, 27 Nov 2022 11:32:04 +0000 (12:32 +0100)]
Fix xref to correctly display Windows absolute filenames

* lisp/progmodes/xref.el (xref--group-name-for-display):
Use `file-name-absolute-p' instead of faking it. (Discussed
in bug#59628.)

21 months ago* lib-src/emacsclient.c (print_help_and_exit): Fix --timeout.
Shohei YOSHIDA [Sun, 27 Nov 2022 12:58:27 +0000 (21:58 +0900)]
* lib-src/emacsclient.c (print_help_and_exit): Fix --timeout.

21 months agoMake frame synchronization more robust
Po Lu [Sun, 27 Nov 2022 11:17:38 +0000 (19:17 +0800)]
Make frame synchronization more robust

* src/xterm.c (x_sync_wait_for_frame_drawn_event)
(x_sync_handle_frame_drawn): Only cancel frame synchronization
if hanging twice or more in a row.
* src/xterm.h (struct x_output, FRAME_X_DRAW_JUST_HUNG): New
flag.

21 months ago; * src/xdisp.c (get_locked_narrowing_begv): Minor change.
Gregory Heytings [Sun, 27 Nov 2022 10:25:19 +0000 (10:25 +0000)]
; * src/xdisp.c (get_locked_narrowing_begv): Minor change.

21 months agoRemove compatibility code in csharp-mode
Theodor Thornhill [Sat, 26 Nov 2022 19:10:58 +0000 (20:10 +0100)]
Remove compatibility code in csharp-mode

* lisp/progmodes/csharp-mode.el (c-basic-matchers-before): Remove
invalid string check for Emacs 27.
(version=): Remove compatibility hack for string handling in CC Mode
in Emacs 27.1.  (Bug#59602)

21 months agoRevert "Add: 'local' keyword"
Stefan Kangas [Sun, 27 Nov 2022 09:14:35 +0000 (10:14 +0100)]
Revert "Add: 'local' keyword"

This reverts commit 620fe443c2e7598191cb5d6c6a41064471edb57c.

21 months agoRemove tests lacking a copyright assignment for now
Stefan Kangas [Sun, 27 Nov 2022 09:02:04 +0000 (10:02 +0100)]
Remove tests lacking a copyright assignment for now

* use-package-tests.el (use-package-test/pre-post-hooks-with-:config)
(use-package-test/pre-post-hooks-without-:config): Remove tests.

21 months ago; * src/treesit.c (Ftreesit_induce_sparse_tree): Doc fix.
Eli Zaretskii [Sun, 27 Nov 2022 08:10:05 +0000 (10:10 +0200)]
; * src/treesit.c (Ftreesit_induce_sparse_tree): Doc fix.

21 months ago; Fix recent documentation changes in treesit.el
Eli Zaretskii [Sun, 27 Nov 2022 08:06:02 +0000 (10:06 +0200)]
; Fix recent documentation changes in treesit.el

* lisp/treesit.el (treesit-font-lock-level)
(treesit-font-lock-recompute-features): Doc fixes.

21 months ago; * lisp/progmodes/sh-script.el (sh--redirect-bash-ts-mode): Doc fix.
Eli Zaretskii [Sun, 27 Nov 2022 07:58:02 +0000 (09:58 +0200)]
; * lisp/progmodes/sh-script.el (sh--redirect-bash-ts-mode): Doc fix.

21 months agoAdd js-ts-mode to eglot-server-programs
Theodor Thornhill [Sat, 26 Nov 2022 20:12:51 +0000 (21:12 +0100)]
Add js-ts-mode to eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Add js-ts-mode as
an alternative.  (Bug#59252)

21 months agoImprove describe-text-properties display
Stefan Kangas [Sun, 27 Nov 2022 06:29:54 +0000 (07:29 +0100)]
Improve describe-text-properties display

* lisp/descr-text.el (describe-property-list): Don't propertize white
space with the 'help-argument-name' face.  This improves display
slightly when that face has an underline.

21 months ago; * src/editfns.c: Minor improvements in comments.
Gregory Heytings [Sun, 27 Nov 2022 01:02:16 +0000 (01:02 +0000)]
; * src/editfns.c: Minor improvements in comments.

21 months agoSimplify narrowing_locks_restore
Gregory Heytings [Sun, 27 Nov 2022 00:53:01 +0000 (00:53 +0000)]
Simplify narrowing_locks_restore

* src/editfns.c (narrowing_locks_restore): Simplify.

21 months agoImprove handling of killed buffers in locked narrowings
Gregory Heytings [Sun, 27 Nov 2022 00:24:40 +0000 (00:24 +0000)]
Improve handling of killed buffers in locked narrowings

* src/editfns.c (narrowing_locks_add, narrowing_locks_remove):
New functions, factored out.
(narrowing_lock_push, narrowing_lock_pop)
(narrowing_locks_restore): Use the new functions.
(narrowing_lock_get_bound): Return NULL for killed buffers.
(reset_outermost_narrowings, unwind_reset_outermost_narrowing):
Remove killed buffers from the 'narrowing_locks' alist.

21 months agoMake typescript-ts-mode not fallback to js-mode
Yuan Fu [Sat, 26 Nov 2022 23:32:57 +0000 (15:32 -0800)]
Make typescript-ts-mode not fallback to js-mode

1. js-mode might not be able to handle typescript file
2. Now that we use separate modes for tree-sitter modes, not falling
back makes tree-sitter modes more consistent

* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Remove
the fallback code.

21 months agoMake bash-ts-mode fall back to sh-mode if the file isn't in Bash
Yuan Fu [Sat, 26 Nov 2022 23:31:48 +0000 (15:31 -0800)]
Make bash-ts-mode fall back to sh-mode if the file isn't in Bash

* lisp/progmodes/sh-script.el (sh--guess-shell): Take out into a new
function.
(sh-base-mode): Use the new function.
(bash-ts-mode): Update docstring.
(sh--redirect-recursing): New variable.
(sh--redirect-bash-ts-mode): New function.

21 months agoCorrectly fontify types in typeof() expression in csharp-ts-mode
Jostein Kjønigsen [Fri, 25 Nov 2022 19:15:06 +0000 (20:15 +0100)]
Correctly fontify types in typeof() expression in csharp-ts-mode

* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
Add new pattern.

21 months agoReorganize treesit-font-lock-feaure-list's to the new level scheme
Yuan Fu [Sat, 26 Nov 2022 23:05:57 +0000 (15:05 -0800)]
Reorganize treesit-font-lock-feaure-list's to the new level scheme

* lisp/progmodes/c-ts-mode.el (c-ts-mode--base-mode)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode)
* lisp/progmodes/java-ts-mode.el (java-ts-mode)
* lisp/progmodes/js.el (js-ts-mode)
* lisp/progmodes/python.el (python-ts-mode)
* lisp/progmodes/sh-script.el (bash-ts-mode)
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode):
Reorganized treesit-font-lock-feature-list.

21 months agoAdd treesit-font-lock-level
Yuan Fu [Sat, 26 Nov 2022 22:54:55 +0000 (14:54 -0800)]
Add treesit-font-lock-level

This replaces font-lock-maximum-decoration and allows us to disable
the busiest fontification level by default.

* lisp/treesit.el (treesit-font-lock-level): New variable.
(treesit-font-lock-feature-list)
(treesit-font-lock-settings): Change docstring.
(treesit-font-lock-recompute-features): Use the new variable.

21 months agoAdd default limit for tree-sitter recursive tree-traversing function
Yuan Fu [Sat, 26 Nov 2022 22:51:26 +0000 (14:51 -0800)]
Add default limit for tree-sitter recursive tree-traversing function

This fixes bug#59426.

* src/treesit.c (treesit_search_dfs)
(treesit_build_sparse_tree): Remove no_limit parameter.
(Ftreesit_search_forward, Ftreesit_induce_sparse_tree): Use default
limit of 1000.

* doc/lispref/parsing.texi (Retrieving Nodes): Update manual.

21 months agoPartially fix some python tests (bug#59477)
Yuan Fu [Sat, 26 Nov 2022 22:08:11 +0000 (14:08 -0800)]
Partially fix some python tests (bug#59477)

This fixes

python-font-lock-assignment-statement-multiline-1
python-font-lock-assignment-statement-multiline-2
python-font-lock-assignment-statement-multiline-3
python-font-lock-assignment-statement-multiline-4
python-font-lock-assignment-statement-multiline-5
python-font-lock-assignment-statement-multiline-6

but leaves

python-tests--fill-long-first-line

unfixed.

* lisp/progmodes/python.el (python-mode): Add the missing setup.

21 months agoMinor improvements for locked narrowing
Gregory Heytings [Sat, 26 Nov 2022 22:38:12 +0000 (22:38 +0000)]
Minor improvements for locked narrowing

* src/editfns.c (narrowing_lock_pop): Clarify comment, replace
assertion by return.
(narrowing_locks_restore): Add comments.

* lisp/subr.el (with-narrowing, internal--with-narrowing):
Simplify, use a single helper function with an optional argument.

21 months agoImprove robustness of server.el tests
Jim Porter [Fri, 25 Nov 2022 19:13:06 +0000 (11:13 -0800)]
Improve robustness of server.el tests

* lisp/emacs-lisp/ert.el (ert--insert-infos): Allow 'message' to be a
function that is called when inserting the info.
(ert-info): Update docstring to describe using a function for
MESSAGE-FORM.

* lisp/server.el (server-start): Log when the server is starting.

* test/lisp/server-tests.el (server-tests/can-create-frames-p): New
constant.  Use it to skip tests that need to create frames.
(server-tests/start-emacsclient): Rename to...
(server-tests/start-client): ... this, and set the process's buffer.
(server-tests/with-server): Put the server file in a temporary
directory so we don't conflict with real Emacs servers.
(server-tests/with-client): New macro...
(server-tests/server-start/stop-prompt-with-client)
(server-tests/emacsclient/server-edit)
(server-tests/emacsclient/create-frame)
(server-tests/emacsclient/create-frame): ... use it.
(server-tests/server-start/stop-prompt-with-client): Simplify.

21 months agoRemove mentions of create-directory nnmaildir setting
Eric Abrahamsen [Sat, 26 Nov 2022 20:12:50 +0000 (12:12 -0800)]
Remove mentions of create-directory nnmaildir setting

* lisp/gnus/nnmaildir.el (nnmaildir-open-server): The
'create-directory server parameter should have been removed entirely,
and supplanted by 'target-prefix. Remove check for old parameter.
* doc/misc/gnus.texi (Maildir): Delete mention from manual.

21 months agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sat, 26 Nov 2022 18:49:04 +0000 (10:49 -0800)]
Update from Gnulib by running admin/merge-gnulib

21 months agoDocstring improvements
Gregory Heytings [Sat, 26 Nov 2022 16:37:29 +0000 (16:37 +0000)]
Docstring improvements

* src/xdisp.c (syms_of_xdisp):
* src/keyboard.c (syms_of_keyboard):
Docstring improvements.

21 months agoDocstring improvements
Gregory Heytings [Sat, 26 Nov 2022 16:29:52 +0000 (16:29 +0000)]
Docstring improvements

* src/xdisp.c (syms_of_xdisp):
* src/keyboard.c (syms_of_keyboard):
* src/buffer.c (syms_of_buffer):
Docstring improvements.

21 months agoFurther improvements to narrowing locks
Gregory Heytings [Sat, 26 Nov 2022 16:13:04 +0000 (16:13 +0000)]
Further improvements to narrowing locks

* src/editfns.c:
(narrowing_lock_get_bound): Return a pointer to a struct
Lisp_Marker instead of a character position.  Suggested by Eli
Zaretskii.
(reset_outermost_narrowings, unwind_reset_outermost_narrowing)
(Fwiden, Fnarrow_to_region): Adapt accordingly.
(narrowing_lock_peek_tag, narrowing_lock_push)
(narrowing_lock_pop, narrowing_locks_save)
(narrowing_locks_restore): Use XCAR/XCDR/XSETCAR instead of
Fcar/Fcdr/Fsetcar.

21 months ago; * src/treesit.c: Fix typos and wording in comments.
Eli Zaretskii [Sat, 26 Nov 2022 15:50:36 +0000 (17:50 +0200)]
; * src/treesit.c: Fix typos and wording in comments.

21 months ago; doc fix: Use w32-* names instead of obsolete ones
Juanma Barranquero [Sat, 26 Nov 2022 14:34:07 +0000 (15:34 +0100)]
; doc fix: Use w32-* names instead of obsolete ones

* doc/emacs/msdos.texi (Text and Binary): Describe
w32-(add|remove)-untranslated-fiesystem functions by
their non-obsolete name.

21 months ago; Don't mention Makefiles twice in `(emacs) Program Modes`
Stefan Kangas [Sat, 26 Nov 2022 14:47:33 +0000 (15:47 +0100)]
; Don't mention Makefiles twice in `(emacs) Program Modes`

* doc/emacs/programs.texi (Program Modes): Don't mention Makefiles
twice.  (Bug#59610)

21 months ago; Clean up unused function: cuserid
lu4nx [Sat, 26 Nov 2022 13:02:19 +0000 (21:02 +0800)]
; Clean up unused function: cuserid

* lib-src/ntlib.c (cuserid): Remove unused function.

21 months agoImprove locked narrowing around low-level hooks.
Gregory Heytings [Sat, 26 Nov 2022 14:09:41 +0000 (14:09 +0000)]
Improve locked narrowing around low-level hooks.

* src/buffer.c (syms_of_buffer): Two new variables,
'long-line-locked-narrowing-region-size' and
'long-line-locked-narrowing-bol-search-limit', to make the locked
narrowing around low-level hooks configurable.

Increase the default value of 'long-line-threshold'.  After
carefully considering the (few) bug reports about long line
optimizations, I concluded that the previous default value was too
low.

* src/xdisp.c (get_locked_narrowing_begv)
(get_locked_narrowing_zv): Two new functions.
(handle_fontified_prop, reseat): Use them.

* src/keyboard.c (safe_run_hooks_maybe_narrowed): Use them.

* src/dispextern.h (struct it): Add two new fields to store the
values returned by these functions.
Make them externally visible.

* src/editfns.c: (Fsave_restriction): Update docstring.

21 months ago; * doc/emacs/programs.texi (Program Modes): Improve indexing.
Stefan Kangas [Sat, 26 Nov 2022 13:54:25 +0000 (14:54 +0100)]
; * doc/emacs/programs.texi (Program Modes): Improve indexing.

21 months agoMention new programming language support in manual
Stefan Kangas [Sat, 26 Nov 2022 13:27:53 +0000 (14:27 +0100)]
Mention new programming language support in manual

* doc/emacs/programs.texi (Program Modes): Mention newly added support
for C#, TypeScript and JSON.