]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years ago; Fix typos (prefer American spelling)
Stefan Kangas [Thu, 29 Sep 2022 13:19:01 +0000 (15:19 +0200)]
; Fix typos (prefer American spelling)

2 years agoAdd support for the Wancho script (bug#58159)
समीर सिंह Sameer Singh [Thu, 29 Sep 2022 11:03:10 +0000 (16:33 +0530)]
Add support for the Wancho script (bug#58159)

* lisp/language/indian.el ("Wancho"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Wancho.
* lisp/leim/quail/indian.el ("wancho"): New input method.

* etc/HELLO: Add a Wancho greeting.
* etc/NEWS: Announce the new language environment.

2 years agoRemove Emacs 21 compat code for gnus-user-agent
Stefan Kangas [Thu, 29 Sep 2022 13:00:25 +0000 (15:00 +0200)]
Remove Emacs 21 compat code for gnus-user-agent

* lisp/gnus/gnus.el (gnus-user-agent): No longer convert old
(< 2005-01-10) symbol type values.

2 years agoTweak while-let definition
Lars Ingebrigtsen [Thu, 29 Sep 2022 10:29:36 +0000 (12:29 +0200)]
Tweak while-let definition

* lisp/subr.el (while-let): Use if-let* since we don't need/want
the backwards compat of if-let.

2 years agoAdd support for the Mende Kikakui script (bug#58151)
समीर सिंह Sameer Singh [Wed, 28 Sep 2022 20:43:46 +0000 (02:13 +0530)]
Add support for the Mende Kikakui script (bug#58151)

* lisp/language/misc-lang.el ("Mende Kikakui"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Mende Kikakui, Indic Siyaq Numbers,
Ottoman Siyaq Numbers.
* lisp/leim/quail/misc-lang.el ("mende-kikakui"): New input method.

* etc/HELLO: Add Mende Kikakui greeting.
* etc/NEWS: Announce the new language environment.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 29 Sep 2022 04:30:58 +0000 (06:30 +0200)]
Merge from origin/emacs-28

cf38e1c393 Clarify image file search
fc212364ce ; Fix typo.

2 years agoPacify compiler warning in xterm.c
Po Lu [Thu, 29 Sep 2022 01:36:13 +0000 (09:36 +0800)]
Pacify compiler warning in xterm.c

* src/xterm.c (handle_one_xevent): Mark gen_help_time UNINIT.
Reported by Lars Ingebrigtsen <larsi@gnus.org>.

2 years agoFix the MS-DOS build
Po Lu [Thu, 29 Sep 2022 01:35:31 +0000 (09:35 +0800)]
Fix the MS-DOS build

* config.bat: Add assert.in-h.
* msdos/sed2v2.inp: Define HAVE_STDBOOL_H.
* msdos/sedlibmk.inp (GL_GNULIB_LCHMOD, HAVE_LCHMOD): Define to
reflect realities.
(NEXT_ASSERT_H, @GL_GENERATE_ASSERT_H_CONDITION@): Define.
(assert.h): Edit command group into individual commands appending
to assert.h-t.

2 years agoClarify image file search
Eli Zaretskii [Wed, 28 Sep 2022 19:03:27 +0000 (22:03 +0300)]
Clarify image file search

* doc/lispref/display.texi (Defining Images, Image Descriptors):
* lisp/image.el (create-image): Clarify that non-absolute image
files are searched along 'image-load-path'.  (Bug#52931)

2 years ago* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Re-rephrase
Stefan Monnier [Wed, 28 Sep 2022 18:14:32 +0000 (14:14 -0400)]
* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Re-rephrase

2 years ago* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Rephrase
Stefan Monnier [Wed, 28 Sep 2022 16:28:30 +0000 (12:28 -0400)]
* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Rephrase

See bug#57397.

2 years ago; Improve doc strings in doc-view.el
Eli Zaretskii [Wed, 28 Sep 2022 16:00:57 +0000 (19:00 +0300)]
; Improve doc strings in doc-view.el

* lisp/doc-view.el (doc-view-imenu-title-format)
(doc-view-imenu-flatten): Doc fixes.  (Bug#58131)

2 years ago; Fix typos
Stefan Kangas [Wed, 28 Sep 2022 15:34:59 +0000 (17:34 +0200)]
; Fix typos

2 years ago; Fix typo.
Stefan Kangas [Wed, 28 Sep 2022 15:18:49 +0000 (17:18 +0200)]
; Fix typo.

2 years ago* .mailmap: Fixes for Emacs 29.
Stefan Kangas [Wed, 28 Sep 2022 14:46:54 +0000 (16:46 +0200)]
* .mailmap: Fixes for Emacs 29.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 28 Sep 2022 14:38:31 +0000 (16:38 +0200)]
Merge from origin/emacs-28

8033947fe2 .mailcap: Some additional fixes.
b1e92c59ed Avoid assertion violations in 'pop_it'

2 years agoRemove hard-coded path to pwd in Makefiles.
Gregory Heytings [Mon, 26 Sep 2022 12:58:07 +0000 (12:58 +0000)]
Remove hard-coded path to pwd in Makefiles.

* Makefile.in:
* lib-src/Makefile.in:
* nextstep/Makefile.in:
* nt/Makefile.in: Replace hard-coded calls to /bin/pwd by calls
to 'pwd -P'.  Fixes bug#58080.

2 years ago.mailcap: Some additional fixes.
Stefan Kangas [Wed, 28 Sep 2022 14:23:09 +0000 (16:23 +0200)]
.mailcap: Some additional fixes.

2 years ago; * doc/lispref/control.texi (Conditionals): Fix typo.
Eli Zaretskii [Wed, 28 Sep 2022 13:59:51 +0000 (16:59 +0300)]
; * doc/lispref/control.texi (Conditionals): Fix typo.

2 years agoAvoid assertion violations in 'pop_it'
Eli Zaretskii [Wed, 28 Sep 2022 13:46:39 +0000 (16:46 +0300)]
Avoid assertion violations in 'pop_it'

* src/xdisp.c (pop_it): Avoid assertion violations when handling
lists or vectors of display properties.  (Bug#58122)

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 28 Sep 2022 13:35:06 +0000 (15:35 +0200)]
Merge from origin/emacs-28

72aac80184 ; Fix typo
c54a64491f Add .mailmap for proper git log output
f9a072c592 ; Fix typo
3d056f6947 * doc/emacs/ack.texi (Acknowledgments): Update maintainers.
00159c086c ; Add commentary to disabled OTF support code in font.c

# Conflicts:
# src/font.c

2 years ago; Fix typo
Stefan Kangas [Wed, 28 Sep 2022 13:22:46 +0000 (15:22 +0200)]
; Fix typo

2 years agoAdd .mailmap for proper git log output
Stefan Kangas [Wed, 28 Sep 2022 12:50:24 +0000 (14:50 +0200)]
Add .mailmap for proper git log output

This file is used to fix a few misspelled names in various git
listings (e.g., "git log").  This can be used to fix incorrect
attribution, poor display, or names showing up more than once.
It also allows updating an old email addresses to a new one.
See "man git-shortlog" for more information on the format.

* .mailmap: New file.

2 years ago; Move the thumbnail file-name entry to its proper place.
Eli Zaretskii [Wed, 28 Sep 2022 12:53:22 +0000 (15:53 +0300)]
; Move the thumbnail file-name entry to its proper place.

2 years ago; * doc/lispref/control.texi (Conditionals): Fix wording.
Eli Zaretskii [Wed, 28 Sep 2022 12:49:32 +0000 (15:49 +0300)]
; * doc/lispref/control.texi (Conditionals): Fix wording.

2 years agoAdd support for the Adlam script (bug#58111)
समीर सिंह Sameer Singh [Tue, 27 Sep 2022 11:14:28 +0000 (16:44 +0530)]
Add support for the Adlam script (bug#58111)

* lisp/language/misc-lang.el ("Adlam"): New language environment.
Add composition rules for Adlam. Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars):
Support Adlam.
* lisp/leim/quail/misc-lang.el ("adlam"): New input method.

* etc/HELLO: Add Adlam greeting.
* etc/NEWS: Announce the new language environment.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Wed, 28 Sep 2022 12:38:23 +0000 (15:38 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoImprove Gurmukhi composition rules (Bug#58098)
समीर सिंह Sameer Singh [Mon, 26 Sep 2022 18:33:23 +0000 (00:03 +0530)]
Improve Gurmukhi composition rules (Bug#58098)

* lisp/language/indian.el: Improve composition rules for Gurmukhi.

* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Chess Symbols.

2 years agoApply root window coordinate optimizations to crossing events as well
Po Lu [Wed, 28 Sep 2022 12:33:24 +0000 (20:33 +0800)]
Apply root window coordinate optimizations to crossing events as well

* src/xterm.c (xi_compute_root_window_offset_enter): New
function.
(handle_one_xevent): Apply root window crossing optimizations to
XI_Enter and XI_Leave events too.  Not strictly necessary but
since we apply them to motion events it would be consistent to
apply them to crossing events as well as recommended by the
ICCCM.

2 years ago* lisp/files.el (auto-mode-alist): Add entry for ".mailmap".
Stefan Kangas [Wed, 28 Sep 2022 12:31:05 +0000 (14:31 +0200)]
* lisp/files.el (auto-mode-alist): Add entry for ".mailmap".

2 years ago; image-dired: Fix last change
Stefan Kangas [Wed, 28 Sep 2022 12:29:11 +0000 (14:29 +0200)]
; image-dired: Fix last change

* test/lisp/image/image-dired-util-tests.el
(image-dired-thumb-name/per-directory):
* lisp/image/image-dired-util.el (image-dired-thumb-name): Fix
last change.

2 years agoSimplify eww--rescale-images code
Lars Ingebrigtsen [Wed, 28 Sep 2022 11:27:05 +0000 (13:27 +0200)]
Simplify eww--rescale-images code

* lisp/net/eww.el (eww--rescale-images): Simplify code.

2 years agoAdd new macro 'while-let'
Lars Ingebrigtsen [Wed, 28 Sep 2022 11:19:08 +0000 (13:19 +0200)]
Add new macro 'while-let'

* doc/lispref/control.texi (Conditionals): Document
when-let/if-let/while-let.
* lisp/subr.el (while-let): New macro.

2 years agodocview: new customization options for imenu
Jose A. Ortega Ruiz [Wed, 28 Sep 2022 11:06:38 +0000 (13:06 +0200)]
docview: new customization options for imenu

* doc/emacs/misc.texi (DocView Navigation):
* lisp/doc-view.el (doc-view-imenu-title-format, doc-view-imenu-flatten):
(doc-view--imenu-subtree): customizable format for imenu entry titles,
and flag to disable nested submenus.
* lisp/doc-view.el (doc-view--pdf-outline): clean up whitespace
markers '\r' and '\t' in imenu item titles (bug#58131).

2 years agopackage-update would always re-install package
Lin Sun [Wed, 28 Sep 2022 11:05:26 +0000 (13:05 +0200)]
package-update would always re-install package

* lisp/emacs-lisp/package.el (package--updateable-packages): fix
version comparison between available packages and archived
packages (bug#58129).

2 years agoFollow #target links in eww without re-rendering
Visuwesh [Wed, 28 Sep 2022 10:59:04 +0000 (12:59 +0200)]
Follow #target links in eww without re-rendering

* lisp/net/eww.el (eww-follow-link): Do a text property search instead
of re-rendering to follow #target links in the same page.  (bug#58118)
(eww-link-keymap): Bind <mouse-2> to eww-follow-link as well.

2 years ago; Fix debugging image-dired-dired-toggle-marked-thumbs
Stefan Kangas [Wed, 28 Sep 2022 10:23:29 +0000 (12:23 +0200)]
; Fix debugging image-dired-dired-toggle-marked-thumbs

* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs): Fix debugging.

2 years agoimage-dired: End thumbnail file names with ".jpg"
Stefan Kangas [Tue, 27 Sep 2022 22:41:01 +0000 (00:41 +0200)]
image-dired: End thumbnail file names with ".jpg"

* lisp/image/image-dired-util.el (image-dired-thumb-name): Always
end thumbnail name in ".jpg" and simplify naming to just use the
SHA-1 hash.  (Bug#57961)
* test/lisp/image/image-dired-util-tests.el
(image-dired-thumb-name/image-dired): Adjust test for the above
change.
* etc/NEWS: Announce the above change.

2 years agoStandardize XPM files
Stefan Kangas [Tue, 27 Sep 2022 21:51:21 +0000 (23:51 +0200)]
Standardize XPM files

These headers make GraphicsMagick croak with "Improper image header".
Note that the copyright information is already in README.

* etc/images/checked.xpm:
* etc/images/gnus/gnus.xpm:
* etc/images/gnus/gnus-pointer.xpm:
* etc/images/mh-logo.xpm:
* etc/images/unchecked.xpm: Normalize file headers.

2 years agoPort better to C23 bool+true+false keywords
Paul Eggert [Wed, 28 Sep 2022 08:06:10 +0000 (01:06 -0700)]
Port better to C23 bool+true+false keywords

C23 is adding the C++ keywords bool, true, and false;
prefer them to <stdbool.h> if they are available.
* admin/merge-gnulib (GNULIB_MODULES):
Add stdbool, which emulates C23 on pre-C23 platforms.
(AVOIDED_MODULES): Remove stdbool; Gnulib has renamed
this module to stdbool-c99 and nobody uses it so it does
not need to be avoided.
* m4/c-bool.m4: New file, from Gnulib stdbool module.
* lib-src/seccomp-filter.c, src/conf_post.h, src/dynlib.h:
* src/emacs-module.c, src/nsterm.m, src/systhread.h:
* test/src/emacs-module-resources/mod-test.c:
Use the C23 style and use bool without including <stdbool.h>.
The Gnulib stdbool module causes config.h to include stdbool.h
on pre-C23 platforms.
* src/emacs-module.h.in:
Don’t include <stdbool.h> if C23 or later, or if
it has already been included.

2 years agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Wed, 28 Sep 2022 07:29:09 +0000 (00:29 -0700)]
Update from Gnulib by running admin/merge-gnulib

2 years agoMaintaining ChangeLog history: add more details
Sean Whitton [Wed, 28 Sep 2022 00:49:05 +0000 (17:49 -0700)]
Maintaining ChangeLog history: add more details

* admin/notes/repo (Maintaining ChangeLog history): Add more details.
See <https://debbugs.gnu.org/58092#37>.

2 years ago; * lisp/image/image-dired.el: Fix typo.
Stefan Kangas [Tue, 27 Sep 2022 21:28:26 +0000 (23:28 +0200)]
; * lisp/image/image-dired.el: Fix typo.

2 years agoMake image-dired-dired-toggle-marked-thumbs faster
Stefan Kangas [Tue, 27 Sep 2022 21:26:07 +0000 (23:26 +0200)]
Make image-dired-dired-toggle-marked-thumbs faster

* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs): Don't show progress, since
it makes things slower.

2 years agoLoad compiled "calc-loaddefs", if any
Lin Sun [Tue, 27 Sep 2022 21:14:52 +0000 (23:14 +0200)]
Load compiled "calc-loaddefs", if any

* lisp/calc/calc.el ("calc-loaddefs"): Load the .elc file (if it
exists) (bug#58127).

2 years agoimage-dired: Fix header line when file is missing
Stefan Kangas [Tue, 27 Sep 2022 20:58:31 +0000 (22:58 +0200)]
image-dired: Fix header line when file is missing

* lisp/image/image-dired.el
(image-dired-format-properties-string): Don't error when file has
been deleted.

2 years ago* lisp/files.el (file-backup-file-names): Don't burp if dir doesn't exist
Stefan Monnier [Tue, 27 Sep 2022 19:10:47 +0000 (15:10 -0400)]
* lisp/files.el (file-backup-file-names): Don't burp if dir doesn't exist

2 years agoAdd back useful information from gnus-coding.texi
Stefan Kangas [Tue, 27 Sep 2022 18:01:38 +0000 (20:01 +0200)]
Add back useful information from gnus-coding.texi

* lisp/international/rfc1843.el:
* lisp/net/pop3.el: Improve Commentary by adding back text from
deleted file gnus-coding.texi.

2 years ago; Fix typo
Stefan Kangas [Tue, 27 Sep 2022 17:32:31 +0000 (19:32 +0200)]
; Fix typo

2 years ago* doc/emacs/ack.texi (Acknowledgments): Update maintainers.
Stefan Kangas [Tue, 27 Sep 2022 17:22:22 +0000 (19:22 +0200)]
* doc/emacs/ack.texi (Acknowledgments): Update maintainers.

2 years agoRemove gnus-coding.text (bug#58119)
Lars Ingebrigtsen [Tue, 27 Sep 2022 17:31:35 +0000 (19:31 +0200)]
Remove gnus-coding.text (bug#58119)

2 years agoSome tramp-docker.el adaptions
Michael Albinus [Tue, 27 Sep 2022 16:46:28 +0000 (18:46 +0200)]
Some tramp-docker.el adaptions

* lisp/net/tramp-docker.el (tramp-docker--completion-function):
Add ;;;###tramp-autoload cookie.  Make implementation more robust.
(tramp-methods) Use `tramp-default-remote-shell'.

2 years ago; Simplify wallpaper--format-arg with let-alist
Stefan Kangas [Tue, 27 Sep 2022 13:56:22 +0000 (15:56 +0200)]
; Simplify wallpaper--format-arg with let-alist

* lisp/image/wallpaper.el (wallpaper--format-arg): Use let-alist.

2 years ago* etc/NEWS.23: Belatedly announce 'format-spec'.
Stefan Kangas [Tue, 27 Sep 2022 13:42:30 +0000 (15:42 +0200)]
* etc/NEWS.23: Belatedly announce 'format-spec'.

2 years ago; * lisp/image/wallpaper.el (wallpaper--format-arg): Fix typo.
Stefan Kangas [Tue, 27 Sep 2022 13:33:05 +0000 (15:33 +0200)]
; * lisp/image/wallpaper.el (wallpaper--format-arg): Fix typo.

2 years agoDocument the new "XRandR 1.5" value
Stefan Kangas [Tue, 27 Sep 2022 13:29:33 +0000 (15:29 +0200)]
Document the new "XRandR 1.5" value

* src/xfns.c (Fx_display_monitor_attributes_list):
* lisp/frame.el (display-monitor-attributes-list):
* doc/lispref/frames.texi (Multiple Terminals): Document the new
"XRandR 1.5" value.

2 years ago; Fix documentation of imenu access in DocView
Eli Zaretskii [Tue, 27 Sep 2022 13:01:50 +0000 (16:01 +0300)]
; Fix documentation of imenu access in DocView

* lisp/doc-view.el (doc-view-imenu-enabled)
(doc-view--pdf-outline, doc-view-imenu-index): Doc fixes.

* doc/emacs/misc.texi (DocView Navigation): Fix typo and wording.

2 years ago; * src/xfns.c (Fx_window_property): Fix markup.
Po Lu [Tue, 27 Sep 2022 12:04:11 +0000 (20:04 +0800)]
; * src/xfns.c (Fx_window_property): Fix markup.

2 years agoImprove doc of `x-window-property'
Po Lu [Tue, 27 Sep 2022 12:03:08 +0000 (20:03 +0800)]
Improve doc of `x-window-property'

* src/xfns.c (Fx_window_property): Fix errors in doc string and
document where to obtain documentation for standardized window
properties.

2 years agodocview: imenu access to table of contents
Jose A. Ortega Ruiz [Tue, 27 Sep 2022 11:53:24 +0000 (13:53 +0200)]
docview: imenu access to table of contents

* lisp/doc-view.el (doc-view-imenu-enabled): user option to disable
imenu generation.
* lisp/doc-view.el (doc-view--outline-rx):
(doc-view--pdf-outline, doc-view--imenu-subtree, doc-view-imenu-index):
functions implementing the imenu index generation via mutool.
* lisp/doc-view.el (doc-view-imenu-setup, doc-view-mode): setup of the
new functionality in doc-view mode.
* lisp/imenu.el (imenu-submenus-on-top):
(imenu--split-menu): new local variable to optionally inhibit
grouping of entries with children at the top of imenu menus.
* doc/emacs/misc.texi: documentation for the new functionality
(bug#58103).

2 years ago; whitespace: Add test case for read-only buffers (bug#58082)
Richard Hansen [Mon, 26 Sep 2022 06:12:41 +0000 (02:12 -0400)]
; whitespace: Add test case for read-only buffers (bug#58082)

2 years agoert-x: Improve realism of `ert-with-test-buffer-selected'
Richard Hansen [Mon, 26 Sep 2022 21:07:52 +0000 (17:07 -0400)]
ert-x: Improve realism of `ert-with-test-buffer-selected'

* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer-selected): Set
`inhibit-read-only' and `buffer-read-only' to nil when executing the
body to provide a more realistic test environment.

2 years ago* lisp/progmodes/cc-defs.el (c-let*-maybe-max-specpdl-size): Fix glitches
Alan Mackenzie [Tue, 27 Sep 2022 10:02:27 +0000 (10:02 +0000)]
* lisp/progmodes/cc-defs.el (c-let*-maybe-max-specpdl-size): Fix glitches

2 years agoCC Mode: Don't bind max-specpdl-size when it doesn't exist or is obsolete
Alan Mackenzie [Tue, 27 Sep 2022 08:39:05 +0000 (08:39 +0000)]
CC Mode: Don't bind max-specpdl-size when it doesn't exist or is obsolete

This is part of the changes for bug #57911.

* lisp/progmodes/cc-defs.el (c-let*-maybe-max-specpdl-size): New macro.
(c-get-lang-constant): Use the new macro in place of let*.

2 years agoAvoid uninitialized variable warning
YAMAMOTO Mitsuharu [Tue, 27 Sep 2022 03:39:31 +0000 (12:39 +0900)]
Avoid uninitialized variable warning

* src/composite.c (composition_gstring_adjust_zero_width): Simplify
last change with respect to an exit condition.

2 years agoOptimize coordinate translation during event handling
Po Lu [Tue, 27 Sep 2022 02:50:34 +0000 (10:50 +0800)]
Optimize coordinate translation during event handling

These changes noticeably improve turning the mouse wheel on top of
scroll bars etc over slow network connections.

* src/xterm.c (x_dnd_note_self_position, x_dnd_note_self_wheel)
(x_dnd_note_self_drop): Use x_translate_coordinates.
(x_compute_root_window_offset): New function for calculating and
caching root window offsets of edit window.
(x_translate_coordinates): New function.  Use cached values
whenever possible.
(xi_compute_root_window_offset)
(xi_compute_root_window_offset_pinch): New wrappers for XI2
events.
(x_construct_mouse_click, handle_one_xevent): Use
x_translate_coordinates wherever appropriate.
* src/xterm.h (struct x_output): New fields for keeping track of
the root window offset of the edit window.

2 years agoAdjust zero-width grapheme clusters so they are displayed (Bug#50951)
YAMAMOTO Mitsuharu [Tue, 27 Sep 2022 00:20:58 +0000 (09:20 +0900)]
Adjust zero-width grapheme clusters so they are displayed (Bug#50951)

* src/composite.c (composition_gstring_adjust_zero_width): New function.
* src/composite.h: Declare it.
* src/font.c (Ffont_shape_gstring): Use it before putting gstring to cache.

2 years agoFix OBOE in image-dired--with-marked
Stefan Kangas [Tue, 27 Sep 2022 00:14:54 +0000 (02:14 +0200)]
Fix OBOE in image-dired--with-marked

* lisp/image/image-dired.el (image-dired--with-marked): Fix off-by-one
error.

2 years agovc-filter-command-function: Abbreviate default value
Sean Whitton [Mon, 26 Sep 2022 22:15:02 +0000 (15:15 -0700)]
vc-filter-command-function: Abbreviate default value

* lisp/vc/vc-dispatcher.el (vc-filter-command-function): Abbreviate
`(lambda (&rest args) args)' as just `list'.

2 years agoGet rid of default wallpaper-setter constructor
Stefan Kangas [Mon, 26 Sep 2022 19:32:55 +0000 (21:32 +0200)]
Get rid of default wallpaper-setter constructor

* lisp/image/wallpaper.el (wallpaper-setter): Actually get rid of
the default constructor.

2 years agoSet XFCE wallpaper also in single-workspace-mode
Stefan Kangas [Mon, 26 Sep 2022 19:26:50 +0000 (21:26 +0200)]
Set XFCE wallpaper also in single-workspace-mode

This fixes setting the wallpaper on XFCE whether or not the
"/backdrop/single-workspace-mode" setting is true or false.
That XFCE setting controls whether or not the same wallpaper is used
on all workspaces or not.

* lisp/image/wallpaper.el (wallpaper-setter)
(wallpaper-command-args, wallpaper-default-set-function): Allow
using a function for getting the command line arguments.
(wallpaper-xfce-command-args): New function.
(wallpaper--default-setters): Use above new function for XFCE.

2 years agoCC Mode: Handle C++20 concepts
Alan Mackenzie [Mon, 26 Sep 2022 19:16:33 +0000 (19:16 +0000)]
CC Mode: Handle C++20 concepts

* lisp/progmodes/cc-align.el (c-lineup-topmost-intro-cont): Amend so as not to
indent lines following a requires line.

* lisp/progmodes/cc-engine.el (c-forward-primary-expression)
(c-forward-c++-requires-clause): New functions.
(c-forward-declarator): Skip forward over any trailing requires clause.
(c-forward-decl-or-cast-1): Skip requires clauses before and after the type.
Amend the second element of the return list to include information on two
consecutive identifiers in <...>.
(c-looking-at-or-maybe-in-bracelist): Don't recognize braces in requires
expressions as brace lists.
(c-guess-basic-syntax): CASE 5D.7: New case to handle the continuation of a
"concept foo = " line.

* lisp/progmodes/cc-fonts.el (c-basic-matchers-before): Add a new clause to
handle the declaration of a concept.
(c-get-fontification-context): Treat the arglist of a requires construct as a
declaration arglist.

* lisp/progmodes/cc-langs.el (c-equals-nontype-decl-kwds/key)
(c-fun-name-substitute-kwds/key, c-pre-concept-<>-kwds/key): New
c-lang-consts/vars.
(c-constant-key): New c-lang-var.
(c-type-decl-suffix-key): Include "requires" in the keywords matched.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): Fix an off by one error.  Use
equal rather than eq to compare two syntax contexts.

2 years agoDon't auto-resize image if echo area is non-empty
Stefan Kangas [Mon, 26 Sep 2022 19:10:58 +0000 (21:10 +0200)]
Don't auto-resize image if echo area is non-empty

* lisp/image-mode.el (image-fit-to-window): Don't auto-resize
image if there's a message in the echo area.

2 years ago; * lisp/image/wallpaper.el (cl-macs): Require, to avoid warnings.
Eli Zaretskii [Mon, 26 Sep 2022 16:29:47 +0000 (19:29 +0300)]
; * lisp/image/wallpaper.el (cl-macs): Require, to avoid warnings.

2 years agoDisplay a message when wallpaper was set
Stefan Kangas [Mon, 26 Sep 2022 15:41:11 +0000 (17:41 +0200)]
Display a message when wallpaper was set

* lisp/image/wallpaper.el (wallpaper-default-set-function): Display a
message when the wallpaper was successfully set.

2 years agoFix setting the wallpaper in XFCE
Stefan Kangas [Mon, 26 Sep 2022 12:38:25 +0000 (14:38 +0200)]
Fix setting the wallpaper in XFCE

* lisp/image/wallpaper.el  (wallpaper-command-args)
(wallpaper-default-set-function): Support new format specifiers
%S for screen, %W for workspace, and %M for monitor.
(wallpaper--default-setters): Use above new specifiers for XFCE.
(wallpaper--format-arg): New defun broken out from...
(wallpaper-default-set-function): ...here.
(wallpaper--get-height-or-width): Support noninteractive use.
* test/lisp/image/wallpaper-tests.el (wallpaper--format-arg/filename)
(wallpaper--format-arg/filename-hex)
(wallpaper--format-arg/width, wallpaper--format-arg/screen)
(wallpaper--format-arg/monitor, wallpaper--format-arg/workspace):
New tests.

2 years agoRewrite wallpaper.el to use a cl-defstruct
Stefan Kangas [Sun, 18 Sep 2022 09:48:24 +0000 (11:48 +0200)]
Rewrite wallpaper.el to use a cl-defstruct

* lisp/image/wallpaper.el
(wallpaper--default-commands): Delete variable.
(wallpaper-setter): New cl-defstruct.
(wallpaper--default-methods-create): New macro.
(wallpaper--default-setters):
(wallpaper--current-setter): New variables.
(wallpaper--find-setter): New defun to pick a wallpaper-setter.
(wallpaper--find-command, wallpaper--find-command-args):
Use 'wallpaper--find-setter'.
(wallpaper-command): Doc fix.

* test/lisp/image/wallpaper-tests.el
(wallpaper--find-command/return-string)
(wallpaper--find-command-args/return-list)
(wallpaper--image-file-regexp/return-string): New tests.

2 years agoAdd log-edit-summary-separator face (bug#58092)
Protesilaos Stavrou [Mon, 26 Sep 2022 12:41:18 +0000 (15:41 +0300)]
Add log-edit-summary-separator face (bug#58092)

* lisp/vc/log-edit.el (log-edit-summary-separator): Add new face.
(log-edit-font-lock-keywords): Replace hardcoded face attributes with
named face.
* etc/NEWS: Announce the new face.

2 years agoAutoload image-dired-thumbnail-storage :safe property
Stefan Kangas [Mon, 26 Sep 2022 13:36:22 +0000 (15:36 +0200)]
Autoload image-dired-thumbnail-storage :safe property

* lisp/image/image-dired.el (image-dired-thumbnail-storage):
Autoload :safe property.

2 years agoFix (thing-at-point 'url) in eww forms
Lars Ingebrigtsen [Mon, 26 Sep 2022 13:16:16 +0000 (15:16 +0200)]
Fix (thing-at-point 'url) in eww forms

* lisp/net/eww.el (eww-tag-input): Don't claim to have an URL here
(bug#58091).

* lisp/net/shr.el (shr-next-link, shr-previous-link): Search for
shr-tab-stop instead of shr-url so that we can be more general.
(shr-urlify): Mark all links as tabbable-to.

2 years agoRescale images along with text in eww with `C-x C-+'
Lars Ingebrigtsen [Mon, 26 Sep 2022 11:53:10 +0000 (13:53 +0200)]
Rescale images along with text in eww with `C-x C-+'

* lisp/net/eww.el (eww--rescale-images): Also rescale images when
using `C-x C-+' etc (bug#58047).

2 years agoFix percentage width computation in vtable
Lars Ingebrigtsen [Mon, 26 Sep 2022 11:28:30 +0000 (13:28 +0200)]
Fix percentage width computation in vtable

* lisp/emacs-lisp/vtable.el (vtable--compute-width): Fix
percentage computation (bug#58067).

2 years agoKeep point in eww after hitting `g'
Lars Ingebrigtsen [Mon, 26 Sep 2022 11:20:59 +0000 (13:20 +0200)]
Keep point in eww after hitting `g'

* lisp/net/eww.el (eww-retrieve): Keep point after hitting `g'
(bug#58076).

2 years agoFix whitespace-mode in read-only buffers
Lars Ingebrigtsen [Mon, 26 Sep 2022 10:56:07 +0000 (12:56 +0200)]
Fix whitespace-mode in read-only buffers

* lisp/whitespace.el (whitespace--update-bob-eob): Don't bug out
in read-only buffers (bug#58082).

2 years ago; * etc/TODO: Add some new info to the stylistic-sets item.
Eli Zaretskii [Mon, 26 Sep 2022 06:51:14 +0000 (09:51 +0300)]
; * etc/TODO: Add some new info to the stylistic-sets item.

2 years ago; Add commentary to disabled OTF support code in font.c
Eli Zaretskii [Mon, 26 Sep 2022 06:35:10 +0000 (09:35 +0300)]
; Add commentary to disabled OTF support code in font.c

* src/font.c (check_gstring, check_otf_features, otf_tag_symbol)
(otf_open, font_otf_capability, generate_otf_features)
(font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
Move closer to the primitives that use them.  Add commentary for
the purpose of this code.

2 years agoMake average width computation on ftcr more permissive (Bug#43058)
YAMAMOTO Mitsuharu [Mon, 26 Sep 2022 00:57:23 +0000 (09:57 +0900)]
Make average width computation on ftcr more permissive (Bug#43058)

* src/ftcrfont.c (ftcrfont_open): Use only non-zero width glyphs for
computing average width.

2 years ago; Clarify wording of some doc strings in shortdoc.el
Eli Zaretskii [Sun, 25 Sep 2022 19:49:32 +0000 (22:49 +0300)]
; Clarify wording of some doc strings in shortdoc.el

* lisp/emacs-lisp/shortdoc.el (shortdoc-next, shortdoc-previous)
(shortdoc-next-section, shortdoc-previous-section): Clarify
wording.

2 years agotex-mode.el: Don't override AUCTeX modes
Stefan Monnier [Sun, 25 Sep 2022 17:51:30 +0000 (13:51 -0400)]
tex-mode.el: Don't override AUCTeX modes

* lisp/textmodes/tex-mode.el (TeX-mode, plain-TeX-mode, LaTeX-mode):
Only define them as aliases in `lisp/loaddefs.el` so we don't
override AUCTeX's own definitions when we load `tex-mode.el`.

2 years agoBoolean constant detection additions
Mattias Engdegård [Sun, 25 Sep 2022 15:47:39 +0000 (17:47 +0200)]
Boolean constant detection additions

* lisp/emacs-lisp/byte-opt.el (byte-opt--bool-value-form):
`set` is boolean identity in its second argument.
(byte-compile-trueconstp): `set-marker` is always true.

2 years ago; * src/fns.c (Fcopy_alist): More accurate error type
Mattias Engdegård [Sun, 25 Sep 2022 15:44:29 +0000 (17:44 +0200)]
; * src/fns.c (Fcopy_alist): More accurate error type

2 years agoRefactor system specific code in wallpaper.el
Stefan Kangas [Sun, 25 Sep 2022 15:27:20 +0000 (17:27 +0200)]
Refactor system specific code in wallpaper.el

* lisp/image/wallpaper.el (wallpaper-set-function): New defvar
containing system specific function for setting wallpaper.
(wallpaper-default-set-function): Factor out function from...
(wallpaper-set): ...here.  Use above new defvar.

(wallpaper-default-file-name-regexp): Delete defvar.
(wallpaper-image-file-extensions): New defvar.
(wallpaper--image-file-regexp): New defun that returns a regexp to
match for completion purposes.

(wallpaper--use-default-set-function-p): New defun.
(wallpaper--find-command, wallpaper--find-command-arguments):
Do nothing on MS-Windows and Haiku.

2 years agoDon't crash in copy-alist with non-list argument
Mattias Engdegård [Sun, 25 Sep 2022 15:03:32 +0000 (17:03 +0200)]
Don't crash in copy-alist with non-list argument

* src/fns.c (Fcopy_alist): Check argument type.
* test/src/fns-tests.el (fns--copy-alist): New test.

2 years agoAdd reasonable default to wallpaper-set
Stefan Kangas [Sun, 25 Sep 2022 14:16:51 +0000 (16:16 +0200)]
Add reasonable default to wallpaper-set

* lisp/image/wallpaper.el
(wallpaper-default-file-name-regexp): New variable.
(wallpaper--get-default-file): New function.
(wallpaper-set): Use above new function to set a default.
* test/lisp/image/wallpaper-tests.el: New file.

2 years agoAdd :buffer argument to ert-with-temp-file
Stefan Kangas [Sun, 25 Sep 2022 14:16:30 +0000 (16:16 +0200)]
Add :buffer argument to ert-with-temp-file

* lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Add new keyword
argument :buffer SYMBOL to visit the file with `find-file-literally'
before running the body, and cleaning up after.

2 years agoImplement font-use-system-font on Haiku
Po Lu [Sun, 25 Sep 2022 13:22:45 +0000 (13:22 +0000)]
Implement font-use-system-font on Haiku

* doc/emacs/frames.texi (Fonts): Update documentation to say
what font-use-system-font really does and where it can be used.
* src/haiku_font_support.cc (language_code_points): Fix coding
style.
(font_style_to_flags, be_font_style_to_flags): Accept const char
*.
(be_send_font_settings, be_listen_font_settings)
(be_lock_font_defaults, be_unlock_font_defaults)
(be_get_font_default, be_get_font_size): New functions used to
retrieve default font data.

* src/haiku_io.c (haiku_len): Handle FONT_CHANGE_EVENT.
* src/haiku_support.h (enum haiku_event_type): New event type
FONT_CHANGE_EVENT.
(enum haiku_what_font): New enum.
(struct haiku_font_change_event): New struct.

* src/haikufont.c (Ffont_get_system_normal_font)
(Ffont_get_system_font, haiku_handle_font_change_event): New
functions.
(syms_of_haikufont): Provide `dynamic-setting' and define new
variables and subrs.

* src/haikuterm.c (haiku_default_font_parameter): Use system font.
(haiku_read_socket): Handle FONT_CHANGE_EVENTS.
(haiku_term_init): Start listening for font configuration changes.
* src/haikuterm.h: Update prototypes.

* src/xsettings.c (Ffont_get_system_normal_font)
(Ffont_get_system_font): Update doc string.
(syms_of_xsettings): Replace calls to intern with a static
string.

2 years agowallpaper: URI-encode gsettings argument
Stefan Kangas [Sun, 25 Sep 2022 12:57:28 +0000 (14:57 +0200)]
wallpaper: URI-encode gsettings argument

* lisp/image/wallpaper.el (wallpaper--default-commands)
(wallpaper-command-args, wallpaper-set): URI-encode gsettings
argument.

2 years agoImprove shortdoc documentation
Stefan Kangas [Sun, 25 Sep 2022 12:26:40 +0000 (14:26 +0200)]
Improve shortdoc documentation

* doc/emacs/help.texi (Name Help):
* doc/lispref/help.texi (Documentation Groups): Refer to
'shortdoc' convenience alias instead of 'shortdoc-display-group'.
* lisp/emacs-lisp/shortdoc.el: Add Commentary.
(shortdoc-next, shortdoc-previous)
(shortdoc-next-section, shortdoc-previous-section): Doc fixes.

2 years agoMake image-dired-thumb-name more portable
Stefan Kangas [Sun, 25 Sep 2022 12:22:06 +0000 (14:22 +0200)]
Make image-dired-thumb-name more portable

* lisp/image/image-dired-util.el
(image-dired-thumb-name): Create file names in a portable manner.
* test/lisp/image/image-dired-util-tests.el
(image-dired-thumb-name/standard)
(image-dired-thumb-name/image-dired)
(image-dired-thumb-name/per-directory): Expand tests.

2 years agoFix shortdoc movement commands
Stefan Kangas [Sun, 25 Sep 2022 11:54:37 +0000 (13:54 +0200)]
Fix shortdoc movement commands

* lisp/emacs-lisp/shortdoc.el (shortdoc--goto-section): Don't skip
over current function or section when searching.