]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAdd the "always" zsh builtin to zsh mode
Lars Ingebrigtsen [Mon, 25 Oct 2021 15:41:52 +0000 (17:41 +0200)]
Add the "always" zsh builtin to zsh mode

* lisp/progmodes/sh-script.el (sh-builtins): Add the "always" zsh
keyword (bug#51387).

3 years agoAdd xref forward history (bug#38797)
Mattias Engdegård [Tue, 19 Oct 2021 11:26:19 +0000 (13:26 +0200)]
Add xref forward history (bug#38797)

Make it possible to go forward as well as back in the Xref history.
The new `xref-go-forward` is bound to `C-M-,`.

* lisp/progmodes/etags.el (find-tag-marker-ring-length): Update.
(tags-location-ring-length): New.
(find-tag-marker-ring): Keep as dummy.
(tags-location-ring, tags-reset-tags-tables):
Use `tags-location-ring-length` instead of `xref-marker-ring-length`.
* lisp/progmodes/xref.el (xref-marker-ring-length, xref-marker-ring)
(xref-set-marker-ring-length):
Make obsolete.
(xref--history, xref-go-forward, xref-forward-history-empty-p): New.
(xref-push-marker-stack, xref-pop-marker-stack)
(xref-clear-marker-stack, xref-marker-stack-empty-p):
Use `xref--history`.
* lisp/menu-bar.el (menu-bar-goto-menu): Add Forward entry.
* doc/emacs/maintaining.texi (Looking Up Identifiers): Document.
* etc/NEWS: Announce.

3 years agoAllow viewing .heic images via image-convert
Lars Ingebrigtsen [Mon, 25 Oct 2021 15:19:32 +0000 (17:19 +0200)]
Allow viewing .heic images via image-convert

* lisp/files.el (auto-mode-alist): Support the Apple .heic/HEIF
image format (bug#51381).

3 years agoChange the with-delayed-message syntax to allow future extensibility
Lars Ingebrigtsen [Mon, 25 Oct 2021 15:10:34 +0000 (17:10 +0200)]
Change the with-delayed-message syntax to allow future extensibility

* doc/lispref/display.texi (Progress): Document it.
* lisp/subr.el (with-delayed-message): Change the syntax to allow
future extensibility.

* lisp/net/eww.el (eww-display-html): Use it.

3 years agoHeed the EMACS_IGNORE_TIMERFD environment variable
Lars Ingebrigtsen [Mon, 25 Oct 2021 14:49:48 +0000 (16:49 +0200)]
Heed the EMACS_IGNORE_TIMERFD environment variable

* src/emacs.c (main): Call init_atimer after setting up the
environment so that the EMACS_IGNORE_TIMERFD environment variable
is actually heeded.

3 years ago; Fix mangled indentation in 'display-buffer' doc-string
Martin Rudalics [Mon, 25 Oct 2021 09:26:33 +0000 (11:26 +0200)]
; Fix mangled indentation in 'display-buffer' doc-string

3 years agoAllow 'display-buffer' to set up body size of chosen window (Bug#17065)
Martin Rudalics [Mon, 25 Oct 2021 08:42:17 +0000 (10:42 +0200)]
Allow 'display-buffer' to set up body size of chosen window (Bug#17065)

* doc/lispref/windows.texi (Buffer Display Action Alists):
Describe new possible values for 'window-height', 'window-width'
and 'window-size' action alist entries.
* lisp/window.el (window--display-buffer): Handle new values for
'window-height', 'window-width' and 'window-size' ALIST entries.
(display-buffer): Update doc-string for new values of some
action alist entries.
* etc/NEWS: Mention new values of some action alist entries.

3 years agoNew function xdg-state-home
Stefan Kangas [Mon, 25 Oct 2021 05:51:02 +0000 (07:51 +0200)]
New function xdg-state-home

* lisp/xdg.el (xdg-state-home): New function.  This returns
$XDG_STATE_HOME according to the XDG Base Directory Specification
version 0.8 (08th May 2021).

3 years agoimage-dired: Improve XDG compliance
Stefan Kangas [Mon, 25 Oct 2021 04:44:30 +0000 (06:44 +0200)]
image-dired: Improve XDG compliance

* lisp/image-dired.el (xdg): Require.
(image-dired-main-image-directory): Prefer XDG_PICTURES_HOME.
(image-dired-thumb-name): Simplify by using 'xdg-cache-home'.

3 years agoDouble value of image-dired-show-all-from-dir-max-files
Stefan Kangas [Mon, 25 Oct 2021 03:47:56 +0000 (05:47 +0200)]
Double value of image-dired-show-all-from-dir-max-files

* lisp/image-dired.el (image-dired-show-all-from-dir-max-files):
Double the amount of files in directory before prompting.  This could
be even higher, as the thumbnails are generated asynchronously and are
small by default.

3 years agoimage-dired: Add support for GraphicsMagick
Stefan Kangas [Mon, 25 Oct 2021 01:50:04 +0000 (03:50 +0200)]
image-dired: Add support for GraphicsMagick

* lisp/image-dired.el (image-dired-cmd-create-thumbnail-program)
(image-dired-cmd-create-thumbnail-options)
(image-dired-cmd-create-temp-image-program)
(image-dired-cmd-create-temp-image-options)
(image-dired-cmd-rotate-thumbnail-program)
(image-dired-cmd-rotate-thumbnail-options): Add support for the
GraphicsMagick command line tool ("gm convert", "gm mogrify").

3 years agoFix issues with type casting in delayed message functions
Lars Ingebrigtsen [Mon, 25 Oct 2021 00:19:39 +0000 (02:19 +0200)]
Fix issues with type casting in delayed message functions

* src/eval.c (with_delayed_message_display)
(with_delayed_message_cancel, Ffuncall_with_delayed_message): Fix
some type confusion.

3 years agoSupport new Thumbnail Managing Standard sizes in image-dired
Stefan Kangas [Mon, 25 Oct 2021 00:12:48 +0000 (02:12 +0200)]
Support new Thumbnail Managing Standard sizes in image-dired

* lisp/image-dired.el
(image-dired--thumbnail-managing-standard-sizes): New defconst.
(image-dired-thumbnail-storage)
(image-dired-thumb-name, image-dired-insert-thumbnail)
(image-dired-thumb-size, image-dired-create-thumb-1): Support larger
thumbnail sizes mandated by new version of the Thumbnail Managing
Standard (December 2020, Version 0.9.0).

3 years agoUse SHA1 when creating thumbnail file name
Stefan Kangas [Sun, 24 Oct 2021 21:25:07 +0000 (23:25 +0200)]
Use SHA1 when creating thumbnail file name

* lisp/image-dired.el (image-dired-thumb-name): Improve docstring.
Use SHA1 for hashing when creating file name.  SHA1 is slightly faster
than MD5, and has a few more bits.

3 years agoRemove debugging in with_delayed_message_display
Lars Ingebrigtsen [Sun, 24 Oct 2021 21:04:31 +0000 (23:04 +0200)]
Remove debugging in with_delayed_message_display

* src/eval.c (with_delayed_message_display): Remove debugging.

3 years agoDisplay a message if HMTL rendering takes a long time
Lars Ingebrigtsen [Sun, 24 Oct 2021 20:21:04 +0000 (22:21 +0200)]
Display a message if HMTL rendering takes a long time

* lisp/net/eww.el (eww-display-html): Display a message if HTML
rendering takes a long time (bug#19776).

3 years agoAdd new macro `with-delayed-message'
Lars Ingebrigtsen [Sun, 24 Oct 2021 20:20:19 +0000 (22:20 +0200)]
Add new macro `with-delayed-message'

* doc/lispref/display.texi (Progress): Document it.
* lisp/subr.el (with-delayed-message): New macro.

* src/eval.c (with_delayed_message_display)
(with_delayed_message_cancel): Helper functions.
(Ffuncall_with_delayed_message): New function (bug#19776).

3 years agoCC Mode: Fontify "found types" which are recognized after being first scanned
Alan Mackenzie [Sun, 24 Oct 2021 19:59:18 +0000 (19:59 +0000)]
CC Mode: Fontify "found types" which are recognized after being first scanned

This aims to fix the scenario where on jit-lock's first scan of a type, it is
not recognized as such, and only later does this happen.  The fontification of
such found types is now done by background scanning in short time slices
immediately after initialising the mode.

* lisp/progmodes/cc-engine.el (c-add-type-1): New function.
(c-add-type): Extract c-add-type-1 from it, and reformulate the mechanism for
protecting c-found-types from excessive partial identifiers.

* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Remove the
code which cleared c-found-types on fontification at BOB.
(c-find-types-background): New function, based on c-font-lock-declarations).
(c-type-finder-timer-func): New function.
(c-re-redisplay-timer): New variable.
(c-force-redisplay, c-fontify-new-found-type): New functions.

* lisp/progmodes/cc-mode.el (c-type-finder-timer, c-inhibit-type-finder): New
variables.
(c-leave-cc-mode-mode): Nullify c-post-command-hook, c-post-gc-hook, and
c-type-finder-timer when the last CC Mode buffer of a session is killed.
(c-type-finder-pos): New variable.
(c-basic-common-init): Initialize/Install c-post-command, c-c-type-finder-pos,
c-type-finder-timer, and c-post-gc-hook.
(c-new-id-start, c-new-id-end, c-new-id-is-type): New variables.
(c-update-new-id): New function.
(c-post-command): New post command hook function, used for checking moving
away from partially typed identifiers, and making them full identifiers.
(c-post-gc-hook): New hook to prevent CC Mode activity immediately following
GC, thus allowing keyboard/mouse input to be registered.
(c-before-change): Add code to clear c-found-types on a buffer change at BOB.
(c-after-change): Call c-update-new-id to keep track of partially typed
identifiers.

* doc/misc/cc-mode.texi (Found Types): New @section in the @Chapter Font
Locking.

* lisp/progmodes/cc-vars.el (c-type-finder-time-slot)
(c-type-finder-repeat-time, c-type-finder-chunk-size): New customizable
options.

3 years agoFix mouse buttons in dired--make-directory-clickable
Lars Ingebrigtsen [Sun, 24 Oct 2021 19:21:25 +0000 (21:21 +0200)]
Fix mouse buttons in dired--make-directory-clickable

* lisp/dired.el (dired--make-directory-clickable): Adjust mouse
clicks to conform to our standards.

3 years agoDon't unhide first thread if entering without selecting article
Lars Ingebrigtsen [Sun, 24 Oct 2021 18:25:12 +0000 (20:25 +0200)]
Don't unhide first thread if entering without selecting article

* lisp/gnus/gnus-sum.el (gnus-summary-first-unread-subject)
(gnus-summary-first-unseen-subject)
(gnus-summary-first-unseen-or-unread-subject): Use it.
(gnus-summary--goto-and-possibly-unhide): New function -- don't
unhide the first thread unless necessary (bug#51344).

3 years agoImprove documentation of image-dired thumbnails
Stefan Kangas [Sun, 24 Oct 2021 16:36:09 +0000 (18:36 +0200)]
Improve documentation of image-dired thumbnails

* lisp/image-dired.el: Fix documentation on thumbnail file format to
correctly say that it can be either PNG or JPEG; not just JPEG.  Also
fix inconsistent formatting in comments.
* lisp/image-dired.el (image-dired-thumbnail-storage): Improve
docstring.

3 years agoAdd support for pngquant to image-dired
Stefan Kangas [Sun, 24 Oct 2021 16:28:20 +0000 (18:28 +0200)]
Add support for pngquant to image-dired

* lisp/image-dired.el (image-dired-cmd-pngnq-program)
(image-dired-cmd-pngnq-options): Add support for pngquant.
Prefer, in this order: pngquant, pngnq-s9, pngnq-s for reasons of
speed and how actively maintained the projects seem to be.

3 years agoFix compilation errors with MinGW64 GCC 11
Eli Zaretskii [Sun, 24 Oct 2021 17:45:56 +0000 (20:45 +0300)]
Fix compilation errors with MinGW64 GCC 11

* lib-src/ntlib.c (IS_DIRECTORY_SEP): Remove redundant macro.

* lib-src/ntlib.c (DEFER_MS_W32_H):
* nt/addpm.c (DEFER_MS_W32_H):
* nt/cmdproxy.c (DEFER_MS_W32_H):
* nt/ddeclient.c (DEFER_MS_W32_H):
* nt/preprep.c (DEFER_MS_W32_H):
* nt/runemacs.c (DEFER_MS_W32_H): Fix a typo.
* nt/Makefile.in (BASE_CFLAGS): Add -I switches to pick up
config.h and lib/attribute.h.

3 years agoInclude <config.h> first in MS-Windows source
Paul Eggert [Sun, 24 Oct 2021 03:35:18 +0000 (20:35 -0700)]
Include <config.h> first in MS-Windows source

3 years agoFix define-erc-response-handler indentation
Lars Ingebrigtsen [Sun, 24 Oct 2021 16:54:27 +0000 (18:54 +0200)]
Fix define-erc-response-handler indentation

* lisp/erc/erc-backend.el (define-erc-response-handler): Add
proper indentation.

3 years ago; Unbreak creating thumbnails in image-dired
Stefan Kangas [Sun, 24 Oct 2021 16:18:43 +0000 (18:18 +0200)]
; Unbreak creating thumbnails in image-dired

* lisp/image-dired.el (image-dired-insert-thumbnail): Unbreak
creating thumbnails after my previous commit.

3 years ago; * etc/NEWS: Fix typos.
Michael Albinus [Sun, 24 Oct 2021 15:46:23 +0000 (17:46 +0200)]
; * etc/NEWS: Fix typos.

3 years agoAdd new option help-link-key-to-documentation
Stefan Kangas [Sun, 24 Oct 2021 14:47:22 +0000 (16:47 +0200)]
Add new option help-link-key-to-documentation

* lisp/help.el (help-link-key-to-documentation): New user option.
(substitute-command-keys): Add a link from keys to the command they
are bound to, if the above new option is non-nil.  (Bug#8951)
* etc/NEWS: Announce the new option.

3 years agoMake dired directory components clickable
William Xu [Sun, 24 Oct 2021 14:15:12 +0000 (16:15 +0200)]
Make dired directory components clickable

* lisp/dired.el (dired-readin): Use it.

* lisp/dired.el (dired-make-directory-clickable): New user option.

* lisp/dired.el (dired--make-directory-clickable): New function
(bug#21973).

3 years agoDon't use obsolete variable `find-tag-marker-ring`
Mattias Engdegård [Sun, 24 Oct 2021 10:15:31 +0000 (12:15 +0200)]
Don't use obsolete variable `find-tag-marker-ring`

* lisp/progmodes/js.el (js-find-symbol):
* lisp/progmodes/octave.el (octave-find-definition):
Call `xref-push-marker-stack` instead of manipulating the obsolete
variable `find-tag-marker-ring`.

3 years agoTweak bug-reference-tests
Lars Ingebrigtsen [Sun, 24 Oct 2021 13:18:33 +0000 (15:18 +0200)]
Tweak bug-reference-tests

* test/lisp/progmodes/bug-reference-tests.el: Tweak tests a bit.

3 years agoClean up duplicated setting in scheme-mode-variables
Lars Ingebrigtsen [Sun, 24 Oct 2021 13:07:32 +0000 (15:07 +0200)]
Clean up duplicated setting in scheme-mode-variables

* lisp/progmodes/scheme.el (scheme-mode-variables): Remove
repeated setting.

3 years agoAllow matching non-.git URLs in bug-reference
Lars Ingebrigtsen [Sun, 24 Oct 2021 12:14:42 +0000 (14:14 +0200)]
Allow matching non-.git URLs in bug-reference

* lisp/progmodes/bug-reference.el
(bug-reference--build-forge-setup-entry): Allow matching non-.git
URLs, with and without slashes (bug#51316).

3 years agoDon't hard-code image-dired thumbnail type
Stefan Kangas [Sun, 24 Oct 2021 10:26:39 +0000 (12:26 +0200)]
Don't hard-code image-dired thumbnail type

* lisp/image-dired.el (image-dired-insert-thumbnail): Detect thumbnail
image type instead of hard-coding it.

3 years agoExpand tests for image-type-from-file-header
Stefan Kangas [Sun, 24 Oct 2021 10:07:48 +0000 (12:07 +0200)]
Expand tests for image-type-from-file-header

* test/lisp/image-tests.el (image-tests--files): New defconst.
(image-tests--type-from-file-header): New defun.
(image-type-from-file-header-test/jpeg)
(image-type-from-file-header-test/pbm)
(image-type-from-file-header-test/png)
(image-type-from-file-header-test/svg)
(image-type-from-file-header-test/tiff)
(image-type-from-file-header-test/webp)
(image-type-from-file-header-test/xbm)
(image-type-from-file-header-test/xpm): New tests.
(image-type-from-file-header-test): Delete test.

3 years agoAdd tests for gif to src/image-tests.el
Stefan Kangas [Sun, 24 Oct 2021 10:05:37 +0000 (12:05 +0200)]
Add tests for gif to src/image-tests.el

* test/src/image-tests.el (image-tests--images): Rename from
image-tests-files.  Add gif.
(image-tests-image-size/gif)
(image-tests-image-mask-p/gif)
(image-tests-image-metadata/gif): New tests.
* test/data/image/black.gif: New file.

3 years agoMerge from origin/emacs-28
Glenn Morris [Sun, 24 Oct 2021 08:55:45 +0000 (01:55 -0700)]
Merge from origin/emacs-28

c7f53824a8 (origin/emacs-28) Update publicsuffix.txt from upstream
9a50f760e9 ; * doc/lispref/modes.texi (Hooks): Clarify wording.  (Bug...
e154fd9119 Refer to the info node on keymaps in map-keymap docstring
4fd5c8df67 Clarify abnormal hook documentation
6fa5206770 Update to Org 9.5-59-g52e6f1
39413a45bf ; * doc/lispref/functions.texi (Calling Functions): Fix la...
43914ab01f Improve documentation of cl-reduce
ef37a86cac Improve documentation of apply-partially
1e8be48738 Fix typos
8c5fbd712b Revert commit 225ca617b7, and apply another fix
cdbd03345d Fix documentation of posn-at-x-y
598732c899 ; * src/vm-limit.c (get_lim_data): Fix a typo.  (Bug#18238)
efdffd86c5 ; * etc/refcards/README: Prefer HTTPS in link.

# Conflicts:
# etc/NEWS

3 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Sun, 24 Oct 2021 08:37:57 +0000 (10:37 +0200)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2021-10-16 16:33:47 GMT.

3 years ago; * doc/lispref/modes.texi (Hooks): Clarify wording. (Bug#34588)
Eli Zaretskii [Sun, 24 Oct 2021 06:44:18 +0000 (09:44 +0300)]
; * doc/lispref/modes.texi (Hooks): Clarify wording.  (Bug#34588)

3 years agoMake dired-x-guess-file-name-at-point obsolete
Stefan Kangas [Sun, 24 Oct 2021 06:34:52 +0000 (08:34 +0200)]
Make dired-x-guess-file-name-at-point obsolete

* lisp/dired-x.el (dired-x-guess-file-name-at-point): Make
obsolete in favour of 'thing-at-point'.
(dired-x-read-filename-at-point): Use 'thing-at-point' instead of
above obsolete function.

3 years agoRefer to the info node on keymaps in map-keymap docstring
Stefan Kangas [Sun, 24 Oct 2021 06:08:09 +0000 (08:08 +0200)]
Refer to the info node on keymaps in map-keymap docstring

* src/keymap.c (Fmap_keymap): Doc fix; add a reference to the Info
node '(elisp) Keymaps'.  (Bug#30958)

3 years agoClarify abnormal hook documentation
Stefan Kangas [Sat, 23 Oct 2021 18:03:34 +0000 (20:03 +0200)]
Clarify abnormal hook documentation

* doc/lispref/hooks.texi (Standard Hooks):
* doc/lispref/modes.texi (Hooks): Clarify wording of "abnormal
hook" documentation.  (Bug#34588)

3 years agoUpdate to Org 9.5-59-g52e6f1
Kyle Meyer [Sat, 23 Oct 2021 17:34:28 +0000 (13:34 -0400)]
Update to Org 9.5-59-g52e6f1

3 years ago; * doc/lispref/functions.texi (Calling Functions): Fix last change.
Eli Zaretskii [Sat, 23 Oct 2021 17:44:26 +0000 (20:44 +0300)]
; * doc/lispref/functions.texi (Calling Functions): Fix last change.

3 years agoImprove documentation of cl-reduce
Stefan Kangas [Sat, 23 Oct 2021 17:20:31 +0000 (19:20 +0200)]
Improve documentation of cl-reduce

* doc/misc/cl.texi (Mapping over Sequences): Change the
explanation of 'cl-reduce' so you don't need to have a major in
mathematics to understand it.  (Bug#24014)

3 years agoImprove documentation of apply-partially
Stefan Kangas [Sat, 23 Oct 2021 16:42:14 +0000 (18:42 +0200)]
Improve documentation of apply-partially

* doc/lispref/functions.texi (Calling Functions): Improve
documentation of 'apply-partially' to be slightly more clear with
regards to function arity.  (Bug#17623)

3 years agoCheck for image library in image-dired-tests.el
Michael Albinus [Sat, 23 Oct 2021 15:47:27 +0000 (17:47 +0200)]
Check for image library in image-dired-tests.el

* test/lisp/image-dired-tests.el
(image-dired-tests-get-exif-file-name): Check for jpeg library.

3 years agoSupport :company-deprecated completion property
Dmitry Gutov [Sat, 23 Oct 2021 13:28:53 +0000 (16:28 +0300)]
Support :company-deprecated completion property

* lisp/progmodes/elisp-mode.el (elisp--company-deprecated):
New function.
(elisp-completion-at-point): Use it.

3 years agoFix typos
Michael Albinus [Sat, 23 Oct 2021 13:21:33 +0000 (15:21 +0200)]
Fix typos

* doc/emacs/cmdargs.texi:
* etc/DEBUG:
* etc/NEWS: Fix typos.

3 years agoRevert commit 225ca617b7, and apply another fix
Michael Albinus [Sat, 23 Oct 2021 13:21:14 +0000 (15:21 +0200)]
Revert commit 225ca617b7, and apply another fix

* lisp/minibuffer.el (read-file-name-default): Revert commit
225ca617b7.  (Bug#50976).

* lisp/shell.el (shell): Remove volume letter for remote shell
file name.  (Bug#49229)

3 years ago* test/infra/gitlab-ci.yml (variables, default): Increase timeout to 4 hours.
Michael Albinus [Sat, 23 Oct 2021 11:23:25 +0000 (13:23 +0200)]
* test/infra/gitlab-ci.yml (variables, default): Increase timeout to 4 hours.

3 years agoRevert "CC Mode: Fontify "found types" which are recognized after being ..."
Alan Mackenzie [Sat, 23 Oct 2021 09:29:26 +0000 (09:29 +0000)]
Revert "CC Mode: Fontify "found types" which are recognized after being ..."

This reverts commit 51719617eb19833056618ebac403cdcaf711551a.  The commit
caused a hang at start-up with a big desktop.

3 years agoFix documentation of posn-at-x-y
Stefan Kangas [Sat, 23 Oct 2021 07:45:23 +0000 (09:45 +0200)]
Fix documentation of posn-at-x-y

* doc/lispref/commands.texi (Accessing Mouse): Fix documentation of
'posn-at-x-y' to match docstring.  (Bug#15783)

3 years agoPartially remove exiftool dependency from image-dired.el
Stefan Kangas [Sat, 23 Oct 2021 04:49:09 +0000 (06:49 +0200)]
Partially remove exiftool dependency from image-dired.el

* lisp/image-dired.el (exif): Require.
(image-dired-cmd-read-exif-data-program)
(image-dired-cmd-read-exif-data-options)
(image-dired-get-exif-data): Make obsolete in favour of using
exif.el.  This removes a dependency on external exiftool for some
operations.
(image-dired-get-exif-file-name)
(image-dired-thumbnail-set-image-description): Use exif.el
functions instead of exiftool.
* lisp/image/exif.el (exif-tag-alist): Add description and
copyright fields.
* test/lisp/image-dired-tests.el: New file.

3 years ago; * src/vm-limit.c (get_lim_data): Fix a typo. (Bug#18238)
Eli Zaretskii [Sat, 23 Oct 2021 06:15:40 +0000 (09:15 +0300)]
; * src/vm-limit.c (get_lim_data): Fix a typo.  (Bug#18238)

3 years agoAdd new function exif-field
Stefan Kangas [Sat, 23 Oct 2021 04:12:35 +0000 (06:12 +0200)]
Add new function exif-field

* test/lisp/image/exif-tests.el (exif-elem): Move function from here...
* lisp/image/exif.el (exif-field): ...to here, and rename.
(exif-orientation):
* test/lisp/image/exif-tests.el (test-exif-parse)
(test-exif-parse-short): Use above new function.

3 years agoAdd links to commentary reached with finder-list-keywords
Stefan Kangas [Sat, 23 Oct 2021 03:25:37 +0000 (05:25 +0200)]
Add links to commentary reached with finder-list-keywords

* lisp/finder.el (finder-goto-xref): Move from here...
* lisp/emacs-lisp/package.el (package--finder-goto-xref): ...to
here.  Make the old name into an obsolete function alias.
(package--finder-xref): New button type.
(package--describe-add-library-links): Factor out new function...
* lisp/finder.el (finder-commentary): ...from here.
(describe-package-1): Call above new function.  This fixes an
issue where commentaries reached via 'finder-list-keywords' did
not have links.  (Bug#10814)

3 years ago* src/image.c (webp_load): Fix thinkos.
Stefan Kangas [Sat, 23 Oct 2021 00:46:06 +0000 (02:46 +0200)]
* src/image.c (webp_load): Fix thinkos.

3 years ago; * etc/refcards/README: Prefer HTTPS in link.
Stefan Kangas [Fri, 22 Oct 2021 23:19:04 +0000 (01:19 +0200)]
; * etc/refcards/README: Prefer HTTPS in link.

3 years agoCC Mode: Fontify "found types" which are recognized after being first scanned
Alan Mackenzie [Fri, 22 Oct 2021 19:55:01 +0000 (19:55 +0000)]
CC Mode: Fontify "found types" which are recognized after being first scanned

This aims to fix the scenario where on jit-lock's first scan of a type, it is
not recognized as such, and only later does this happen.  The fontification of
such found types is now done by background scanning in short time slices
immediately after initialising the mode.

* lisp/progmodes/cc-engine.el (c-add-type-1): New function.
(c-add-type): Extract c-add-type-1 from it, and reformulate the mechanism for
protecting c-found-types from excessive partial identifiers.

* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Remove the
code which cleared c-found-types on fontification at BOB.
(c-find-types-background): New function, based on c-font-lock-declarations).
(c-types-finder-timer-func): New function.
(c-re-redisplay-timer): New variable.
(c-force-redisplay, c-fontify-new-found-type): New functions.

* lisp/progmodes/cc-mode.el (c-type-finder-timer): New variable.
(c-leave-cc-mode-mode): Nullify c-post-command-hook and c-type-finder-timer
when the last CC Mode buffer of a session is killed.
(c-type-finder-pos): New variable.
(c-basic-common-init): Initialize c-type-finder-pos and c-type-finder-timer.
(c-new-id-start, c-new-id-end, c-new-id-is-type): New variables.
(c-update-new-id): New function.
(c-post-command): New post command hook function, used for checking moving
away from partially typed identifiers, and making them full identifiers.
(c-before-change): Add code to clear c-found-types on a buffer change at BOB.
(c-after-change): Call c-update-new-id to keep track of partially typed
identifiers.

* doc/misc/cc-mode.texi (Found Types): New @section in the @Chapter Font
Locking.

* lisp/progmodes/cc-vars.el (c-type-finder-time-slot)
(c-type-finder-repeat-time, c-type-finder-chunk-size): New customizable
options.

3 years agoMerge from origin/emacs-28
Glenn Morris [Fri, 22 Oct 2021 16:39:39 +0000 (09:39 -0700)]
Merge from origin/emacs-28

b0d64be0bc (origin/emacs-28) Improve some NEWS entries
7fde84e881 Improve documentation of syntax-ppss-context slightly
5ecbed01b2 ; * test/lisp/mh-e/mh-utils-tests.el: Update macro declara...
168665da59 Move some xwidget entries
efde024361 time-stamp-tests: improvements to test macros
06c944cff1 Fix rfc6068-parse-mailto-url autoload
9b6b5e37ef Regexp-quote github domains in bug-reference
1f6cdeb12c Ensure valid end/beginning lines in message-mark-inserted-...
9b46150ab0 * etc/NEWS: Improve 'repeat-mode' entry.
9c37b812da ; * lisp/repeat.el (repeat-mode): Fix docstring typo.
caf87d80fa * lisp/repeat.el (repeat-keep-prefix): Expand description.
24083c8d13 * lisp/net/eww.el (eww-retrieve-command): Add :tag.
cf7d8fb1d7 Add description of cards to etc/refcards/README
d2849cc645 Fix 'calculate-lisp-indent' when "[" starts containing sex...
2a0a368ddc Fix typo in doc/emacs/anti.texi
9529e1d2fb Update doc of Edebug specification for macros
5bc522b4f4 ; * lisp/simple.el (kill-region): A better fix for bug#51320.
ee6bdd6eef Fix non-interactive behavior of 'kill-region'
2b7655ca0e ; More accurate doc string for 'tab-bar-format'
2841e26744 * test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys.
1cdb4d2077 * lisp/menu-bar.el (menu-bar-keymap): Add optional arg KEY...

# Conflicts:
# etc/NEWS
# lisp/progmodes/bug-reference.el

3 years agoImprove some NEWS entries
Robert Pluim [Fri, 22 Oct 2021 16:03:00 +0000 (18:03 +0200)]
Improve some NEWS entries

* etc/NEWS: Improve some NEWS entries.

3 years agoImprove documentation of syntax-ppss-context slightly
Robert Pluim [Fri, 22 Oct 2021 15:51:56 +0000 (17:51 +0200)]
Improve documentation of syntax-ppss-context slightly

* doc/lispref/syntax.texi (Parser State): Document all possible return
values from 'syntax-ppss-context'.

3 years ago; * test/lisp/mh-e/mh-utils-tests.el: Update macro declarations.
Stephen Gildea [Fri, 22 Oct 2021 15:45:57 +0000 (08:45 -0700)]
; * test/lisp/mh-e/mh-utils-tests.el: Update macro declarations.

3 years agoMove some xwidget entries
Robert Pluim [Fri, 22 Oct 2021 15:42:57 +0000 (17:42 +0200)]
Move some xwidget entries

* etc/NEWS: Move xwidget entries to correct location.

3 years agotime-stamp-tests: improvements to test macros
Stephen Gildea [Fri, 22 Oct 2021 15:38:17 +0000 (08:38 -0700)]
time-stamp-tests: improvements to test macros

test/lisp/time-stamp-tests.el: Update macro declarations.
(formatz-generate-tests): Don't nconc onto a constant list.
Tests now run 12% faster in batch mode.

3 years agoFix rfc6068-parse-mailto-url autoload
Itai Y. Efrat [Fri, 22 Oct 2021 15:07:56 +0000 (17:07 +0200)]
Fix rfc6068-parse-mailto-url autoload

* lisp/net/browse-url.el (rfc6068-parse-mailto-url): Fix autoload
cookie (bug#51333).

3 years agoRegexp-quote github domains in bug-reference
Lars Ingebrigtsen [Fri, 22 Oct 2021 14:57:04 +0000 (16:57 +0200)]
Regexp-quote github domains in bug-reference

* lisp/progmodes/bug-reference.el
(bug-reference--build-forge-setup-entry): Regexp-quote the domain
(bug#51316).

3 years agoEnsure valid end/beginning lines in message-mark-inserted-region
Lars Ingebrigtsen [Fri, 22 Oct 2021 14:38:11 +0000 (16:38 +0200)]
Ensure valid end/beginning lines in message-mark-inserted-region

* lisp/gnus/message.el (message-mark-inserted-region): Ensure
there's a newline before inserting the end line (bug#51324).

3 years agoAdapt some emba parameters
Michael Albinus [Fri, 22 Oct 2021 13:02:34 +0000 (15:02 +0200)]
Adapt some emba parameters

* test/infra/Dockerfile.emba (emacs-inotify): Reduce debug options.

* test/infra/gitlab-ci.yml (test-native-comp-speed0): Adapt make_params.

3 years ago; * nt/INSTALL: Fix a typo.
Eli Zaretskii [Fri, 22 Oct 2021 12:42:27 +0000 (15:42 +0300)]
; * nt/INSTALL: Fix a typo.

3 years agoFix WebP support on MS-Windows
Eli Zaretskii [Fri, 22 Oct 2021 12:41:00 +0000 (15:41 +0300)]
Fix WebP support on MS-Windows

* src/image.c (WebPDecodeRGBA, WebPDecodeRGB, WebPFree): Use
correct names and argument lists in DEF_DLL_FN; fix typos.
(WebPGetFeaturesInternal): Load this instead of WebPGetFeatures,
which is a static inline function in webp/decode.h.
(WebPGetFeatures): Redirect to call WebPGetFeaturesInternal.

* lisp/term/w32-win.el (dynamic-library-alist): Fix the name of
the WebP symbol.

* configure.ac (HAVE_WEBP): Fix detection of libwebp on MinGW.

* nt/INSTALL.W64:
* nt/INSTALL: Update information about libwebp availability.

3 years ago* etc/NEWS: Improve 'repeat-mode' entry.
Robert Pluim [Fri, 22 Oct 2021 10:16:34 +0000 (12:16 +0200)]
* etc/NEWS: Improve 'repeat-mode' entry.

3 years ago; * lisp/repeat.el (repeat-mode): Fix docstring typo.
Robert Pluim [Fri, 22 Oct 2021 10:15:06 +0000 (12:15 +0200)]
; * lisp/repeat.el (repeat-mode): Fix docstring typo.

3 years ago* lisp/repeat.el (repeat-keep-prefix): Expand description.
Robert Pluim [Thu, 21 Oct 2021 14:22:48 +0000 (16:22 +0200)]
* lisp/repeat.el (repeat-keep-prefix): Expand description.

3 years ago* lisp/net/eww.el (eww-retrieve-command): Add :tag.
Robert Pluim [Thu, 21 Oct 2021 13:53:35 +0000 (15:53 +0200)]
* lisp/net/eww.el (eww-retrieve-command): Add :tag.

3 years agoAdd WebP image format support (Bug#51296)
Stefan Kangas [Fri, 22 Oct 2021 08:59:01 +0000 (10:59 +0200)]
Add WebP image format support (Bug#51296)

* configure.ac (--with-webp): New option.
(HAVE_WEBP): New variable.
(emacs_config_features): Add webp.
* src/image.c (enum webp_keyword_index) [HAVE_WEBP]: New enum.
(webp_format) [HAVE_WEBP]: New variable.
(webp_image_p, init_webp_functions, webp_load) [HAVE_WEBP]: New
functions for WebP support.
(image_types) [HAVE_WEBP]: Define WebP format.
(syms_of_image) <Qwebp> [HAVE_WEBP]: New DEFSYM.  Add image type Qwebp.
* src/Makefile.in (LIBIMAGE): Add WEBP_LIBS.

* lisp/files.el (auto-mode-alist):
* lisp/image-file.el (image-file-name-extensions):
* lisp/image.el (image-type-header-regexps)
(image-type-file-name-regexps, image-type-auto-detectable): Add WebP
support.
* lisp/term/w32-win.el (dynamic-library-alist): Add the libwebp DLL.

* INSTALL:
* admin/CPP-DEFINES:
* doc/lispref/display.texi (Image Formats, Other Image Types):
* nt/INSTALL: Document WebP support.

* test/lisp/image-tests.el (image-find-image)
(image-type-from-file-name): Expand tests.
* test/src/image-tests.el (image-tests--files): Add WebP.
(image-tests-image-size/webp, image-tests-image-mask-p/webp)
(image-tests-image-metadata/webp): New tests.
* test/data/image/black.webp: New file.

3 years agoIn 'window-text-pixel-size' use actual mode line heights if wanted (Bug#38181)
Martin Rudalics [Fri, 22 Oct 2021 08:34:49 +0000 (10:34 +0200)]
In 'window-text-pixel-size' use actual mode line heights if wanted (Bug#38181)

* src/xdisp.c (Fwindow_text_pixel_size): Run display_mode_line
when MODE_LINES wants it to take actual mode line heights into
account (Bug#38181).

3 years agoAdd description of cards to etc/refcards/README
Stefan Kangas [Fri, 22 Oct 2021 08:22:08 +0000 (10:22 +0200)]
Add description of cards to etc/refcards/README

* etc/refcards/README: List all the generated reference cards,
including their translations.  (Bug#8932)

3 years agoFix 'calculate-lisp-indent' when "[" starts containing sexp (Bug#51312)
Martin Rudalics [Fri, 22 Oct 2021 08:16:17 +0000 (10:16 +0200)]
Fix 'calculate-lisp-indent' when "[" starts containing sexp (Bug#51312)

* lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Handle
arbitrary paren syntax after skipping whitespace backwards within
containing sexp (Bug#51312).

3 years ago; Revert parts of previous commit
Stefan Kangas [Fri, 22 Oct 2021 05:41:55 +0000 (07:41 +0200)]
; Revert parts of previous commit

* admin/unidata/unidata-gen.el (unidata-gen-table)
(unidata-gen-table-symbol, unidata-gen-table-integer)
(unidata-gen-table-numeric, unidata-gen-table-word-list)
(unidata-describe-decomposition):
* lisp/composite.el (unicode-category-table):
* lisp/files.el (recover-file):
* lisp/frame.el (frames-on-display-list, frame-background-mode):
* lisp/language/indian.el (script-regexp-alist): Revert parts of
previous commit; it seemed innocent but caused issues.

3 years agoFix typo in doc/emacs/anti.texi
Stefan Kangas [Fri, 22 Oct 2021 03:28:21 +0000 (05:28 +0200)]
Fix typo in doc/emacs/anti.texi

* doc/emacs/anti.texi (Antinews): Fix typo.  (Bug#51325)
Reported by Po Lu <luangruo@yahoo.com>.

3 years agoUpdate doc of Edebug specification for macros
Stephen Gildea [Fri, 22 Oct 2021 03:10:53 +0000 (20:10 -0700)]
Update doc of Edebug specification for macros

doc/lispref/edebug.texi:  Update documentation of Edebug specification:
- Do not document "0" as a recommended shortcut for non-instrumented
arguments; nobody knows about nor uses this, so don't encourage it.
- Add an example equivalent to (declare (debug (&rest sexp))).

3 years agoRemove redundant #' before lambda
Stefan Kangas [Thu, 21 Oct 2021 21:35:07 +0000 (23:35 +0200)]
Remove redundant #' before lambda

* admin/unidata/unidata-gen.el (unidata-gen-table)
(unidata-gen-table-symbol, unidata-gen-table-integer)
(unidata-gen-table-numeric, unidata-gen-table-word-list)
(unidata-describe-decomposition):
* lisp/apropos.el (apropos-user-option):
* lisp/bookmark.el (bookmark-bmenu-search):
* lisp/composite.el (unicode-category-table):
* lisp/elec-pair.el (electric-pair--balance-info):
* lisp/electric.el (electric-quote-chars):
* lisp/emulation/cua-base.el (cua-rectangle-mark-key):
* lisp/epa-hook.el (epa-file-encrypt-to):
* lisp/faces.el (face-font-selection-order)
(face-font-family-alternatives, face-font-registry-alternatives)
(face-valid-attribute-values, tty-run-terminal-initialization):
* lisp/files.el (recover-file, file-expand-wildcards):
* lisp/frame.el (frames-on-display-list):
* lisp/help-at-pt.el (help-at-pt-display-when-idle):
* lisp/help-fns.el (help-fns--face-attributes):
* lisp/ido.el (ido-mode, ido-unc-hosts):
* lisp/isearch.el (isearch-highlight-regexp)
(isearch-highlight-lines-matching-regexp):
* lisp/language/indian.el (script-regexp-alist):
* lisp/language/lao.el:
* lisp/leim/quail/ipa.el (ipa-x-sampa-prepend-to-keymap-entry):
* lisp/mh-e/mh-folder.el (mh-process-commands):
* lisp/mh-e/mh-mime.el (mh-display-with-external-viewer):
* lisp/ps-mule.el (ps-mule-end-job):
* lisp/ps-print.el (ps-color-scale, ps-background-pages)
(ps-background-text, ps-background-image, ps-background)
(ps-begin-job, ps-print-translation-table):
* lisp/recentf.el (recentf-sort-ascending)
(recentf-sort-descending, recentf-sort-basenames-ascending)
(recentf-sort-basenames-descending)
(recentf-sort-directories-ascending)
(recentf-sort-directories-descending):
* lisp/replace.el (occur-engine-add-prefix):
* lisp/select.el (xselect--encode-string):
* lisp/server.el (server-use-tcp):
* lisp/ses.el (ses-sort-column):
* lisp/sort.el (sort-columns):
* lisp/term/ns-win.el (window-system-initialization):
* lisp/tree-widget.el (tree-widget-image-formats):
* lisp/whitespace.el (whitespace-report-region): Remove redundant #'
before lambda.

3 years ago; * lisp/simple.el (kill-region): A better fix for bug#51320.
Eli Zaretskii [Thu, 21 Oct 2021 19:29:37 +0000 (22:29 +0300)]
; * lisp/simple.el (kill-region): A better fix for bug#51320.

3 years agoAdd comment on reworking a section in emacs-lisp-intro.texi
Stefan Kangas [Thu, 21 Oct 2021 19:22:51 +0000 (21:22 +0200)]
Add comment on reworking a section in emacs-lisp-intro.texi

* doc/lispintro/emacs-lisp-intro.texi (Body of mark-whole-buffer):
Add comment about how one could rework this section.

3 years agoFix non-interactive behavior of 'kill-region'
Eli Zaretskii [Thu, 21 Oct 2021 19:13:09 +0000 (22:13 +0300)]
Fix non-interactive behavior of 'kill-region'

* lisp/simple.el (kill-region): Actually ignore BEG and END when
REGION is non-nil.  Doc fix.  (Bug#51320)

3 years ago; More accurate doc string for 'tab-bar-format'
Eli Zaretskii [Thu, 21 Oct 2021 18:09:03 +0000 (21:09 +0300)]
; More accurate doc string for 'tab-bar-format'

* lisp/tab-bar.el (tab-bar-format): Make the doc string more
accurate.  (Bug#51247)

3 years agoConfigure Emacs on emba with debug options
Michael Albinus [Thu, 21 Oct 2021 18:04:51 +0000 (20:04 +0200)]
Configure Emacs on emba with debug options

* test/infra/Dockerfile.emba (emacs-base): Install gdb.
(emacs-inotify): Configure debug options.

3 years ago* test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys.
Juri Linkov [Thu, 21 Oct 2021 17:22:15 +0000 (20:22 +0300)]
* test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys.

(dabbrev-expand-test, dabbrev-completion-test)
(dabbrev-completion-test-with-argument):
Use 'kbd' to format keys for 'execute-kbd-macro'.
(dabbrev-expand-test): Fix docstring.

3 years ago* lisp/menu-bar.el (menu-bar-keymap): Add optional arg KEYMAP (bug#50067).
Juri Linkov [Thu, 21 Oct 2021 16:55:24 +0000 (19:55 +0300)]
* lisp/menu-bar.el (menu-bar-keymap): Add optional arg KEYMAP (bug#50067).

* lisp/mouse.el (context-menu-global): Use 'menu-bar-keymap' with
its arg KEYMAP set to 'global-map'.

3 years agoActually fix the Pango build problem
Lars Ingebrigtsen [Thu, 21 Oct 2021 15:23:46 +0000 (17:23 +0200)]
Actually fix the Pango build problem

* src/gtkutil.c (xg_weight_to_symbol): Don't break the build on
older systems.

3 years agoMerge from origin/emacs-28
Glenn Morris [Thu, 21 Oct 2021 15:02:57 +0000 (08:02 -0700)]
Merge from origin/emacs-28

0545c70c16 (origin/emacs-28) ; * src/keyboard.c (readable_events): Ad...
805ed8d318 Fix todo-mode AOT test failures (bug#51308)
8f42ff31f6 Fix hi-lock AOT test failures (bug#51308)
8002fcd4b9 Fix socks test
4540130312 ; Fix typo
59df93e2dd * lisp/help.el (help--analyze-key): Add new arg BUFFER (bu...
cb8b12b56d Improve docstrings and NEWS item of 'repeat-mode'
06fe499614 * lisp/tab-bar.el (tab-bar-menu-bar): New command (bug#512...
8358da9c4c Display a tab bar item as sunken when appropriate
29fdc65860 Fix tab bar item highlight when a mouse click is dropped
7236592668 Refer to mouse-highlight from make-pointer-invisible docst...
cf4394a397 * etc/PROBLEMS: Add hex codepoint for NO-BREAK SPACE
2d647e88fa Describe how to debug fontconfig issues
c916040921 Adapt Tramp tests
1bb14f93f1 Convert ANSI color definitions in themes to use faces (e.g...
8e7cd29712 Revert "Revert back to using ESC as viper-ESC-key again"
91d71b38a3 Fix inset rectangle corners when sides aren't drawn (bug#5...
5c1a575ef4 Don't use color escape sequences in vc-git-expanded-log-entry
d7f595cc89 Code cleanup in tramp-tests.el
548a5db611 ; etc/NEWS fix wording

# Conflicts:
# etc/NEWS

3 years agoFix build on systems with older Pango versions
Lars Ingebrigtsen [Thu, 21 Oct 2021 13:07:08 +0000 (15:07 +0200)]
Fix build on systems with older Pango versions

* src/gtkutil.c (xg_weight_to_symbol): Don't break the build on
older systems.

3 years agoFix bold/black in w32_to_fc_weight
Lars Ingebrigtsen [Thu, 21 Oct 2021 12:36:50 +0000 (14:36 +0200)]
Fix bold/black in w32_to_fc_weight

* src/w32font.c (w32_to_fc_weight): Use symbols.

3 years ago; * src/keyboard.c (readable_events): Add a comment.
Eli Zaretskii [Thu, 21 Oct 2021 07:53:20 +0000 (10:53 +0300)]
; * src/keyboard.c (readable_events): Add a comment.

3 years agoFix todo-mode AOT test failures (bug#51308)
Lars Ingebrigtsen [Thu, 21 Oct 2021 04:26:30 +0000 (06:26 +0200)]
Fix todo-mode AOT test failures (bug#51308)

3 years agoFix hi-lock AOT test failures (bug#51308)
Lars Ingebrigtsen [Thu, 21 Oct 2021 04:24:35 +0000 (06:24 +0200)]
Fix hi-lock AOT test failures (bug#51308)

3 years agoFix socks test
Lars Ingebrigtsen [Thu, 21 Oct 2021 04:06:13 +0000 (06:06 +0200)]
Fix socks test

* test/lisp/net/socks-tests.el (socks-tests-v4-basic): Fix failure
under native-comp (bug#51308).

3 years agoAdd a comment to the Turkish casefiddle test
Lars Ingebrigtsen [Thu, 21 Oct 2021 02:41:35 +0000 (04:41 +0200)]
Add a comment to the Turkish casefiddle test