]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 months agoUse file-size-human-readable in eshell
Stefan Kangas [Sat, 5 Aug 2023 12:49:26 +0000 (14:49 +0200)]
Use file-size-human-readable in eshell

* lisp/eshell/esh-util.el (eshell-printable-size): Simplify using
file-size-human-readable.

13 months agoFix eshell "ls" command for files larger than 1TiB
Stefan Kangas [Sat, 5 Aug 2023 10:54:26 +0000 (12:54 +0200)]
Fix eshell "ls" command for files larger than 1TiB

* lisp/eshell/esh-util.el (eshell-printable-size): Fix displaying file
sizes larger than 1 TiB or 1 TB.
* test/lisp/eshell/esh-util-tests.el
(esh-util-test/eshell-printable-size)
(esh-util-test/eshell-printable-size/zero)
(esh-util-test/eshell-printable-size/terabyte)
(esh-util-test/eshell-printable-size/use-colors)
(esh-util-test/eshell-printable-size/block-size)
(esh-util-test/eshell-printable-size/human-readable-arg): New tests.

13 months ago; * lisp/eshell/esh-util.el: Delete redundant autoload.
Stefan Kangas [Sat, 5 Aug 2023 08:59:11 +0000 (10:59 +0200)]
; * lisp/eshell/esh-util.el: Delete redundant autoload.

13 months agoSimplify pcomplete-uniquify-list
Stefan Kangas [Sat, 5 Aug 2023 08:55:27 +0000 (10:55 +0200)]
Simplify pcomplete-uniquify-list

* lisp/pcomplete.el (pcomplete-uniquify-list): Improve docstring.
Simplify.

13 months agoAdd crossref to set-default-file-modes docstring
Stefan Kangas [Fri, 4 Aug 2023 13:27:18 +0000 (15:27 +0200)]
Add crossref to set-default-file-modes docstring

* src/fileio.c (Fset_default_file_modes): Doc fix; add to the
docstring a cross-reference to with-file-modes.

13 months agoimage-dired: Fix gallery directory permissions
Stefan Kangas [Fri, 4 Aug 2023 13:24:46 +0000 (15:24 +0200)]
image-dired: Fix gallery directory permissions

* lisp/image/image-dired.el (image-dired-gallery-generate): Set
umask to 077 before creating gallery directory.

13 months ago; * etc/NEWS: Announce 'cjk-ambiguous-chars-are-wide' (bug#64420).
Eli Zaretskii [Sat, 5 Aug 2023 15:15:47 +0000 (18:15 +0300)]
; * etc/NEWS: Announce 'cjk-ambiguous-chars-are-wide' (bug#64420).

13 months agoAllow user control on char-width of "ambiguous" characters
Eli Zaretskii [Sat, 5 Aug 2023 14:55:56 +0000 (17:55 +0300)]
Allow user control on char-width of "ambiguous" characters

* src/character.c (syms_of_character) <ambiguous-width-chars>: New
char-table.

* lisp/international/characters.el (ambiguous-width-chars): Fill
the table.
(update-cjk-ambiguous-char-widths): New function.
(cjk-ambiguous-chars-are-wide): New defcustom, uses
'update-cjk-ambiguous-char-widths' as its :set function.
(use-cjk-char-width-table): Obey 'cjk-ambiguous-chars-are-wide' by
adding another child char-table for ambiguous-width characters,
where the width is set according to the option.

* lisp/language/chinese.el ("Chinese-GB", "Chinese-BIG5")
("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK"):
* lisp/language/japanese.el ("Japanese"):
* lisp/language/korean.el ("Korean"): Add new language-info slot
'cjk-locale-symbol'.

Bug#64420

13 months agoAdd ruff and flake8 to python-check-command
Stefan Kangas [Fri, 4 Aug 2023 12:21:17 +0000 (14:21 +0200)]
Add ruff and flake8 to python-check-command

* lisp/progmodes/python.el (python-check-command): Add ruff and
flake8.

13 months agoFix thumbnail update when thumb name is based on image content
Manuel Giraud [Tue, 1 Aug 2023 16:56:33 +0000 (18:56 +0200)]
Fix thumbnail update when thumb name is based on image content

* lisp/image/image-dired-util.el
(image-dired-update-thumbnail-at-point): New function to update
thumbnail when original image contents changed.
* lisp/image/image-dired-external.el
(image-dired-rotate-original): Use it.
* lisp/image/image-dired.el (image-dired-display-thumbs): Fix
spacing while here.  (Bug#61394)

13 months agoDon't allow the `eq` and `unbind` byte-ops to commute (bug#65017)
Mattias Engdegård [Fri, 4 Aug 2023 09:08:57 +0000 (11:08 +0200)]
Don't allow the `eq` and `unbind` byte-ops to commute (bug#65017)

* lisp/emacs-lisp/byte-opt.el (byte-after-unwind-ops):
Cease sinking `eq` past `unwind`, because that optimised away the
let-binding in

  (let ((symbols-with-pos-enabled nil))
    (eq x y))

and `eq` is currently sensitive to `symbols-with-pos-enabled`.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp--eq-symbols-with-pos-enabled): New test.

13 months ago; Fix http/https thinko in org manual
Stefan Kangas [Fri, 4 Aug 2023 07:50:43 +0000 (09:50 +0200)]
; Fix http/https thinko in org manual

* doc/misc/org.org (External Links): Change an HTTPS link back to
HTTP, as it's used as an example to show the supported protocols.
Ref: https://lists.gnu.org/r/emacs-devel/2023-08/msg00018.html

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Fri, 4 Aug 2023 07:17:51 +0000 (03:17 -0400)]
Merge from origin/emacs-29

0f183770c56 Fix byte-compiled files that use 'bind-key' from use-package
acfcf7f3690 Fix "Paste from Kill Menu" in non X toolkit builds
04996b21241 Handle tabs in the SQL shown in the column listing
573fcf27122 Add new keyword to 'typescript-ts-mode'
db7d70d3cad ; Add commentary to 'describe-function's completion

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Fri, 4 Aug 2023 07:17:51 +0000 (03:17 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

d005b2c89ce Fix link to info node in prin1 docstring

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Fri, 4 Aug 2023 07:17:50 +0000 (03:17 -0400)]
Merge from origin/emacs-29

6eddbfe33f2 Clarify the meaning of the argument of ':align-to' space ...
5c6a51668b0 ; * doc/misc/eshell.texi (Argument Modifiers): Fix typo i...
da5e05a50e8 Fix handling of ".elpaignore" file when compiling packages

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Fri, 4 Aug 2023 07:17:50 +0000 (03:17 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

608a8757d9f Support files compressed by 'pigz'

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Fri, 4 Aug 2023 07:17:49 +0000 (03:17 -0400)]
Merge from origin/emacs-29

0c29f53ab87 Fix 'string-pixel-width' under 'line-prefix'
7bbd7cae074 Fix find-dired-with-command for remote directories
c4a8572025e ; * etc/HISTORY: Fix Emacs 28.3 entry.

13 months agoFix byte-compiled files that use 'bind-key' from use-package
Eli Zaretskii [Fri, 4 Aug 2023 06:41:30 +0000 (09:41 +0300)]
Fix byte-compiled files that use 'bind-key' from use-package

* lisp/use-package/bind-key.el (bind-key): Ensure 'bind-key' is
loaded at run time.  Patch by John Wiegley <johnw@gnu.org>.
(Bug#64901)

13 months agoFix "Paste from Kill Menu" in non X toolkit builds
Eli Zaretskii [Fri, 4 Aug 2023 06:34:55 +0000 (09:34 +0300)]
Fix "Paste from Kill Menu" in non X toolkit builds

* src/keymap.c (possibly_translate_key_sequence): Don't signal an
error if 'key-valid-p' returns nil.  Suggested by Stefan Monnier
<monnier@iro.umontreal.ca>. (Bug#64927)

13 months ago* lisp/net/tramp.el (tramp-skeleton-write-region): Fix scoping.
Michael Albinus [Fri, 4 Aug 2023 04:19:57 +0000 (06:19 +0200)]
* lisp/net/tramp.el (tramp-skeleton-write-region): Fix scoping.

(Bug#65022)

13 months ago* lisp/progmodes/cc-mode.el (c-advise-fl-for-region): Fix compiler warning
Stefan Monnier [Fri, 4 Aug 2023 03:43:12 +0000 (23:43 -0400)]
* lisp/progmodes/cc-mode.el (c-advise-fl-for-region): Fix compiler warning

Make sure we macro-expand `defadvice` only when we want to use it.

13 months ago* lisp/emacs-lisp/advice.el (defadvice): Mark as obsolete
Stefan Monnier [Fri, 4 Aug 2023 03:41:11 +0000 (23:41 -0400)]
* lisp/emacs-lisp/advice.el (defadvice): Mark as obsolete

13 months agoRegister more Ruby files in auto-mode-alist
Stefan Kangas [Thu, 3 Aug 2023 17:12:49 +0000 (19:12 +0200)]
Register more Ruby files in auto-mode-alist

* lisp/progmodes/ruby-mode.el (auto-mode-alist): Add fastlane and
Caxlsx files.

13 months ago; * test/lisp/uniquify-tests.el (uniquify-home): Delete (bug#62621).
Eli Zaretskii [Thu, 3 Aug 2023 14:04:41 +0000 (17:04 +0300)]
; * test/lisp/uniquify-tests.el (uniquify-home): Delete (bug#62621).

13 months agoImprove SELinux handling in Tramp
Michael Albinus [Thu, 3 Aug 2023 11:17:02 +0000 (13:17 +0200)]
Improve SELinux handling in Tramp

* lisp/net/tramp-sh.el (tramp-stat-file-attributes-with-selinux)
(tramp-stat-directory-files-and-attributes-with-selinux): New defconst.
(tramp-do-file-attributes-with-ls)
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat): Return also
SELinux context.
(tramp-remote-selinux-p, tramp-do-copy-or-rename-file): Adapt docstring.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-remote-selinux-p): Adapt docstring.
(tramp-sudoedit-file-attributes-with-selinux): New defconst.
(tramp-sudoedit-handle-file-attributes): Use it.

* lisp/net/tramp.el (tramp-convert-file-attributes):
Extract SELinux context.

13 months agoEglot: send version in clientInfo (bug#62198)
Felicián Németh [Sat, 15 Jul 2023 10:02:49 +0000 (12:02 +0200)]
Eglot: send version in clientInfo (bug#62198)

* lisp/progmodes/eglot.el (eglot--version): New defconst.
(eglot--connect): Use it.

13 months agoAdd test for align-regexp
Stefan Kangas [Thu, 3 Aug 2023 09:56:42 +0000 (11:56 +0200)]
Add test for align-regexp

* test/lisp/align-tests.el (align-regexp): New test.
* test/lisp/align-resources/align-regexp.erts: New file.

* test/lisp/align-resources/c-mode.erts: Add new test case.

13 months agoHandle tabs in the SQL shown in the column listing
john muhl [Sun, 30 Jul 2023 18:43:10 +0000 (13:43 -0500)]
Handle tabs in the SQL shown in the column listing

* lisp/sqlite-mode.el (sqlite-mode-list-columns): Handle tabs.
(Bug#64964)

13 months agoRevert thumbnail naming for 'per-directory' storage method
Manuel Giraud [Sat, 29 Jul 2023 08:59:32 +0000 (10:59 +0200)]
Revert thumbnail naming for 'per-directory' storage method

* lisp/image/image-dired-util.el (image-dired-thumb-name): Revert
to "filename.thumb.jpg" for 'per-directory' storage.  (Bug#61394)

* lisp/image/image-dired.el (image-dired-thumbnail-storage): Fix
documentation.

13 months agoRevert "Fix image-dired-utils-tests after 83b6a8a5147 (bug#61394)"
Eli Zaretskii [Thu, 3 Aug 2023 08:40:44 +0000 (11:40 +0300)]
Revert "Fix image-dired-utils-tests after 83b6a8a5147 (bug#61394)"

This reverts commit 5efc7b22cecc0cf1e7dd2bbbc26400dba35e33ea.
It is no longer needed, see bug#61394.

13 months agoAdd new keyword to 'typescript-ts-mode'
Eli Zaretskii [Thu, 3 Aug 2023 08:31:41 +0000 (11:31 +0300)]
Add new keyword to 'typescript-ts-mode'

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--keywords): Add "satisfies", a new operator in
Typescript 4.9.  (Bug#64924)

13 months ago; Add commentary to 'describe-function's completion
Eli Zaretskii [Thu, 3 Aug 2023 08:26:32 +0000 (11:26 +0300)]
; Add commentary to 'describe-function's completion

* lisp/help-fns.el
(help-fns--describe-function-or-command-prompt): Add a comment
(bug#64902).

13 months ago; * lisp/mail/footnote.el (footnote-hebrew-numeric-regex): dedup rx
Mattias Engdegård [Thu, 3 Aug 2023 07:57:33 +0000 (09:57 +0200)]
; * lisp/mail/footnote.el (footnote-hebrew-numeric-regex): dedup rx

This is a cosmetic change that silences a new Relint complaint;
the resulting regexp remains unchanged.

13 months ago; Better help-echo for Customize menu items
Eli Zaretskii [Thu, 3 Aug 2023 08:07:39 +0000 (11:07 +0300)]
; Better help-echo for Customize menu items

* lisp/menu-bar.el (menu-bar-custom-menu): Better help-echo for
Customize menu items.  (Bug#64871)

13 months ago; Fix last change
Eli Zaretskii [Thu, 3 Aug 2023 07:56:35 +0000 (10:56 +0300)]
; Fix last change

* lisp/faces.el (faces--string-with-color, read-color): Doc fixes.

* doc/lispref/minibuf.texi (High-Level Completion): Fix markup and
wording.  (Bug#64725)

13 months agoImprove interactive prompting for face colors
Helmut Eller [Thu, 20 Jul 2023 14:27:34 +0000 (16:27 +0200)]
Improve interactive prompting for face colors

When displaying the completion candidates, show how the face would
look with the new foreground/background.

* lisp/faces.el (faces--string-with-color): New helper,
factored out from 'defined-colors-with-face-attributes'.
(defined-colors-with-face-attributes): Use it.
(read-color): Add optional argument FACE and pass
it to 'faces--string-with-color.'
(read-face-attribute): Call 'read-color' with more appropriate
foreground and face arguments.

* doc/lispref/minibuf.texi (High-Level Completion): Describe
the intention behind the arguments FOREGROUND and FACE of
'read-color'.  (Bug#64725)

13 months agoFix link to info node in prin1 docstring
Stefan Kangas [Tue, 1 Aug 2023 17:28:53 +0000 (19:28 +0200)]
Fix link to info node in prin1 docstring

* src/print.c (Fprin1): Fix linking to info node in docstring.

(cherry picked from commit 4b73edb8d1da74fd1bda8894e982d9768fd1f18c)

13 months ago; * lisp/progmodes/cperl-mode.el (cperl-method-call): Doc fix.
Eli Zaretskii [Thu, 3 Aug 2023 07:28:58 +0000 (10:28 +0300)]
; * lisp/progmodes/cperl-mode.el (cperl-method-call): Doc fix.

13 months agoClarify the meaning of the argument of ':align-to' space spec
Eli Zaretskii [Thu, 3 Aug 2023 05:31:17 +0000 (08:31 +0300)]
Clarify the meaning of the argument of ':align-to' space spec

* doc/lispref/display.texi (Specified Space): Clarify the meaning
and measurement of HPOS in ':align-to' space specs.  (Bug#65015)

13 months agoSupport css-ts-mode in align.el
Stefan Kangas [Wed, 2 Aug 2023 19:54:16 +0000 (21:54 +0200)]
Support css-ts-mode in align.el

* lisp/align.el (align-rules-list): Add css-ts-mode.

13 months agoSupport python-ts-mode in align.el
Stefan Kangas [Wed, 2 Aug 2023 07:25:26 +0000 (09:25 +0200)]
Support python-ts-mode in align.el

* lisp/align.el (align-dq-string-modes, align-sq-string-modes)
(align-open-comment-modes, align-rules-list): Use python-base-mode
instead of python-mode.

13 months agoAdd latex-mode tests for align.el
Stefan Kangas [Thu, 3 Aug 2023 03:45:13 +0000 (05:45 +0200)]
Add latex-mode tests for align.el

13 months agoAdd python-mode tests for align.el
Stefan Kangas [Wed, 2 Aug 2023 22:48:23 +0000 (00:48 +0200)]
Add python-mode tests for align.el

* test/lisp/align-tests.el (align-python): New test.
* test/lisp/align-resources/python-mode.erts: New file.

13 months agocperl-mode.el: Subroutine names are fontified correctly in all places
Harald Jörg [Wed, 2 Aug 2023 21:53:42 +0000 (23:53 +0200)]
cperl-mode.el: Subroutine names are fontified correctly in all places

Subroutine names are fontified as subroutine names even if the name is also
the name of a builtin (fixing an ancient unreported bug).  Subroutine name
are just comments in comment and pod (fixing a bug introduced recently)

* lisp/progmodes/cperl-mode.el (cperl-init-faces): Move
fontification of sub declarations before that of builtins.  Don't
override existing faces when fontifying subroutine declarations.
Don't fontify method calls even if the sub names match those of
builtins.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-fontify-sub-names):
New tests with a subroutine name in several surroundings.

* test/lisp/progmodes/cperl-mode-resources/sub-names.pl: New resource
for the new test.

13 months ago; Prefer HTTPS to HTTP in more links
Stefan Kangas [Wed, 2 Aug 2023 21:26:52 +0000 (23:26 +0200)]
; Prefer HTTPS to HTTP in more links

13 months agoAdd nvim and ncmpcpp to eshell-visual-commands
Stefan Kangas [Wed, 2 Aug 2023 19:57:15 +0000 (21:57 +0200)]
Add nvim and ncmpcpp to eshell-visual-commands

* lisp/eshell/em-term.el (eshell-visual-commands): Add nvim and
ncmpcpp.

13 months agoMake use-package-statistics-mode non-interactive
Stefan Kangas [Wed, 2 Aug 2023 19:50:47 +0000 (21:50 +0200)]
Make use-package-statistics-mode non-interactive

* lisp/use-package/use-package-core.el
(use-package-statistics-mode): Make non-interactive; it only works in
buffers prepared by use-package-report.

13 months agoAdd let-alist to alist shortdoc group
Stefan Kangas [Wed, 2 Aug 2023 19:49:19 +0000 (21:49 +0200)]
Add let-alist to alist shortdoc group

* lisp/emacs-lisp/shortdoc.el (alist): Add let-alist.

13 months agoRefer to align-highlight-rule in face docstrings
Stefan Kangas [Wed, 2 Aug 2023 06:50:14 +0000 (08:50 +0200)]
Refer to align-highlight-rule in face docstrings

* lisp/align.el (align-highlight-change-face)
(align-highlight-nochange-face): Refer to align-highlight-rule.

13 months agoFix link to info node in prin1 docstring
Stefan Kangas [Tue, 1 Aug 2023 17:28:53 +0000 (19:28 +0200)]
Fix link to info node in prin1 docstring

* src/print.c (Fprin1): Fix linking to info node in docstring.

13 months agoDon't hardcode ruby version in interpreter-mode-alist
Stefan Kangas [Wed, 2 Aug 2023 19:46:55 +0000 (21:46 +0200)]
Don't hardcode ruby version in interpreter-mode-alist

* lisp/progmodes/ruby-mode.el (interpreter-mode-alist): Don't hardcode
ruby version.  This adds support for modern versions of Ruby like
"ruby2.7", instead of the previously hardcoded "ruby1.9".

13 months agouse-package: Mark Emacs 25 support code obsolete
Stefan Kangas [Wed, 2 Aug 2023 19:42:54 +0000 (21:42 +0200)]
use-package: Mark Emacs 25 support code obsolete

* lisp/use-package/use-package-core.el
(use-package-font-lock-keywords): Make obsolete.
(font-lock-add-keywords): Only call for Emacs 25 or older.

13 months ago; * doc/misc/eshell.texi (Argument Modifiers): Fix typo in example.
Jim Porter [Wed, 2 Aug 2023 18:05:37 +0000 (11:05 -0700)]
; * doc/misc/eshell.texi (Argument Modifiers): Fix typo in example.

13 months agorx: better not-wordchar and (syntax word) translation
Mattias Engdegård [Mon, 24 Jul 2023 07:44:01 +0000 (09:44 +0200)]
rx: better not-wordchar and (syntax word) translation

* lisp/emacs-lisp/rx.el:
Add tables of legacy syntax.
(rx--translate-symbol):
Translate the legacy construct `not-wordchar` as (not wordchar), which
is more intuitively obvious.
* lisp/emacs-lisp/rx.el (rx--translate-syntax):
Generate the shorter \w and \W instead of \sw and \Sw.
* test/lisp/emacs-lisp/rx-tests.el (rx-atoms, rx-syntax, rx-not):
Adapt tests.

13 months agorx performance improvements
Mattias Engdegård [Sun, 30 Jul 2023 19:53:06 +0000 (21:53 +0200)]
rx performance improvements

* lisp/emacs-lisp/rx.el (rx--generate-alt):
Treat the intervals and classes lists separately without joining,
to reduce allocation.  Handle special cases first.
(rx--union-intervals):
Implement directly instead of using intersection and complement.
* test/lisp/emacs-lisp/rx-tests.el (rx-any): Adapt test, as some
character alternatives are now slightly different.
(rx--complement-intervals, rx--union-intervals)
(rx--intersect-intervals): New unit tests.

13 months ago; * lisp/emacs-lisp/shortdoc.el (list): Move misplaced `remq` entry
Mattias Engdegård [Wed, 2 Aug 2023 09:21:37 +0000 (11:21 +0200)]
; * lisp/emacs-lisp/shortdoc.el (list): Move misplaced `remq` entry

13 months agoFix handling of ".elpaignore" file when compiling packages
Jim Porter [Tue, 1 Aug 2023 06:10:03 +0000 (23:10 -0700)]
Fix handling of ".elpaignore" file when compiling packages

* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Treat
'byte-compile-ignore-files' as a list of regexps per its docstring
(bug#64985).

13 months agoMark Tramp test :unstable
Michael Albinus [Tue, 1 Aug 2023 18:25:34 +0000 (20:25 +0200)]
Mark Tramp test :unstable

* test/lisp/net/tramp-tests.el (tramp-test47-read-password):
Mark it :unstable.

13 months agoAdd more `tramp-suppress-trace' properties in Tramp
Michael Albinus [Tue, 1 Aug 2023 18:24:44 +0000 (20:24 +0200)]
Add more `tramp-suppress-trace' properties in Tramp

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
Use `tramp-archive-handle-file-symlink-p'.
(tramp-archive-handle-file-symlink-p): New defun.

* lisp/net/tramp-cache.el (tramp-loaddefs): Don't require.
(tramp-get-hash-table, tramp-cache-print)
(tramp-dump-connection-properties): Declare `tramp-suppress-trace'
property.

* lisp/net/tramp-cmds.el (tramp-cleanup-dired-buffer-p)
(tramp-delete-tainted-remote-process-buffer-function):
Declare `tramp-suppress-trace' property.

* lisp/net/tramp-compat.el (tramp-loaddefs): Require.
(tramp-error): Declare.

* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler): Fix typo.

* lisp/net/tramp-integration.el (tramp-rfn-eshadow-setup-minibuffer)
(tramp-rfn-eshadow-update-overlay-regexp)
(tramp-rfn-eshadow-update-overlay): Declare `tramp-suppress-trace'
property.

* lisp/net/tramp-message.el (tramp-compat): Require (instead of
tramp-loaddefs.el).
(tramp-compat-string-replace, tramp-compat-temporary-file-directory):
Don't declare.
(tramp-byte-run--set-suppress-trace): Move to tramp.el.
(tramp-debug-outline-level)
(tramp-debug-buffer-command-completion-p, tramp-message)
(tramp-debug-button-action, tramp-debug-link-messages)
(tramp-debug-message-buttonize): Declare `tramp-suppress-trace' property.

* lisp/net/tramp.el (tramp-byte-run--set-suppress-trace):
New defun, moved from tramp-message.el.
(tramp-file-name-unify, tramp-file-name-equal-p)
(tramp-tramp-file-p, tramp-find-method, tramp-find-user)
(tramp-find-host, tramp-dissect-file-name)
(tramp-ensure-dissected-file-name, tramp-buffer-name)
(tramp-delete-temp-file-function, tramp-time-diff):
Declare `tramp-suppress-trace' property.

13 months ago; * lisp/emacs-lisp/package.el: doc string copy-edit
Mattias Engdegård [Tue, 1 Aug 2023 17:25:39 +0000 (19:25 +0200)]
; * lisp/emacs-lisp/package.el: doc string copy-edit

13 months agoAdd tresitter modes to ibuffer-saved-filters
Stefan Kangas [Tue, 1 Aug 2023 12:34:09 +0000 (14:34 +0200)]
Add tresitter modes to ibuffer-saved-filters

* lisp/ibuf-ext.el (ibuffer-saved-filters): Add tresitter modes.

13 months agoAdd align tests for CSS
Stefan Kangas [Tue, 1 Aug 2023 12:26:51 +0000 (14:26 +0200)]
Add align tests for CSS

* test/lisp/align-tests.el (align-css): New test.
* test/lisp/align-resources/css-mode.erts: New file.

13 months agoUse `M-x align` toml rule also for toml-ts-mode
Stefan Kangas [Tue, 1 Aug 2023 10:59:32 +0000 (12:59 +0200)]
Use `M-x align` toml rule also for toml-ts-mode

* lisp/align.el (align-rules-list): Add toml-ts-mode to TOML rule.

13 months agoMake toml-ts-mode-indent-offset into natnum
Stefan Kangas [Tue, 1 Aug 2023 10:58:06 +0000 (12:58 +0200)]
Make toml-ts-mode-indent-offset into natnum

* lisp/textmodes/toml-ts-mode.el (toml-ts-mode-indent-offset):
Make into natnum instead of integer.

13 months agoFix font locking of booleans in conf-toml-mode
Stefan Kangas [Tue, 1 Aug 2023 10:18:12 +0000 (12:18 +0200)]
Fix font locking of booleans in conf-toml-mode

* lisp/textmodes/conf-mode.el (conf-toml-mode): Do not use case
folding when font locking.
* test/lisp/textmodes/conf-mode-tests.el (conf-test-toml-mode):
Expand test.

13 months agoSupport files compressed by 'pigz'
Amritpal Singh [Fri, 2 Jun 2023 05:21:21 +0000 (10:51 +0530)]
Support files compressed by 'pigz'

* src/decompress.c (md5_gz_stream): Check 'stream.avail_in' as
well.  (Bug#63832)

Copyright-paperwork-exempt: yes
(cherry picked from commit 46b6d175054e8f6bf7cb45e112048c0cf02bfee9)

13 months agoAdd `M-x align` support to conf-toml-mode
Stefan Kangas [Tue, 1 Aug 2023 08:38:45 +0000 (10:38 +0200)]
Add `M-x align` support to conf-toml-mode

* lisp/align.el (align-rules-list): Add rule for conf-toml-mode.
* test/lisp/align-resources/conf-toml-mode.erts: New file.
* test/lisp/align-tests.el (align-toml): New test.

13 months agoConvert align-tests to use erts
Stefan Kangas [Mon, 31 Jul 2023 11:13:33 +0000 (13:13 +0200)]
Convert align-tests to use erts

13 months agoFix vacuous conf-mode-test
Mattias Engdegård [Mon, 31 Jul 2023 16:52:49 +0000 (18:52 +0200)]
Fix vacuous conf-mode-test

* test/lisp/textmodes/conf-mode-tests.el (conf-test-javaprop-mode):
Attempt to give the test some meaning by repairing regexps,
and fixing it so that it passes.

13 months agoRemove IE9 support tag from HTML5 skeleton
Stefan Kangas [Tue, 1 Aug 2023 07:55:01 +0000 (09:55 +0200)]
Remove IE9 support tag from HTML5 skeleton

This is no longer recommended in 2023, and in any case seems like
overkill in an otherwise bare-bones HTML5 template.
Ref: https://stackoverflow.com/a/6771584

13 months agoFix stipple support on PGTK
Po Lu [Tue, 1 Aug 2023 02:34:33 +0000 (10:34 +0800)]
Fix stipple support on PGTK

* src/image.c (image_create_pattern_from_pixbuf): Remove function.
(image_bitmap_to_cr_pattern): New function.
(image_create_bitmap_from_data):
(image_create_bitmap_from_file): Create patterns with the correct
mask values directly from bitmap data.  Also, don't rely on GDK
to read XPMs, as that format isn't supported anymore.
* src/pgtkterm.c (pgtk_bitmap_icon): Disable already nonfunctional
code.
(pgtk_display_x_warning): Wrap warning message.
* src/pgtkterm.h (struct pgtk_bitmap_record): Remove `img' field.
(bug#64969)

13 months agoFix 'string-pixel-width' under 'line-prefix'
Eli Zaretskii [Mon, 31 Jul 2023 18:50:45 +0000 (21:50 +0300)]
Fix 'string-pixel-width' under 'line-prefix'

* lisp/emacs-lisp/subr-x.el (string-pixel-width): Disable
'line-prefix' and 'wrap-prefix' to avoid their effect on the
calculated string width.  (Bug#64971)

13 months agoOptimizations on Tramp symlink handling
Michael Albinus [Mon, 31 Jul 2023 17:40:11 +0000 (19:40 +0200)]
Optimizations on Tramp symlink handling

* lisp/net/tramp-sh.el (cl-seq): Require.
(tramp-perl-file-truename): Print also whether the file is a symlink.
(tramp-bundle-read-file-names): Rename from
`tramp-vc-registered-read-file-names'.  Print also the
`file-directory-p: value.
(tramp-sh-handle-make-symbolic-link): Combine two commands.  Use
`tramp-skeleton-make-symbolic-link'.
(tramp-sh-handle-file-truename): Read also "file-symlink-marker"
property.
(tramp-sh-handle-file-directory-p): Simplify if-let clause.
(tramp-sh-handle-file-name-all-completions): Simplify command.
(tramp-bundle-read-file-names): New defun.
(tramp-sh-handle-vc-registered, tramp-get-remote-path): Use it.
(tramp-open-shell): Flush "scripts" connection property.
(tramp-open-connection-setup-interactive-shell): Combine two commands.

* lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-make-symbolic-link):
Use `tramp-skeleton-make-symbolic-link'.

* lisp/net/tramp.el (tramp-skeleton-make-symbolic-link): Rename from
`tramp-skeleton-handle-make-symbolic-link'.
(tramp-handle-file-symlink-p): Check file property
"file-symlink-marker".

13 months agoDrop duplicate vietnamese-tcvn coding system
Ulrich Müller [Fri, 28 Jul 2023 21:04:43 +0000 (23:04 +0200)]
Drop duplicate vietnamese-tcvn coding system

* lisp/language/vietnamese.el (vietnamese-vscii): Update docstring.
(vietnamese-tcvn, tcvn, tcvn-5712): Make them aliases of
vietnamese-vscii.
("Vietnamese"): Drop vietnamese-tcvn from coding-system values.
Update docstring.

* etc/NEWS: Announce this change.

13 months agoFix find-dired-with-command for remote directories
Michael Albinus [Mon, 31 Jul 2023 15:49:21 +0000 (17:49 +0200)]
Fix find-dired-with-command for remote directories

* lisp/find-dired.el (find-dired-with-command):
Use `start-file-process-shell-command'.  (Bug#64897)

13 months ago; * etc/HISTORY: Fix Emacs 28.3 entry.
Michael Albinus [Mon, 31 Jul 2023 15:48:36 +0000 (17:48 +0200)]
; * etc/HISTORY: Fix Emacs 28.3 entry.

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:24 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

3560dfdb868 ; Fix backport of help-fns--analyze-function bug fix

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:23 +0000 (11:11 -0400)]
Merge from origin/emacs-29

525d05c1b8a Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/...
29ef2157116 ; * lisp/textmodes/paragraphs.el: Remove leftover comment.
80c9f491fc8 Update to Org 9.6.7-5-gd1d0c3
735f3700f65 ; * src/character.c (Fstring_width): Fix last change.
bf83fdba9e3 ; * src/character.c (Fstring_width, Fchar_width): Doc fixes.
1198cdb5567 Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs ...
2b8796eea19 Fix rx wrong-code bug: ranges starting with ^
ba60070b81c Backport: Fix some tree-sitter :match regexps
092a2ecb083 ; * admin/make-tarball.txt: Update based on latest experi...
7b9e83d3cf9 Fix bug#64923
0002d4f3166 Avoid spurious whitespace in the modeline of emacsclient ...
96d52f89444 Fix function help for advised aliases (bug#64797)
71419a60c37 Avoid crashes due to invalid 'mode-line-format'
b2cb6e82160 ; Better documentation of HOME on MS-Windows
54e98b5f9bd ; Clarify documentation of 'server-after-make-frame-hook'
d13029cdcde Avoid crashes under 'which-key-mode'
cb1f7db2490 ; Minor documentation fixes
4a687bcc20d Bump Emacs version

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:23 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commits were skipped:

2b8796eea19 Fix rx wrong-code bug: ranges starting with ^
ba60070b81c Backport: Fix some tree-sitter :match regexps

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:23 +0000 (11:11 -0400)]
Merge from origin/emacs-29

092a2ecb083 ; * admin/make-tarball.txt: Update based on latest experi...
7b9e83d3cf9 Fix bug#64923

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:23 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commits were skipped:

0002d4f3166 Avoid spurious whitespace in the modeline of emacsclient ...
96d52f89444 Fix function help for advised aliases (bug#64797)
71419a60c37 Avoid crashes due to invalid 'mode-line-format'
b2cb6e82160 ; Better documentation of HOME on MS-Windows
54e98b5f9bd ; Clarify documentation of 'server-after-make-frame-hook'
d13029cdcde Avoid crashes under 'which-key-mode'
cb1f7db2490 ; Minor documentation fixes
4a687bcc20d Bump Emacs version

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:23 +0000 (11:11 -0400)]
Merge from origin/emacs-29

a9b28224af0 ; Last-minute changes befor releasing 29.1
7da1cee56b3 Update CMake support due to upstream changes (bug#64922)
c2d95dd00e6 Remove nullptr named node from c++-ts-mode (bug#64818)
4e977136d31 Make compat check also check typescript
906ecf442c4 ; * etc/HISTORY: Fix the 28.3 entry.

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:23 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

31cef9a4eac ; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1.

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:22 +0000 (11:11 -0400)]
Merge from origin/emacs-29

82d6bb66fea Update HISTORY and ChangeLog.4

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:22 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

7d1737071fb Bump Emacs version

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:22 +0000 (11:11 -0400)]
Merge from origin/emacs-29

6b00e1a197d Update AUTHORS and ChangeLog.4

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:21 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

76a142e265d ; * etc/NEWS: Prepare for Emacs 29.1 release.

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:21 +0000 (11:11 -0400)]
Merge from origin/emacs-29

ee20b50dfed ; * lisp/progmodes/typescript-ts-mode.el (treesit-query-c...
2215298d90b Update JSX support due to upstream changes (bug#64647)
235561a2ccc Update TSX support due to upstream changes (bug#64647)
12ab82d3b35 ; Fix customization form of 'bookmark-watch-bookmark-file'
d149a4dc428 ; Improve documentation of automatic addition to minibuff...
42a99627948 ; Improve documentation of 'last-command-event'
101455cb853 ; * lisp/subr.el (ignore, always): Doc fixes.  (Bug#64776)

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:21 +0000 (11:11 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

6152a411905 Unbreak build with CHECK_STRUCTS.

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 15:11:21 +0000 (11:11 -0400)]
Merge from origin/emacs-29

c692bbc6596 Revert "Improve commentary in nsfns.m"
bb885928d73 Fix NetBSD build --with-sound
39873d6d5d1 Fix typo in pre-filter for underline property

13 months ago; Fix backport of help-fns--analyze-function bug fix
Mattias Engdegård [Mon, 31 Jul 2023 14:14:07 +0000 (16:14 +0200)]
; Fix backport of help-fns--analyze-function bug fix

* lisp/help-fns.el (help-fns--analyze-function):
Add back the NOERROR argument to function-alias-p, needed because
Emacs 29 doesn't prevent the creation of circular function aliases.
This fixes a failure in help-fns-tests.

13 months agoMerge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29
Eli Zaretskii [Mon, 31 Jul 2023 11:42:27 +0000 (14:42 +0300)]
Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29

13 months ago; * lisp/textmodes/paragraphs.el: Remove leftover comment.
Eshel Yaron [Sun, 30 Jul 2023 08:22:26 +0000 (11:22 +0300)]
; * lisp/textmodes/paragraphs.el: Remove leftover comment.

* lisp/textmodes/paragraphs.el: Remove a comment referring to code
that was removed in cf605d5.  (Bug#64947)

13 months agoUpdate to Org 9.6.7-5-gd1d0c3
Kyle Meyer [Sun, 30 Jul 2023 20:52:11 +0000 (16:52 -0400)]
Update to Org 9.6.7-5-gd1d0c3

13 months ago; * src/character.c (Fstring_width): Fix last change.
Eli Zaretskii [Sun, 30 Jul 2023 19:09:05 +0000 (22:09 +0300)]
; * src/character.c (Fstring_width): Fix last change.

13 months ago; * src/character.c (Fstring_width, Fchar_width): Doc fixes.
Eli Zaretskii [Sun, 30 Jul 2023 17:10:54 +0000 (20:10 +0300)]
; * src/character.c (Fstring_width, Fchar_width): Doc fixes.

13 months agoAvoid face attribute warnings in themes
Mattias Engdegård [Sun, 30 Jul 2023 16:42:13 +0000 (18:42 +0200)]
Avoid face attribute warnings in themes

* etc/themes/deeper-blue-theme.el (class):
* etc/themes/leuven-dark-theme.el (class):
* etc/themes/leuven-theme.el (class):
* etc/themes/manoj-dark-theme.el (manoj-dark):
* etc/themes/whiteboard-theme.el (class):
Use `unspecified` instead of `nil` as attribute for :background and
:foreground to silence HANDLE_INVALID_NIL_VALUE warning.

13 months agoMerge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs into emacs-29
Eli Zaretskii [Sun, 30 Jul 2023 16:19:32 +0000 (12:19 -0400)]
Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs into emacs-29

13 months agoFix rx wrong-code bug: ranges starting with ^
Mattias Engdegård [Sun, 30 Jul 2023 13:30:38 +0000 (15:30 +0200)]
Fix rx wrong-code bug: ranges starting with ^

(rx (in (?^ . ?a))) was incorrectly translated to "[^-a]".
Change it so that we get "[_-a^]" instead.

* lisp/emacs-lisp/rx.el (rx--generate-alt): Split ranges starting with
`^` occurring first in a non-negated character alternative.
* test/lisp/emacs-lisp/rx-tests.el (rx-any): Add and adapt tests.

(cherry picked from commit 5f5d668ac7917d61e9366fe0c3efd7b542671c3d)

13 months agoFix rx wrong-code bug: ranges starting with ^
Mattias Engdegård [Sun, 30 Jul 2023 13:30:38 +0000 (15:30 +0200)]
Fix rx wrong-code bug: ranges starting with ^

(rx (in (?^ . ?a))) was incorrectly translated to "[^-a]".
Change it so that we get "[_-a^]" instead.

* lisp/emacs-lisp/rx.el (rx--generate-alt): Split ranges starting with
`^` occurring first in a non-negated character alternative.
* test/lisp/emacs-lisp/rx-tests.el (rx-any): Add and adapt tests.