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

174987 Commits

Author SHA1 Message Date
Mattias Engdegård
8d0c8076c3 Warn about :reverse-video in defface
This attribute keyword has been non-working in defface for 14 years,
thus warning about it is both safe and decent.

* lisp/emacs-lisp/bytecomp.el (bytecomp--check-cus-face-spec):
Warn and suggest :inverse-video to be used instead.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-defface-spec):
Add a test case.
* etc/NEWS: Notify the user.
2024-09-29 12:19:19 +02:00
Dmitry Gutov
dfdeee839a Use directory-name-p in vc-git--file-list-is-rootdir
* lisp/vc/vc-git.el (vc-git--file-list-is-rootdir):
Use directory-name-p.
2024-09-29 04:11:52 +03:00
Sean Allred
8d9a4647fb project--vc-list-files: Use '--sparse' with 'git ls-files'
When dealing with exceptionally large Git repositories, the
performance of `project-find-file` can suffer dramatically as
the list of files is collected for completion.  This adds insult
to injury when you consider cases where the developer has
configured the repository to use a sparse checkout where the
vast majority of these files are not even present on disk and
are not valid candidates for completion.

* lisp/progmodes/project.el (project--vc-list-files):
Pass 'sparse' to 'git ls-files' when Git is recent enough.
Filter out file names that end with '/' (bug#73320).
2024-09-29 04:02:13 +03:00
Eli Zaretskii
c934450d14 ; Fix 'python-ts-mode'
* lisp/progmodes/python.el (python-ts-mode): Fix setting up
'auto-mode-alist'.  (Bug#73531)
2024-09-28 19:53:30 +03:00
Eli Zaretskii
a8a3f04f8a Merge from origin/emacs-30
e2b01d164c ; Fix last changes in php-ts-mode.el
2024-09-28 08:09:32 -04:00
Eli Zaretskii
e2b01d164c ; Fix last changes in php-ts-mode.el
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--test-namespace-name-as-prefix-p)
(php-ts-mode--test-namespace-aliasing-clause-p)
(php-ts-mode--test-namespace-use-group-clause-p): Doc fixes.
(treesit-query-compile): Declare.
2024-09-28 15:06:44 +03:00
Eli Zaretskii
c90eb98dab Merge from origin/emacs-30
e8830015b0 Require ert-x for use by 'ert-font-lock-deftest-file'
a1841b4d8e ; * admin/authors.el (authors-aliases): Don't ignore "one...
69d8f9d1b7 Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)
68f53e4348 eieio.texi: Fix bug#73505
53c887fdf6 ; cperl-mode.el: Fix an invalid face specification
f5cd5585f4 ; Recommend GNU Find for 'find-dired'
65e589698e ; * lisp/filesets.el (filesets-homepage): Fix URL.
1f243a9780 Delete duplicated line in Viper refcard
d63bff4d88 Fix Tramp shortdoc integration
759b18a33c * lisp/imenu.el (imenu-flatten): More limitations in docs...
794bb2a2e3 remember-data-file: Don't unconditionally call set-visite...
7766ba8419 Align columns in which-key with wide characters properly
bd25a98b4e bibtex-mode: fix patch bibtex validation for non-file buf...
4729065ee7 Document 'buttonize-region' in manual
f189457e5a ; * lisp/yank-media.el (yank-media-handler): Fix docstrin...
2b53e11a08 Use black-on-white by default for doc-view-svg-face.
32d0c8f6af etags-regen-file-extensions: Enable for more extensions
8f265b49e3 ; Fix last change
c8ed48b990 ; Improve documentation of 'append'
c1f2501f55 Update and improve UI of sql-read-product (bug#73412)
4f5fc519f0 Insert correct commit data into VC package descriptions
98177d4b3d Document reporting security issues in user manual
b986e2018a * BUGS: Minor copy edit.
2024-09-28 07:59:16 -04:00
Morgan Willcock
e8830015b0 Require ert-x for use by 'ert-font-lock-deftest-file'
This fixes a void-function error when 'ert-font-lock-deftest-file'
is called when ert-x has not already been loaded.
* lisp/emacs-lisp/ert-font-lock.el (ert): Require ert-x so that
'ert-resource-file' is available for use within
'ert-font-lock-deftest-file'.  (Bug#73254)
2024-09-28 14:10:00 +03:00
Manuel Giraud
daba97699b * etc/images/kitchen-sink.xpm: New file. 2024-09-28 12:37:59 +03:00
shynur
c12cb25199 Enable 'sh-mode' for files created by Bash 'fc' command
* lisp/files.el (auto-mode-alist): Recognize bash-fc.XXXX files.
(Bug#73380)
2024-09-28 12:30:12 +03:00
Eli Zaretskii
a1841b4d8e ; * admin/authors.el (authors-aliases): Don't ignore "one.last.kiss". 2024-09-28 12:28:24 +03:00
Eli Zaretskii
9c994537cf ; Improve documentation of last change
* lisp/doc-view.el (doc-view-register-alist)
(doc-view-page-to-register, doc-view-jump-to-register): Doc fixes.

* etc/NEWS:
* doc/emacs/misc.texi (DocView Navigation): Improve wording.
(Bug#73293)
2024-09-28 12:11:57 +03:00
Visuwesh
fb3aa69356 Add buffer-local register commands to DocView
* lisp/doc-view.el (doc-view-register-alist): New defvar to keep
track of buffer-local register-alist.
(doc-view-page-to-register, doc-view-jump-to-register): Add new
commands to set and jump to buffer-local registers.
(register-val-insert, register-val-describe)
(register-val-jump-to): Register defmethod to save and restore
doc-view registers.
(doc-view-mode-map): Bind the new commands.
* doc/emacs/misc.texi (DocView Navigation): Document the new
commands.  (Bug#73293)
* etc/NEWS: Announce the change.
2024-09-28 12:05:14 +03:00
Vincenzo Pupillo
69d8f9d1b7
Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)
Version 0.23 of the PHP grammar introduced some changes that
affect the font lock.

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Update php, html, js and css
grammars version.
(php-ts-mode--parent-html-heuristic): Fix docstring
(php-ts-mode--test-namespace-name-as-prefix-p): New function.
(php-ts-mode--test-namespace-aliasing-clause-p): New function.
(php-ts-mode--test-namespace-use-group-clause-p): New function.
(php-ts-mode--font-lock-settings): Use the new functions.
2024-09-28 01:06:41 -07:00
Mattias Engdegård
bba14a2767 Warn about bad face specs in defface at compile time
* lisp/emacs-lisp/bytecomp.el (byte-compile--custom-declare-face):
Byte-compile `defface` forms, or the byte-compile handler won't
be called.
(bytecomp--check-cus-face-spec): New.
(bytecomp--custom-declare): Call it.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-defface-spec):
New tests.
2024-09-27 19:26:52 +02:00
Mattias Engdegård
09d63ba32b * lisp/custom.el (defface): Add missing attributes to doc string. 2024-09-27 19:26:52 +02:00
Stefan Monnier
68f53e4348 eieio.texi: Fix bug#73505
* doc/misc/eieio.texi (Introduction): Remove "missing features" which
aren't missing any more.
(Generics, Methods): Delete sections.
(Inheritance): Adjust reference accordingly.
(Static Methods): Merge into the parent node.
(Writing Methods): Refer to the ELisp manual for `cl-defmethod/defgeneric`.
2024-09-27 10:35:18 -04:00
Alan Mackenzie
0a1628bf69 CC Mode: Parse C++ lambda functions more correctly
This fixes bug#72695.

* lisp/progmodes/cc-align.el (c-lineup-topmost-intro-cont): Do
not indent further a line following a closing brace of a
requires clause.

* lisp/progmodes/cc-engine.el (c-forward-keyword-clause):
Separate the handling of "any-paren-kwds" into
"type-paren-kwds" and "nontype-paren-kwds", simplifying the
handling of the latter.
(c-forward-primary-expression): Recognize (...) followed by {
as a primary expression.
(c-looking-at-or-maybe-in-bracelist): No longer recognize an
enum list as a brace list.  Remove the handling of enum lists.
(c-looking-at-c++-lambda-expression)
(c-backward-over-lambda-expression): New functions.
(c-c++-vsemi-p): Don't recognize the end of requires clauses as
virtual semicolons.
(c-guess-basic-syntax): CASE 5U - new cond arm to recognize
being after a requires clause.  These lines now get syntax
topmost-intro-cont rather than topmost-intro, and their anchor
positions are now on the topmost-intro line rather than the
previous topmost-intro-cont.
Throughout the file: simplify handling of
c-fun-name-substitute-key, where there is no need to check for
a following _ character, and introduce c-requires-clause-key
for greater accuracy in parsing, even though both of these are
just "requires".

* lisp/progmodes/cc-fonts.el (c-get-fontification-context):
Tidy up the handling of c-fun-name-substitue-key, as in
cc-engine.el.

* lisp/progmodes/cc-langs.el (c-lambda-spec-kwds)
(c-lambda-spec-key): New lang vars.
(c-fun-name-substitute-key): Now an adorned expression.
(c-requires-clause-kwds, c-requires-clause-key): New lang vars.
2024-09-27 13:42:40 +00:00
Michael Albinus
d98a2b70d7 * lisp/mail/emacsbug.el (submit-emacs-patch): Insert empty X-Debbugs-Cc
(Bug##57877)
2024-09-27 09:33:51 +02:00
Eli Zaretskii
57c552b8b9 ; * src/cm.c (cmgoto): Fix last change. 2024-09-27 09:19:19 +03:00
Jeremy Bryant
bfbed2f3ee ; * src/cm.c (cmgoto): Add function documentation (bug#73487). 2024-09-27 09:17:29 +03:00
Eli Zaretskii
ff4082284a ; * lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev): Doc fix. 2024-09-27 08:49:46 +03:00
Eli Zaretskii
8e08e37166 ; * etc/NEWS: Fix recently added entry. 2024-09-27 08:47:13 +03:00
Eli Zaretskii
42eb2265e6 ; * lisp/progmodes/python.el (python-interpreter): Fix :version. 2024-09-27 08:44:35 +03:00
Stefan Kangas
bdfeb45bfc Bind "J" to bookmark-jump in bookmark-bmenu-mode
* lisp/bookmark.el (bookmark-bmenu-mode-map): Bind "J" to bookmark-jump.
2024-09-27 07:12:05 +02:00
Stefan Kangas
7f0a252f21 Prefer python3 for python-interpreter
* lisp/progmodes/python.el (python-interpreter): Prefer "python3" when
it exists, to be consistent with python-shell-interpreter.
2024-09-27 07:01:23 +02:00
Spencer Baugh
e776903b31 Move to start of current header in diff-{file,hunk}-prev
If point was after a file or hunk header, the diff-file-prev and
diff-hunk-prev commands would move to the start of that header.
But if point was *within* the header, they would not move, and
would report "No previous file" or "No previous hunk".  This
differs from the behavior of most other movement commands,
e.g. backward-sexp or backward-sentence.

This commit fixes diff-file-prev and diff-hunk-prev, as well as
other easy-mmode-define-navigation BASE-prev commands.  Now
these commands move to the start of the containing "thing" just
like other movement commands.

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev):
Move to start of current match first. (bug#73172)
* etc/NEWS: Document the behavior change.
2024-09-27 04:27:55 +03:00
Spencer Baugh
da1416fc69 Move easy-mmode-define-navigation logic to helper functions
The functions defined by easy-mmode-define-navigation are useful
even if the easy-mmode-define-navigation macro is not used.
Let's take a step towards exposing them by moving them out as
helpers.

This also makes the macro much easier to modify and work on.

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--prev)
(easy-mmode--next): Add (bug#73172).
(easy-mmode-define-navigation): Use easy-mmode--prev and
easy-mmode--next.
2024-09-27 04:25:54 +03:00
Stefan Monnier
c95620ffbf (pcase-tests-quote-optimization): Fix warning
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-quote-optimization):
Fix confusing code.
2024-09-26 17:03:28 -04:00
Stefan Monnier
4591d93a8e * lisp/emacs-lisp/pcase.el (pcase--expand-\`): Improve warning message
And also move the warning "out of the way" so it doesn't
confuse optimizations.
2024-09-26 16:40:54 -04:00
Sean Whitton
37bed70f4c ; * etc/NEWS: Don't say that C-c M-r can undo whole commits. 2024-09-26 20:03:09 +01:00
Gerd Möllmann
b9d103c16e ; Fix build error with last change in python.el 2024-09-26 17:35:38 +02:00
Stefan Kangas
2f485e68ff Add Python "*.pth" files to auto-mode-alist
* lisp/progmodes/python.el (python--auto-mode-alist-regexp): New
variable.
(auto-mode-alist, python-ts-mode): Use above new variable.
2024-09-26 17:04:31 +02:00
Andrea Corallo
4c567892e0 * Clean-up unused condition-case
* lisp/emacs-lisp/comp.el (comp--native-compile): Remove unused
condition-case.
2024-09-26 16:32:27 +02:00
Harald Jörg
53c887fdf6 ; cperl-mode.el: Fix an invalid face specification
* lisp/progmodes/cperl-mode.el (cperl-method-call): Avoid doubly
quoting the parent face.  This made htmlize-buffer fail.
2024-09-26 15:20:01 +02:00
Eli Zaretskii
c86e7a29e7 ; Fix documentation of last change
* lisp/vc/diff-mode.el (diff-ask-before-revert-and-kill-hunk): Add
':version' tag.
(diff-revert-and-kill-hunk, diff-apply-buffer): Doc fixes.

* etc/NEWS:
* doc/emacs/files.texi (Diff Mode): Fix last change; add indexing.
2024-09-26 14:24:18 +03:00
Sean Whitton
f2e3e563d4 New command diff-revert-and-kill-hunk
* lisp/vc/diff-mode.el (diff-revert-and-kill-hunk): New
command (bug#73407).
(diff-ask-before-revert-and-kill-hunk): New user option.
(diff-apply-buffer): New optional BEG, END and REVERSE
arguments.  Return nil if buffers were saved, or the number of
failed applications.
(diff-mode-map): Bind the new command to C-c M-r.
(diff-mode-menu): New entry for the new command.
* doc/emacs/files.texi (Diff Mode):
* etc/NEWS: Document the change.
2024-09-26 11:51:21 +01:00
Eli Zaretskii
f5cd5585f4 ; Recommend GNU Find for 'find-dired'
* lisp/find-dired.el (find-dired): Doc fix (bug#73455).
2024-09-26 10:30:56 +03:00
Eli Zaretskii
8ffb680d09 Revert "; Recommend GNU Find for 'find-dired'"
This reverts commit 5f8c2d5bf9.
It was committed by mistake on this branch.
2024-09-26 10:30:15 +03:00
Eli Zaretskii
5f8c2d5bf9 ; Recommend GNU Find for 'find-dired'
* lisp/find-dired.el (find-dired): Doc fix (bug#73455).
2024-09-26 10:28:20 +03:00
Stefan Kangas
65e589698e ; * lisp/filesets.el (filesets-homepage): Fix URL. 2024-09-26 02:10:16 +02:00
Stefan Kangas
89abbb843a Deprecate 'Homepage' header in favor of 'URL'
* doc/lispref/tips.texi (Library Headers): Document the 'Homepage'
header as deprecated in favor of 'URL'.
2024-09-26 02:04:03 +02:00
Andrés Ramírez
1f243a9780 Delete duplicated line in Viper refcard
* etc/refcards/viperCard.tex: Delete duplicated line.  (Bug#73480)

Copyright-paperwork-exempt: yes
2024-09-26 01:53:20 +02:00
Jeremy Bryant
0c861b820b ; * src/cm.c (calccost): Fix typo. (Bug#73485) 2024-09-26 01:47:04 +02:00
Alan Mackenzie
3a0db55b50 * etc/NEWS: Describe the change to enum handling in CC Mode 2024-09-25 21:06:07 +00:00
Eli Zaretskii
f28793822d ; Improve use of ngettext 2024-09-25 20:33:30 +01:00
Michael Albinus
d63bff4d88 Fix Tramp shortdoc integration
* lisp/net/tramp-integration.el (tramp-syntax): Declare.
(shortdoc): Check, that Tramp has `default' syntax.
2024-09-25 19:43:07 +02:00
Juri Linkov
759b18a33c * lisp/imenu.el (imenu-flatten): More limitations in docstring (bug#73117) 2024-09-25 20:14:12 +03:00
Sean Whitton
794bb2a2e3 remember-data-file: Don't unconditionally call set-visited-file-name
* lisp/textmodes/remember.el (remember-data-file): Don't
unconditionally call set-visited-file-name.
2024-09-25 16:02:53 +01:00
Robert Pluim
a06a720902 ; Really disable 'button-mode' in 'emacs-news-mode'
* lisp/textmodes/emacs-news-mode.el (emacs-news-mode): Call
'button-mode' with -1 arg.
2024-09-25 16:59:24 +02:00