Commit Graph

159870 Commits

Author SHA1 Message Date
Stefan Kangas
34a97f045a Merge from origin/emacs-28
320f0cac80 ; * etc/NEWS: Fix typo.
5dbe4fa64a Simplify regexp in make-news-html-file
069ffbda09 * admin/admin.el (make-news-html-file): Set id on correct ...
bcc84ac7fe Add version headlines to HTML NEWS export
5d227ae83e ; * etc/NEWS: Fix formatting.

# Conflicts:
#	etc/NEWS
2022-09-17 06:30:41 +02:00
Stefan Kangas
320f0cac80 ; * etc/NEWS: Fix typo. 2022-09-17 02:18:36 +02:00
Stefan Kangas
5dbe4fa64a Simplify regexp in make-news-html-file
* admin/admin.el (make-news-html-file): Simplify regexp.
Suggested by Mattias Engdegård <mattiase@acm.org>.
2022-09-17 02:18:27 +02:00
Gregory Heytings
637cf3ba49 Various improvements to admin/emake.
* admin/emake: Return the status code of make when the build fails.
Filter the output of emake *clean.  Add three options --no-color
(useful for emake check for example), --no-check (useful for quicker
builds during development) and --no-fast.
2022-09-17 01:34:30 +02:00
Stefan Kangas
fe7c015b20 Support XFCE in wallpaper.el
* lisp/image/wallpaper.el (wallpaper--default-commands)
(wallpaper-command): Support XFCE.  (Bug#57781)
Thanks to Thierry Volpiatto <thievol@posteo.net>.
2022-09-16 22:39:33 +02:00
Stefan Kangas
6938a2ddd2 Accept more wide function signatures in docstrings
* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-ignore-function-signature.el"): New test.
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Make regexp more allowing to silence warning.
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-function-signature.el:
New file.
2022-09-16 22:28:46 +02:00
Stefan Kangas
aaf39c3878 image-dired: Add support for PDF files (Bug#26432)
* lisp/image/image-dired.el
(image-dired--file-name-regexp): New function.
(image-dired-display-thumbnail-original-image): Clean up.
(image-dired-display-image): Support visiting PDF files.
* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs):
* lisp/image/image-dired.el (image-dired-get-thumbnail-image)
(image-dired-show-all-from-dir): Use above new function instead of
'image-file-name-regexp'.
2022-09-16 22:28:46 +02:00
Stefan Kangas
dda7502e0a image-dired: Print command when debugging
* lisp/image/image-dired-external.el (image-dired-create-thumb-1):
Display command and arguments when debugging.
* lisp/image/image-dired-util.el (image-dired-debug): Rename from
'image-dired-debug-message'.
2022-09-16 21:36:10 +02:00
Stefan Kangas
a9b0d3b3fc ; * lisp/progmodes/cperl-mode.el: Fix typo. 2022-09-16 21:36:10 +02:00
Stefan Kangas
be34b9bf77 ; * lisp/progmodes/cperl-mode.el: Fix Author header. 2022-09-16 21:23:17 +02:00
Stefan Kangas
b45c6cbf7c Delete mystery code from cperl-mode.el
* lisp/progmodes/cperl-mode.el: Delete commented out code referring to
some 'edit-var-mode-alist' that we don't think is used for anything.
2022-09-16 21:22:00 +02:00
Stefan Kangas
74df877043 Delete some commented out code in cperl-mode.el
The differences between this and the existing `cperl-ps-print-init'
are that some faces had been moved from italic to bold or vice versa,
and that there were some obsolete or non-existent face names
mentioned.  So there is no point to keeping it given that it's been
commented out since 1999.

* lisp/progmodes/cperl-mode.el: Delete code commented out since 1999:
a slightly different, duplicate definition of `cperl-ps-print-init'.
2022-09-16 21:16:29 +02:00
Stefan Monnier
dc5c827440 Fix last occurrence of font-lock-reference-face
Well... except for CC-mode.

* lisp/cedet/semantic/grammar.el (semantic-grammar-mode-keywords-1):
Redirect reference to obsolete `font-lock-reference-face` to
`font-lock-constant-face`.
2022-09-16 14:26:13 -04:00
Stefan Kangas
069ffbda09 * admin/admin.el (make-news-html-file): Set id on correct tag. 2022-09-16 19:46:31 +02:00
Stefan Kangas
bcc84ac7fe Add version headlines to HTML NEWS export
This allows linking to, e.g. "NEWS.28.html#28.1" to go directly to
those release notes.
* admin/admin.el (admin--org-export-headers-format)
(make-news-html-file): Add XX.Y version headlines with an HTML anchor.
2022-09-16 19:34:46 +02:00
Stefan Kangas
5d227ae83e ; * etc/NEWS: Fix formatting. 2022-09-16 19:16:36 +02:00
Mattias Engdegård
d4d6f7a747 * lisp/subr.el (list-of-strings-p): Declare pure and error-free 2022-09-16 18:51:10 +02:00
Juri Linkov
dd1aa62642 * lisp/outline.el: Optimize performance of S-TAB (bug#57813)
(outline-hide-subtree): Don't call outline--insert-close-button, because
it's handled by outline--fix-up-all-buttons called from outline-flag-region.
(outline-show-subtree): Don't call outline--insert-open-button, same reason.
(outline--fix-up-all-buttons): Check invisible outlines explicitly instead of
using slow outline--cycle-state.
2022-09-16 19:16:10 +03:00
Michael Albinus
2053e350f3 Enable `dont-follow' for inotify file notifications
* doc/lispref/os.texi (File Notifications): Symlinks aren't followed.

* lisp/filenotify.el (file-notify--add-watch-inotify):
Add `dont-follow' flag.

* lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
Suppress errors when reading process output.

* test/lisp/filenotify-tests.el (file-notify-test11-symlinks)
(file-notify-test11-symlinks-remote): New tests.
2022-09-16 17:23:59 +02:00
Stefan Kangas
f8c5a82ba1 ; Add myself as image-dired maintainer
* lisp/image/image-dired-dired.el:
* lisp/image/image-dired-external.el:
* lisp/image/image-dired-tags.el:
* lisp/image/image-dired-util.el:
* lisp/image/image-dired.el: Add myself as maintainer.
2022-09-16 17:08:24 +02:00
Stefan Kangas
9b09def4be Use substitute-command-keys in some vc messages
* lisp/vc/vc-dispatcher.el (vc-start-logentry):
* lisp/vc/vc.el (vc-steal-lock): Use substitute-command-keys.
2022-09-16 17:08:24 +02:00
Stefan Kangas
cce9c260b5 ; Merge from origin/emacs-28
The following commit was skipped:

562c196099 ; * etc/NEWS: Backport fixes from master.
2022-09-16 16:27:37 +02:00
Stefan Kangas
6e4f6e97bf Merge from origin/emacs-28
f232d989fd Improve HTML export of NEWS file
397890ba77 Delete "etc/NEWS*.html" from .gitignore
70ca5f6524 ; * etc/NEWS: Fix typos.
19de241a7d Recommend NonGNU ELPA over MELPA
f25f9dbf30 Minor doc fixes in picture.el
520b041b54 * lisp/textmodes/page-ext.el: Improve Commentary.

# Conflicts:
#	etc/NEWS
2022-09-16 16:27:37 +02:00
Stefan Kangas
562c196099 ; * etc/NEWS: Backport fixes from master.
Don't merge to master.
2022-09-16 16:19:44 +02:00
Stefan Kangas
f232d989fd Improve HTML export of NEWS file
* admin/admin.el (admin--org-export-headers-format)
(admin--org-html-postamble): New variables.
(admin--require-external-package): New function.
(make-news-html-file): Improve HTML export.
2022-09-16 16:19:29 +02:00
Stefan Kangas
01ad2a4a92 ; * etc/NEWS.28: Fix merge of NEWS.28. 2022-09-16 16:14:43 +02:00
Stefan Kangas
d407bdfd01 Add command to delete temporary markers in NEWS
* lisp/textmodes/emacs-news-mode.el
(emacs-news-delete-temporary-markers): New command.
* admin/make-tarball.txt: Update instructions.
2022-09-16 16:14:43 +02:00
Alan Mackenzie
ec2dfd110c cc-fonts.el: Eliminate an Emacs compiler warning introduced yesterday.
* lisp/progmodes/cc-fonts.el (top level): Introduce a cc-bytecomp-defvar for
font-lock-reference-face.
2022-09-16 13:57:40 +00:00
Mattias Engdegård
4da0fbdc82 Faster and more robust list-of-strings-p
* lisp/subr.el (list-of-strings-p): Speed up by a factor 4 (approx.)
and don't crash on dotted lists.
* test/lisp/subr-tests.el (test-list-of-strings-p): Extend test.
2022-09-16 15:33:12 +02:00
Stefan Kangas
397890ba77 Delete "etc/NEWS*.html" from .gitignore
We actually do want to see it when preparing a release, so that we
don't include it in a tarball by mistake.
* .gitignore: Don't ignore "etc/NEWS*.html".
2022-09-16 15:27:30 +02:00
Stefan Kangas
70ca5f6524 ; * etc/NEWS: Fix typos. 2022-09-16 15:27:25 +02:00
Michael Albinus
838e6cae81 ; * etc/NEWS: Fix typos. 2022-09-16 15:07:08 +02:00
Stefan Kangas
19de241a7d Recommend NonGNU ELPA over MELPA
* doc/misc/org.org (Using CDLaTeX to enter math, Footnotes): Recommend
NonGNU ELPA over MELPA.
2022-09-16 14:04:27 +02:00
Lars Ingebrigtsen
e3fa41ac92 Fix *Help* output for native-comp functions from IELM
* lisp/help-fns.el (find-lisp-object-file-name): Don't claim that
native-comp functions that are defined outside of files (for
instance, created by calling `native-compile' in IELM) are in C
source (bug#57819).
2022-09-16 13:38:09 +02:00
Eli Zaretskii
17ef280672 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-09-16 14:24:17 +03:00
Eli Zaretskii
e485734151 ; * lisp/image/image-crop.el (image-cut): Doc fix. 2022-09-16 14:23:41 +03:00
Lars Ingebrigtsen
8c5363f8e8 Regenerate ldefs-boot.el 2022-09-16 13:23:34 +02:00
Lars Ingebrigtsen
9c0403aae0 Inhibit image-mode resizing in the minibuffer
* lisp/image-mode.el (image-fit-to-window): Don't resize when in
the minibuffer (bug#57823).
2022-09-16 13:18:53 +02:00
Eli Zaretskii
f3277128e0 ; * lisp/vc/vc.el (vc-responsible-backend): Explain last change. 2022-09-16 14:17:56 +03:00
Lars Ingebrigtsen
711f908f5d Fix cperl list indentation problem
* lisp/progmodes/cperl-mode.el (cperl-calculate-indent): Indent
foo:bar() in lists correctly (bug#57829).
2022-09-16 13:06:23 +02:00
Stefan Kangas
37e9d6a35a Prefer defvar-keymap in picture.el
* lisp/textmodes/picture.el (picture-mode-map): Prefer defvar-keymap.
2022-09-16 12:51:34 +02:00
Stefan Kangas
f25f9dbf30 Minor doc fixes in picture.el
* lisp/textmodes/picture.el: Improve Commentary.
(picture-forward-column, picture-backward-column)
(picture-move-down, picture-move-up, picture-movement-nw)
(picture-movement-ne, picture-movement-sw, picture-movement-se)
(picture-set-motion, picture-clear-line, picture-newline)
(picture-tab, picture-yank-rectangle)
(picture-yank-rectangle-from-register, picture-insert-rectangle)
(picture-draw-rectangle): Minor doc fixes.
2022-09-16 12:50:08 +02:00
Lars Ingebrigtsen
7be7ad279e Don't use autoloaded functions for safe-local-variable
* doc/lispref/symbols.texi (Standard Properties): Clarify how
safe-local-variable should look.

* lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-lisp-words)
(checkdoc-symbol-words): Use list-of-strings-p.
(checkdoc-list-of-strings-p): Obsolete.

* lisp/vc/vc-git.el (vc-git-annotate-switches): Remove.
(vc-git-annotate-switches): Open-code the check.
2022-09-16 12:36:15 +02:00
Lars Ingebrigtsen
7d39453fd6 Add new predicate list-of-strings-p
* lisp/subr.el (list-of-strings-p): New function.
2022-09-16 12:29:54 +02:00
Stefan Kangas
520b041b54 * lisp/textmodes/page-ext.el: Improve Commentary. 2022-09-16 12:14:54 +02:00
Lars Ingebrigtsen
fd8969fe27 Fix sorting of backends in vc-responsible-backend
* lisp/vc/vc.el (vc-responsible-backend): When comparing directory
names, expand them first so that we get consistent sorting of ~/
etc (bug#57777).
2022-09-16 11:46:25 +02:00
Po Lu
cdb8106bec Fix icon spec for outline icons
* lisp/outline.el (outline-open):
(outline-close): Fix listing of multiple images.  Reported by
Lars Ingebrigtsen <larsi@gnus.org>.
2022-09-16 17:18:02 +08:00
Lars Ingebrigtsen
e0ab4e3612 Rename image-elide' to image-cut' and add more bindings
* doc/lispref/display.texi (Showing Images): Update.
* lisp/image.el (image-map): Move binding to mirror Gimp bindings.

* lisp/image/image-crop.el (image-crop-cut-command): Rename.
(image-cut-color): New user option.
(image-cut): Rename and remove prefix.
(image-crop): Remove prefix.
(image-crop--crop-image-update): Add commands to switch to
move/square modes.
2022-09-16 11:03:42 +02:00
Po Lu
4cb3b4e98a Fix wrong source window being generated for XDND leave events
* src/xterm.c (x_dnd_update_state, handle_one_xevent): Let
x_dnd_last_seen_toplevel remain at its old value until any
XdndLeave event was definitely sent.
2022-09-16 17:01:41 +08:00
Po Lu
3c0dda2663 Avoid asserting for fontset validity before it is used
* src/fontset.c (face_for_char): Move `eassert' to before the
fontset is really used.  Suggested by Eli Zaretskii
<eliz@gnu.org>
2022-09-16 15:52:21 +08:00