1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
Commit graph

167195 commits

Author SHA1 Message Date
Helmut Eller
5129ea4b05 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)
2023-08-03 10:45:41 +03:00
Eli Zaretskii
d727e8ee7c ; * lisp/progmodes/cperl-mode.el (cperl-method-call): Doc fix. 2023-08-03 10:28:58 +03:00
Stefan Kangas
3e07af4e41 Support css-ts-mode in align.el
* lisp/align.el (align-rules-list): Add css-ts-mode.
2023-08-03 05:46:21 +02:00
Stefan Kangas
8c0e59136a 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.
2023-08-03 05:46:18 +02:00
Stefan Kangas
0de20a595c Add latex-mode tests for align.el 2023-08-03 05:45:13 +02:00
Stefan Kangas
daa174e56b 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.
2023-08-03 00:49:02 +02:00
Harald Jörg
3c44d7a1b7 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.
2023-08-02 23:59:42 +02:00
Stefan Kangas
0910230be6 ; Prefer HTTPS to HTTP in more links 2023-08-02 23:32:28 +02:00
Stefan Kangas
dbd3c030bb Add nvim and ncmpcpp to eshell-visual-commands
* lisp/eshell/em-term.el (eshell-visual-commands): Add nvim and
ncmpcpp.
2023-08-02 21:57:15 +02:00
Stefan Kangas
0bcea805e6 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.
2023-08-02 21:50:47 +02:00
Stefan Kangas
9fe1bebd13 Add let-alist to alist shortdoc group
* lisp/emacs-lisp/shortdoc.el (alist): Add let-alist.
2023-08-02 21:49:19 +02:00
Stefan Kangas
af2de7b1f2 Refer to align-highlight-rule in face docstrings
* lisp/align.el (align-highlight-change-face)
(align-highlight-nochange-face): Refer to align-highlight-rule.
2023-08-02 21:48:50 +02:00
Stefan Kangas
4b73edb8d1 Fix link to info node in prin1 docstring
* src/print.c (Fprin1): Fix linking to info node in docstring.
2023-08-02 21:48:18 +02:00
Stefan Kangas
1f30404ebc 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".
2023-08-02 21:46:55 +02:00
Stefan Kangas
0724569c2e 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.
2023-08-02 21:42:54 +02:00
Mattias Engdegård
ece5ace4a5 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.
2023-08-02 18:32:54 +02:00
Mattias Engdegård
d167888c5b 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.
2023-08-02 18:28:23 +02:00
Mattias Engdegård
cda4396ade ; * lisp/emacs-lisp/shortdoc.el (list): Move misplaced remq entry 2023-08-02 11:21:37 +02:00
Michael Albinus
009236502e Mark Tramp test :unstable
* test/lisp/net/tramp-tests.el (tramp-test47-read-password):
Mark it :unstable.
2023-08-01 20:25:34 +02:00
Michael Albinus
d83ceba705 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.
2023-08-01 20:24:44 +02:00
Mattias Engdegård
ea0685e039 ; * lisp/emacs-lisp/package.el: doc string copy-edit 2023-08-01 19:27:28 +02:00
Stefan Kangas
03914e565f Add tresitter modes to ibuffer-saved-filters
* lisp/ibuf-ext.el (ibuffer-saved-filters): Add tresitter modes.
2023-08-01 14:39:35 +02:00
Stefan Kangas
7b9660c3b9 Add align tests for CSS
* test/lisp/align-tests.el (align-css): New test.
* test/lisp/align-resources/css-mode.erts: New file.
2023-08-01 14:39:35 +02:00
Stefan Kangas
8086fd181f Use M-x align toml rule also for toml-ts-mode
* lisp/align.el (align-rules-list): Add toml-ts-mode to TOML rule.
2023-08-01 14:39:35 +02:00
Stefan Kangas
583ef0d35d 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.
2023-08-01 14:39:35 +02:00
Stefan Kangas
742104abd7 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.
2023-08-01 14:39:30 +02:00
Stefan Kangas
a3979a6643 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.
2023-08-01 10:40:14 +02:00
Stefan Kangas
3e505d36ac Convert align-tests to use erts 2023-08-01 10:38:42 +02:00
Mattias Engdegård
f5932bcd42 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.
2023-08-01 10:26:51 +02:00
Stefan Kangas
a2be317b37 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
2023-08-01 09:55:30 +02:00
Po Lu
74d6604eaa 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)
2023-08-01 10:34:33 +08:00
Michael Albinus
bfb7c58ac5 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".
2023-07-31 19:40:11 +02:00
Ulrich Müller
077c34edfe 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.
2023-07-31 17:58:34 +02:00
Eli Zaretskii
18b176280d ; Merge from origin/emacs-29
The following commit was skipped:

3560dfdb86 ; Fix backport of help-fns--analyze-function bug fix
2023-07-31 11:11:24 -04:00
Eli Zaretskii
30bcd71476 Merge from origin/emacs-29
525d05c1b8 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/...
29ef215711 ; * lisp/textmodes/paragraphs.el: Remove leftover comment.
80c9f491fc Update to Org 9.6.7-5-gd1d0c3
735f3700f6 ; * src/character.c (Fstring_width): Fix last change.
bf83fdba9e ; * src/character.c (Fstring_width, Fchar_width): Doc fixes.
1198cdb556 Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs ...
2b8796eea1 Fix rx wrong-code bug: ranges starting with ^
ba60070b81 Backport: Fix some tree-sitter :match regexps
092a2ecb08 ; * admin/make-tarball.txt: Update based on latest experi...
7b9e83d3cf Fix bug#64923
0002d4f316 Avoid spurious whitespace in the modeline of emacsclient ...
96d52f8944 Fix function help for advised aliases (bug#64797)
71419a60c3 Avoid crashes due to invalid 'mode-line-format'
b2cb6e8216 ; Better documentation of HOME on MS-Windows
54e98b5f9b ; Clarify documentation of 'server-after-make-frame-hook'
d13029cdcd Avoid crashes under 'which-key-mode'
cb1f7db249 ; Minor documentation fixes
4a687bcc20 Bump Emacs version
2023-07-31 11:11:23 -04:00
Eli Zaretskii
38bbfdee62 ; Merge from origin/emacs-29
The following commits were skipped:

2b8796eea1 Fix rx wrong-code bug: ranges starting with ^
ba60070b81 Backport: Fix some tree-sitter :match regexps
2023-07-31 11:11:23 -04:00
Eli Zaretskii
ec80c3e544 Merge from origin/emacs-29
092a2ecb08 ; * admin/make-tarball.txt: Update based on latest experi...
7b9e83d3cf Fix bug#64923
2023-07-31 11:11:23 -04:00
Eli Zaretskii
cd6629c5dc ; Merge from origin/emacs-29
The following commits were skipped:

0002d4f316 Avoid spurious whitespace in the modeline of emacsclient ...
96d52f8944 Fix function help for advised aliases (bug#64797)
71419a60c3 Avoid crashes due to invalid 'mode-line-format'
b2cb6e8216 ; Better documentation of HOME on MS-Windows
54e98b5f9b ; Clarify documentation of 'server-after-make-frame-hook'
d13029cdcd Avoid crashes under 'which-key-mode'
cb1f7db249 ; Minor documentation fixes
4a687bcc20 Bump Emacs version
2023-07-31 11:11:23 -04:00
Eli Zaretskii
70421a8819 Merge from origin/emacs-29
a9b28224af ; Last-minute changes befor releasing 29.1
7da1cee56b Update CMake support due to upstream changes (bug#64922)
c2d95dd00e Remove nullptr named node from c++-ts-mode (bug#64818)
4e977136d3 Make compat check also check typescript
906ecf442c ; * etc/HISTORY: Fix the 28.3 entry.
2023-07-31 11:11:23 -04:00
Eli Zaretskii
d85805a4e1 ; Merge from origin/emacs-29
The following commit was skipped:

31cef9a4ea ; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1.
2023-07-31 11:11:23 -04:00
Eli Zaretskii
31e9899830 Merge from origin/emacs-29
82d6bb66fe Update HISTORY and ChangeLog.4
2023-07-31 11:11:22 -04:00
Eli Zaretskii
9f3edb5726 ; Merge from origin/emacs-29
The following commit was skipped:

7d1737071f Bump Emacs version
2023-07-31 11:11:22 -04:00
Eli Zaretskii
358a2e0568 Merge from origin/emacs-29
6b00e1a197 Update AUTHORS and ChangeLog.4
2023-07-31 11:11:22 -04:00
Eli Zaretskii
c570d314b7 ; Merge from origin/emacs-29
The following commit was skipped:

76a142e265 ; * etc/NEWS: Prepare for Emacs 29.1 release.
2023-07-31 11:11:21 -04:00
Eli Zaretskii
555cb8f7b1 Merge from origin/emacs-29
ee20b50dfe ; * lisp/progmodes/typescript-ts-mode.el (treesit-query-c...
2215298d90 Update JSX support due to upstream changes (bug#64647)
235561a2cc Update TSX support due to upstream changes (bug#64647)
12ab82d3b3 ; Fix customization form of 'bookmark-watch-bookmark-file'
d149a4dc42 ; Improve documentation of automatic addition to minibuff...
42a9962794 ; Improve documentation of 'last-command-event'
101455cb85 ; * lisp/subr.el (ignore, always): Doc fixes.  (Bug#64776)
2023-07-31 11:11:21 -04:00
Eli Zaretskii
65cd091246 ; Merge from origin/emacs-29
The following commit was skipped:

6152a41190 Unbreak build with CHECK_STRUCTS.
2023-07-31 11:11:21 -04:00
Eli Zaretskii
f56034ca3c Merge from origin/emacs-29
c692bbc659 Revert "Improve commentary in nsfns.m"
bb885928d7 Fix NetBSD build --with-sound
39873d6d5d Fix typo in pre-filter for underline property
2023-07-31 11:11:21 -04:00
Mattias Engdegård
3560dfdb86 ; 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.
2023-07-31 16:14:07 +02:00
Eli Zaretskii
525d05c1b8 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29 2023-07-31 14:42:27 +03:00
Eshel Yaron
29ef215711 ; * lisp/textmodes/paragraphs.el: Remove leftover comment.
* lisp/textmodes/paragraphs.el: Remove a comment referring to code
that was removed in cf605d5.  (Bug#64947)
2023-07-31 14:41:11 +03:00