]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoMake `C-h b' indentation more regular (and avoid continuation lines)
Lars Ingebrigtsen [Tue, 2 Nov 2021 01:36:49 +0000 (02:36 +0100)]
Make `C-h b' indentation more regular (and avoid continuation lines)

* lisp/help.el (help--describe-command): Don't do any indentation.
(describe-map): Store data about each section.
(describe-map--align-section): New function to do indentation on a
per-block basis.
(describe-map--fill-columns): Helper function.

3 years agoFix rendering of key translations
Lars Ingebrigtsen [Tue, 2 Nov 2021 00:07:44 +0000 (01:07 +0100)]
Fix rendering of key translations

* lisp/help.el (help--describe-translation): Make obsolete.
(help--describe-command): Take an optional parameter to output key
translations.
(describe-map): Make optional parameters optional.

3 years agoImprove documentation of 'file-has-changed-p'
Eli Zaretskii [Mon, 1 Nov 2021 15:09:52 +0000 (17:09 +0200)]
Improve documentation of 'file-has-changed-p'

* etc/NEWS:
* doc/lispref/files.texi (File Attributes): Improve wording of the
documentation of 'file-has-changed-p'.

3 years agoDon't output prefix keys in `C-h b', and output more data on objects
Lars Ingebrigtsen [Mon, 1 Nov 2021 15:06:16 +0000 (16:06 +0100)]
Don't output prefix keys in `C-h b', and output more data on objects

* lisp/help.el (help--describe-command): Output
[closure/lambda/byte-code] for those types of objects.
(describe-map): Don't output prefix keys.

3 years agoExclude emacs-module-tests.el on emba
Michael Albinus [Mon, 1 Nov 2021 15:00:06 +0000 (16:00 +0100)]
Exclude emacs-module-tests.el on emba

* test/infra/gitlab-ci.yml (test-native-comp-speed0):
Exclude emacs-module-tests.el.

3 years agoAdd buttons to definition in help--describe-command
Lars Ingebrigtsen [Mon, 1 Nov 2021 14:42:30 +0000 (15:42 +0100)]
Add buttons to definition in help--describe-command

* lisp/help-mode.el (help-make-xrefs): Don't add buttons to
keymaps, because they're pre-buttonized.
* lisp/help.el (help--describe-command): Make buttons out of the
definitions.

3 years agoTag up last NEWS change
Lars Ingebrigtsen [Mon, 1 Nov 2021 13:53:35 +0000 (14:53 +0100)]
Tag up last NEWS change

3 years agoRead mailcaps again only when necessary
Gregory Heytings [Mon, 1 Nov 2021 13:51:57 +0000 (14:51 +0100)]
Read mailcaps again only when necessary

* doc/lispref/files.texi (File Attributes): Document it.

* lisp/files.el (file-has-changed-p): New function.
(file-has-changed-p--hash-table): Internal variable used by the
new function (bug#51523).
* lisp/emacs-lisp/shortdoc.el (file): Mention it.

* lisp/net/mailcap.el (mailcap-parse-mailcaps): Read mailcaps again
only when at least one of the mailcap files has changed.  Fixes
bug#51523.

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Nov 2021 13:30:19 +0000 (06:30 -0700)]
; Auto-commit of loaddefs files.

3 years ago; * lisp/faces.el (help-key-binding): Comment on recent change.
Eli Zaretskii [Mon, 1 Nov 2021 13:04:53 +0000 (15:04 +0200)]
; * lisp/faces.el (help-key-binding): Comment on recent change.

3 years agoMerge from origin/emacs-28
Michael Albinus [Mon, 1 Nov 2021 12:23:33 +0000 (13:23 +0100)]
Merge from origin/emacs-28

84cd95e04c Fix bug#51369

3 years agoFix bug#51369
Michael Albinus [Mon, 1 Nov 2021 12:22:28 +0000 (13:22 +0100)]
Fix bug#51369

* test/lisp/net/dbus-tests.el (dbus-test04-register-method): Skip on hydra.

3 years agoMerge from origin/emacs-28
Michael Albinus [Mon, 1 Nov 2021 11:32:06 +0000 (12:32 +0100)]
Merge from origin/emacs-28

ba4daf2214 Adapt arguments of `tramp-make-tramp-file-name'
a34466731b Fix typo in describe-map-tree doc string

3 years agoAdapt arguments of `tramp-make-tramp-file-name'
Michael Albinus [Mon, 1 Nov 2021 11:29:22 +0000 (12:29 +0100)]
Adapt arguments of `tramp-make-tramp-file-name'

* lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted):
* lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp):
Use `make-tramp-file-name'.

* lisp/obsolete/rcompile.el (remote-compile): Pacify byte-compiler.

3 years agoFurther xref fix-ups after keymap help changes
Lars Ingebrigtsen [Mon, 1 Nov 2021 03:16:51 +0000 (04:16 +0100)]
Further xref fix-ups after keymap help changes

* lisp/help-mode.el (help-make-xrefs): Get continuation lines right.

3 years agoFix infloop in help-make-xrefs in certain keymaps
Lars Ingebrigtsen [Mon, 1 Nov 2021 03:02:16 +0000 (04:02 +0100)]
Fix infloop in help-make-xrefs in certain keymaps

* lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding
after changes to how keymaps are output.

3 years agoMake xref symbol marking work again after describe-keymap changes
Lars Ingebrigtsen [Mon, 1 Nov 2021 02:57:31 +0000 (03:57 +0100)]
Make xref symbol marking work again after describe-keymap changes

* lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding
after changes to how keymaps are output.

3 years ago* lisp/icomplete.el (icomplete-exhibit): Remove workaround
Aaron Jensen [Mon, 1 Nov 2021 00:40:43 +0000 (20:40 -0400)]
* lisp/icomplete.el (icomplete-exhibit): Remove workaround

3 years agoFix failing help-fns tests after layout changes in `C-h b'
Lars Ingebrigtsen [Mon, 1 Nov 2021 02:29:07 +0000 (03:29 +0100)]
Fix failing help-fns tests after layout changes in `C-h b'

3 years agoSay "Key/Binding" instead of "key/binding" in `C-h b'
Lars Ingebrigtsen [Mon, 1 Nov 2021 02:26:26 +0000 (03:26 +0100)]
Say "Key/Binding" instead of "key/binding" in `C-h b'

* lisp/help.el (describe-map-tree): Capitalize the heading.

3 years agoDon't print empty keymaps in `C-h b'
Lars Ingebrigtsen [Mon, 1 Nov 2021 02:18:02 +0000 (03:18 +0100)]
Don't print empty keymaps in `C-h b'

* lisp/help.el (describe-map-tree): Don't print the heading if the
keymap is empty (bug#22334).  Tweak the look to compress it more
vertically.

3 years agoFix typo in describe-map-tree doc string
Lars Ingebrigtsen [Mon, 1 Nov 2021 01:43:29 +0000 (02:43 +0100)]
Fix typo in describe-map-tree doc string

* lisp/help.el (describe-map-tree): Fix typo in doc string.

3 years agoInclude the major mode name in the `C-h b' output
Lars Ingebrigtsen [Mon, 1 Nov 2021 00:44:01 +0000 (01:44 +0100)]
Include the major mode name in the `C-h b' output

* lisp/calc/calc-help.el (calc-describe-bindings): Don't add the
name since it's there now.

* src/keymap.c (Fdescribe_buffer_bindings): Include the major mode
name for symmetry with the minor modes (and because it's easy to
forget).

3 years agoDon't make key binding face wider than the norm
Lars Ingebrigtsen [Mon, 1 Nov 2021 00:34:59 +0000 (01:34 +0100)]
Don't make key binding face wider than the norm

* lisp/faces.el (help-key-binding): Don't make the chars wider
than normally, because that makes `C-h b' lining-up logic fail.

3 years agoMerge from origin/emacs-28
Ken Brown [Sun, 31 Oct 2021 23:36:04 +0000 (19:36 -0400)]
Merge from origin/emacs-28

6ba4e3b78c Drop support for native compilation on 32-bit Cygwin
7e15ee5bc9 ; * doc/emacs/help.texi (Help Mode): Improve indexing.

3 years agoDrop support for native compilation on 32-bit Cygwin
Ken Brown [Fri, 29 Oct 2021 15:38:55 +0000 (11:38 -0400)]
Drop support for native compilation on 32-bit Cygwin

* configure.ac (cygwin32-native-compilation): New option.
[i686-pc-cygwin]: Don't allow native compilation unless that
option is specified.  (Bug#50666)

3 years agoRe-fix the new mouse event logic in outline
Lars Ingebrigtsen [Sun, 31 Oct 2021 23:05:10 +0000 (00:05 +0100)]
Re-fix the new mouse event logic in outline

* lisp/outline.el (outline-show-subtree, outline-hide-subtree):
Really fix the mouse logic.

3 years agoMake TAB work on the outline buttons
Lars Ingebrigtsen [Sun, 31 Oct 2021 22:56:07 +0000 (23:56 +0100)]
Make TAB work on the outline buttons

* lisp/outline.el (outline--insert-close-button)
(outline--insert-open-button): Make TAB work to toggle on the
buttons, too.

3 years agoClarify describe-bindings code slightly
Lars Ingebrigtsen [Sun, 31 Oct 2021 22:25:12 +0000 (23:25 +0100)]
Clarify describe-bindings code slightly

* lisp/help.el (describe-bindings): Clarify code slightly.

3 years agoFix new mouse handling in outline
Lars Ingebrigtsen [Sun, 31 Oct 2021 22:24:46 +0000 (23:24 +0100)]
Fix new mouse handling in outline

* lisp/outline.el (outline-show-subtree, outline-hide-subtree):
Don't set point if we have no event.

3 years agoAdd buttons to outlining and tweak `C-h b' buffer
Lars Ingebrigtsen [Sun, 31 Oct 2021 22:13:52 +0000 (23:13 +0100)]
Add buttons to outlining and tweak `C-h b' buffer

* lisp/help.el (describe-bindings-outline): Change default to t.
(describe-bindings): Tweak the look and remove the explanation.

* lisp/outline.el (outline-minor-mode-use-buttons):
(outline-minor-mode-buttons): New user options.
(outline-hide-subtree): Update buttons.
(outline--make-button, outline--make-button-overlay)
(outline--insert-open-button, outline--insert-close-button)
(outline--fix-up-all-buttons): New functions.

3 years agoImprove the "Help Mode" section of the Emacs manual
Eli Zaretskii [Sun, 31 Oct 2021 19:39:17 +0000 (21:39 +0200)]
Improve the "Help Mode" section of the Emacs manual

* doc/emacs/help.texi (Help Mode): Reorganize and improve wording
of the recent change.  Add index entries.

3 years ago; * doc/emacs/help.texi (Help Mode): Improve indexing.
Eli Zaretskii [Sun, 31 Oct 2021 19:23:34 +0000 (21:23 +0200)]
; * doc/emacs/help.texi (Help Mode): Improve indexing.

3 years ago; * nextstep/templates/Info.plist.in: Prefer HTTPS.
Stefan Kangas [Sun, 31 Oct 2021 19:22:20 +0000 (20:22 +0100)]
; * nextstep/templates/Info.plist.in: Prefer HTTPS.

3 years agoAdd mode tagging to previously added help commands
Lars Ingebrigtsen [Sun, 31 Oct 2021 18:02:46 +0000 (19:02 +0100)]
Add mode tagging to previously added help commands

* lisp/help-mode.el (help-goto-previous-page): New command and key
binding.
(help-goto-previous-page): Ditto.

3 years agoAdd 'n'/'p' key bindings in *Help* buffers
Lars Ingebrigtsen [Sun, 31 Oct 2021 17:59:49 +0000 (18:59 +0100)]
Add 'n'/'p' key bindings in *Help* buffers

* lisp/help-mode.el (help-goto-previous-page): New command and key
binding.
(help-goto-previous-page): Ditto.

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 31 Oct 2021 16:51:08 +0000 (18:51 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Sun, 31 Oct 2021 16:46:28 +0000 (18:46 +0200)]
Merge from origin/emacs-28

f1c9286 ; * doc/misc/org.org: fix capture context example
af67ce6 Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emac...
610680a Fix rendering of title-less <abbr> tags in shr
2ba4ccf ; * lisp/files.el (make-nearby-temp-file): Doc fix.

3 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sun, 31 Oct 2021 16:46:26 +0000 (18:46 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

e170a31 Avoid signaling errors in lookup-key

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Sun, 31 Oct 2021 16:46:25 +0000 (18:46 +0200)]
Merge from origin/emacs-28

5e05be5 Fix localized display of date and time in the NS port

3 years agoAdapt emba control files
Michael Albinus [Sun, 31 Oct 2021 16:45:39 +0000 (17:45 +0100)]
Adapt emba control files

* test/infra/Dockerfile.emba: Do not generate debug info.

* test/infra/gitlab-ci.yml (variables, default): Revert timeout
back to three hours.
(.job-template): Comment test prints.
(test-all-inotify): Exclude emacs-module-tests.el.

3 years agoAdd highlighting of the F2008 keyword "impure"
Lars Ingebrigtsen [Sun, 31 Oct 2021 16:23:19 +0000 (17:23 +0100)]
Add highlighting of the F2008 keyword "impure"

* lisp/progmodes/f90.el (f90-keywords-re): Highlight F2008 keyword
"impure" (bug#51529).

3 years ago; * src/font.c (Ffont_has_char_p): Minor stylistic changes; doc fix.
Eli Zaretskii [Sun, 31 Oct 2021 16:12:03 +0000 (18:12 +0200)]
; * src/font.c (Ffont_has_char_p): Minor stylistic changes; doc fix.

3 years agoAdd new function 'font-has-char-p'
Lars Ingebrigtsen [Sun, 31 Oct 2021 15:58:16 +0000 (16:58 +0100)]
Add new function 'font-has-char-p'

* src/font.c (Ffont_has_char_p): New function.
(Ffont_get_glyphs): Link to the new function from the doc string.

3 years agoAdd test for Bug#51527
Stefan Kangas [Sun, 31 Oct 2021 15:46:06 +0000 (16:46 +0100)]
Add test for Bug#51527

* test/src/keymap-tests.el (keymap-lookup-key/menu-non-symbol):
New test.

3 years ago; * doc/misc/org.org: fix capture context example
Hanno Perrey [Sun, 31 Oct 2021 15:23:03 +0000 (16:23 +0100)]
; * doc/misc/org.org: fix capture context example

* doc/misc/org.org (Templates in contexts): Add missing parenthesis to
code example for org-capture template contexts as documented in
docstring.

Copyright-paperwork-exempt: yes (bug#51524).

3 years agoMerge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28
Eli Zaretskii [Sun, 31 Oct 2021 15:20:52 +0000 (17:20 +0200)]
Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28

3 years agoFix rendering of title-less <abbr> tags in shr
Lars Ingebrigtsen [Sun, 31 Oct 2021 15:20:10 +0000 (16:20 +0100)]
Fix rendering of title-less <abbr> tags in shr

* lisp/net/shr.el (shr-tag-abbr): Render <abbr> tags that have no
title (bug#51525).

3 years ago; * lisp/files.el (make-nearby-temp-file): Doc fix.
Eli Zaretskii [Sun, 31 Oct 2021 15:20:16 +0000 (17:20 +0200)]
; * lisp/files.el (make-nearby-temp-file): Doc fix.

3 years agoeieio-core.el: Make slot-value work on defstructs
Stefan Monnier [Sun, 31 Oct 2021 14:57:44 +0000 (10:57 -0400)]
eieio-core.el: Make slot-value work on defstructs

Adjust the values in EIEIO's index-tables so they are compatible with those
of defstructs.

* lisp/emacs-lisp/eieio-core.el (eieio--slot-name-index): Don't add the
`eieio--object-num-slots` offset.
(eieio-defclass-internal): Add the `eieio--object-num-slots` offset
here instead.
(eieio-oref): Allow its use on `cl-structure-object`.

* lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-from-index-table):
Don't need to add the `eieio--object-num-slots` offset.

* doc/misc/eieio.texi (Accessing Slots, Accessing Slots):
Mention the use on structs.

* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
(eieio-test-defstruct-slot-value): New test.

3 years agoExpand the kbd-valid-p doc string
Lars Ingebrigtsen [Sun, 31 Oct 2021 14:56:37 +0000 (15:56 +0100)]
Expand the kbd-valid-p doc string

* lisp/subr.el (kbd-valid-p): Expand the doc string.

3 years agoAvoid signaling errors in lookup-key
Eli Zaretskii [Sun, 31 Oct 2021 14:20:27 +0000 (16:20 +0200)]
Avoid signaling errors in lookup-key

* src/keymap.c (Flookup_key): Handle KEY vectors where not all
components are symbols.  (Bug#51527)  Do not merge to master.

3 years agoAvoid signaling errors in lookup-key
Eli Zaretskii [Sun, 31 Oct 2021 14:16:38 +0000 (16:16 +0200)]
Avoid signaling errors in lookup-key

* src/keymap.c (Flookup_key): Handle KEY vectors where not all
components are symbols.  (Bug#51527

3 years agoFix localized display of date and time in the NS port
Daniel Martín [Sat, 23 Oct 2021 12:44:31 +0000 (14:44 +0200)]
Fix localized display of date and time in the NS port

* src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the
current locale ID so that dates, currencies, etc. use the settings
configured in the operating system.  (Bug#51321)

3 years agoEnsure help echoes only occur once on NS
Alan Third [Sun, 31 Oct 2021 10:25:15 +0000 (10:25 +0000)]
Ensure help echoes only occur once on NS

* src/nsterm.m ([EmacsView windowDidResignKey:]): Reset
any_help_event_p as it is never reset otherwise.

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Sun, 31 Oct 2021 07:58:55 +0000 (03:58 -0400)]
Merge from origin/emacs-28

335a660b4b Fix display glitches with side-by-side windows on TTY frames
4a96f32def Avoid replacing common prefix with ellipsis

3 years agoFix display glitches with side-by-side windows on TTY frames
Eli Zaretskii [Sun, 31 Oct 2021 07:42:09 +0000 (09:42 +0200)]
Fix display glitches with side-by-side windows on TTY frames

* src/dispnew.c (adjust_glyph_matrix, prepare_desired_row): Leave
room for the border glyph only if the window does actually have
the right margin.  (Bug#51521)

3 years agoRemove workaround for fixed Bug#6581 from ert
Stefan Kangas [Thu, 21 Oct 2021 17:53:00 +0000 (19:53 +0200)]
Remove workaround for fixed Bug#6581 from ert

* lisp/emacs-lisp/ert.el (ert-equal-including-properties): Make
into obsolete function alias for 'equal-including-properties'.
* test/src/editfns-tests.el (format-properties):
* test/lisp/emacs-lisp/ert-x-tests.el (ert-propertized-string)
(ert-test-run-tests-interactively-2): Don't use above obsolete
name.

(ert--explain-equal-including-properties-rec): New function.
(ert--explain-equal-including-properties): Use as an explainer for
'equal-including-properties' now that Bug#6581 is fixed.

* test/lisp/emacs-lisp/ert-tests.el
(ert-test-explain-equal-string-properties): Expand test.
(ert-test-equal-including-properties): Merge test into above
expanded test.

3 years agoFix bug with string values in equal-including-properties
Stefan Kangas [Wed, 20 Oct 2021 12:16:07 +0000 (14:16 +0200)]
Fix bug with string values in equal-including-properties

* src/intervals.c (intervals_equal_1): Factor out from
intervals_equal.  Optionally use Fequal for comparison of string
values in property lists.
(intervals_equal): Update for the above.
(compare_string_intervals): Use the above optional Fequal comparison
to fix a bug where 'equal-including-properties' compared strings with
eq, instead of equal.  (Bug#6581)
* test/src/fns-tests.el (fns-tests-equal-including-properties)
(fns-tests-equal-including-properties/string-prop-vals): New tests.

* test/lisp/emacs-lisp/ert-tests.el
(ert-test-equal-including-properties): Remove parts testing
'equal-including-properties'.
* lisp/emacs-lisp/ert.el (ert-equal-including-properties): Add
FIXME that this should be removed.

3 years agoUse primes for hash table bucket sizes
Stefan Kangas [Sat, 30 Oct 2021 18:11:16 +0000 (20:11 +0200)]
Use primes for hash table bucket sizes

* src/dispextern.h (IMAGE_CACHE_BUCKETS_SIZE):
* src/image.c (XPM_COLOR_CACHE_BUCKETS): Use primes for hash table
bucket sizes.

3 years agoMove the documentation of 'string-glyph-split' to proper place
Eli Zaretskii [Sat, 30 Oct 2021 17:29:40 +0000 (20:29 +0300)]
Move the documentation of 'string-glyph-split' to proper place

* doc/lispref/strings.texi (Creating Strings): Move the
description of 'string-glyph-split' from here...
* doc/lispref/display.texi (Size of Displayed Text): ...to here.

3 years agoAvoid replacing common prefix with ellipsis
Carlos Pita [Fri, 15 Oct 2021 00:48:43 +0000 (21:48 -0300)]
Avoid replacing common prefix with ellipsis

* lisp/progmodes/python.el
(python-shell-completion-native-setup): Configure readline not to
suppress common prefixes.  (Bug#51218)

3 years agoExpand connection-local variables example in doc/emacs/custom.texi
Jim Porter [Sat, 30 Oct 2021 15:40:18 +0000 (17:40 +0200)]
Expand connection-local variables example in doc/emacs/custom.texi

* doc/emacs/custom.texi (Per-Connection Local Variables): Expand the
example to include setting 'system-uses-terminfo'.

3 years agoMake list-colors-display sort list passed as argument
dalanicolai [Sat, 30 Oct 2021 15:32:17 +0000 (17:32 +0200)]
Make list-colors-display sort list passed as argument

* lisp/facemenu.el (list-colors-display): Don't skip sorting list of
colors if it was passed as an argument.  (Bug#51371)

3 years agoAdd new function string-glyph-split
Lars Ingebrigtsen [Sat, 30 Oct 2021 13:22:36 +0000 (15:22 +0200)]
Add new function string-glyph-split

* doc/lispref/strings.texi (Creating Strings): Document it.
* lisp/emacs-lisp/shortdoc.el (string): Mention it.

* lisp/emacs-lisp/subr-x.el (string-glyph-split): New function.

3 years agoAvoid fonts with incomplete coverage of MATHEMATICAL chars
Kévin Le Gouguec [Sat, 30 Oct 2021 12:44:01 +0000 (14:44 +0200)]
Avoid fonts with incomplete coverage of MATHEMATICAL chars

* lisp/international/fontset.el (setup-default-fontset): Include both
ends of each sub-range in 'script-representative-chars' (bug#51495).

Some fonts include glyphs for MATHEMATICAL SCRIPT CAPITAL codepoints
(#x1D49C-#x1D4B5) but not for MATHEMATICAL SCRIPT SMALL codepoints
(#x1D4B6-#x1D4CF), see e.g. KpMath[1].

'script-representative-chars' must thus include both CAPITAL and SMALL
codepoints to ensure that we filter those fonts out.

Bug#51495; discussed in help-gnu-emacs[2].

[1] https://mirrors.ctan.org/fonts/kpfonts-otf/doc/unimath-kpfonts.pdf

[2] <878s02u5m6.fsf@gmail.com>
    https://lists.gnu.org/archive/html/help-gnu-emacs/2021-09/msg00150.html

3 years ago; * doc/emacs/msdos.texi (Windows Misc): Fix typos.
Eli Zaretskii [Sat, 30 Oct 2021 10:25:46 +0000 (13:25 +0300)]
; * doc/emacs/msdos.texi (Windows Misc): Fix typos.

3 years agoMinor fixes for previous change
Eli Zaretskii [Sat, 30 Oct 2021 10:22:57 +0000 (13:22 +0300)]
Minor fixes for previous change

* src/w32fns.c (DWMWA_USE_IMMERSIVE_DARK_MODE_OLD): Define only if
undefined.
(w32_applytheme, w32_createwindow, globals_of_w32fns): Minor
stylistic copyedits.

* etc/NEWS: Reword the entry about using dark mode on MS-Windows.

* doc/emacs/msdos.texi (Windows Misc): Fix wording and markup in
the last change.

3 years agoSupport system dark mode on Windows 10 version 1809 and higher
Vince Salvino [Wed, 27 Oct 2021 21:32:09 +0000 (17:32 -0400)]
Support system dark mode on Windows 10 version 1809 and higher

* src/w32fns.c (DARK_MODE_APP_NAME)
(DWMWA_USE_IMMERSIVE_DARK_MODE_OLD)
(DWMWA_USE_IMMERSIVE_DARK_MODE): Define.
(w32_applytheme): New function.
(w32_createvscrollbar, w32_createhscrollbar, w32_createwindow):
Call 'w32_applytheme'.
(globals_of_w32fns): Load 'DwmSetWindowAttribute' and
'SetWindowTheme' from their DLLs, and initialize 'w32_darkmode'.
* src/w32.c (w32_get_resource): Accept an additional argument
instead of hard-coding REG_ROOT; callers changed.  (Bug#51404)

* etc/NEWS:
* doc/emacs/msdos.texi (Windows Misc): Document the new feature.

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 30 Oct 2021 08:07:09 +0000 (04:07 -0400)]
Merge from origin/emacs-28

20ebd91a73 Improve documentation of string truncation APIs
3f998a3fc8 * lisp/textmodes/css-mode.el: Fix typo.  (Bug#51488)

3 years agoImprove documentation of string truncation APIs
Eli Zaretskii [Sat, 30 Oct 2021 07:26:38 +0000 (10:26 +0300)]
Improve documentation of string truncation APIs

* doc/lispref/display.texi (Size of Displayed Text):
* lisp/international/mule-util.el (truncate-string-to-width):
Document caveats of using 'truncate-string-to-width' when
character composition is involved.

* lisp/emacs-lisp/subr-x.el (string-limit):
* doc/lispref/strings.texi (Creating Strings): Improve the
documentation of 'string-limit'.

3 years ago; Fix a recent change in image.c
Eli Zaretskii [Fri, 29 Oct 2021 19:07:27 +0000 (22:07 +0300)]
; Fix a recent change in image.c

* src/image.c (DGifSavedExtensionToGCB): Define only for GIFLIB >= 5.

3 years ago* src/image.c: Fix building with giflib on MS-Windows.
Stefan Kangas [Fri, 29 Oct 2021 18:20:46 +0000 (20:20 +0200)]
* src/image.c: Fix building with giflib on MS-Windows.

3 years ago* lisp/textmodes/css-mode.el: Fix typo. (Bug#51488)
Imran Khan [Fri, 29 Oct 2021 16:07:16 +0000 (16:07 +0000)]
* lisp/textmodes/css-mode.el: Fix typo.  (Bug#51488)

Copyright-paperwork-exempt: yes

3 years ago; Merge from origin/emacs-28
Glenn Morris [Fri, 29 Oct 2021 16:20:05 +0000 (09:20 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

986fe634e2 (origin/emacs-28) Make message/rfc822 on buttons work agai...

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

52e7049b58 * lisp/loadup.el: Unbreak build.
91e7df281e Move lisp/shorthands.el to lisp/emacs-lisp/shorthands.el
00103154e0 Some Tramp changes, mainly in tramp-tests.el

3 years ago; Merge from origin/emacs-28
Glenn Morris [Fri, 29 Oct 2021 16:20:05 +0000 (09:20 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

9436943fb1 ; * doc/emacs/custom.texi (Connection Variables): Fix typo...

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

08de838531 ; Improve commentary in the last change
3da9fa875b Make hieroglyphs display correctly with existing fonts
928e05f2d6 Clarify "default face attributes" in the ELisp manual
5dbb04e0eb Make `C-u RET' work again
d72fefdeab Fix typos in the manual and in a comment

3 years ago; Merge from origin/emacs-28
Glenn Morris [Fri, 29 Oct 2021 16:20:05 +0000 (09:20 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

bea843dee1 Avoid assertion violations in 'lookup-key'

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

f52fa1c150 image-dired: Unreverse accidentally reversed menus

# Conflicts:
# lisp/image-dired.el

3 years ago; Merge from origin/emacs-28
Glenn Morris [Fri, 29 Oct 2021 16:19:51 +0000 (09:19 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

0f8417d597 Be more allowing when looking for menu-bar items

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

7e2b973d60 * lisp/textmodes/text-mode.el (text-mode-context-menu): Re...
da6d889e90 ; * etc/NEWS: Use active voice for 'repeat-mode', etc.
e3171e7e86 Allow automatic use of color fonts for emoji on macOS

# Conflicts:
# etc/NEWS

3 years agoMake message/rfc822 on buttons work again in Gnus
Lars Ingebrigtsen [Fri, 29 Oct 2021 16:08:12 +0000 (18:08 +0200)]
Make message/rfc822 on buttons work again in Gnus

* lisp/gnus/gnus-art.el (gnus-article-mode): Set
mm-inline-message-prepare-function buffer-locally so that it works
both when inlining rfc822 and hitting the MIME button (bug#51388).
(gnus-mime--inline-message): Factor out into own function.
(gnus-mime-display-single): From here.

3 years agoPrefer giflib 5 macros to magic numbers
Stefan Kangas [Fri, 29 Oct 2021 15:44:29 +0000 (17:44 +0200)]
Prefer giflib 5 macros to magic numbers

* src/image.c (DISPOSAL_UNSPECIFIED, DISPOSE_DO_NOT)
(DISPOSE_BACKGROUND, DISPOSE_PREVIOUS, NO_TRANSPARENT_COLOR)
[GIFLIB_MAJOR < 5]: Macro defined (for old versions of giflib).
(gif_load): Replace magic numbers with giflib 5 macros for disposal
and transparency_color_index.

3 years agoDon't parse GCB block by hand with giflib 5 or later
Stefan Kangas [Fri, 29 Oct 2021 15:11:23 +0000 (17:11 +0200)]
Don't parse GCB block by hand with giflib 5 or later

* src/image.c (gif_load): If GIFLIB_MAJOR > 5, use
DGifSavedExtensionToGCB instead of parsing the Graphic Control
Extension block by hand.

3 years ago* lisp/loadup.el: Unbreak build.
Glenn Morris [Fri, 29 Oct 2021 15:41:11 +0000 (16:41 +0100)]
* lisp/loadup.el: Unbreak build.

3 years agoMake message/rfc822 on buttons work again in Gnus
Lars Ingebrigtsen [Fri, 29 Oct 2021 15:26:53 +0000 (17:26 +0200)]
Make message/rfc822 on buttons work again in Gnus

* lisp/gnus/gnus-art.el (gnus-article-mode): Set
mm-inline-message-prepare-function buffer-locally so that it works
both when inlining rfc822 and hitting the MIME button (bug#51388).
(gnus-mime--inline-message): Factor out into own function.
(gnus-mime-display-single): From here.

3 years agoAdd some gnus-short-group-name tests
Morgan J. Smith [Fri, 29 Oct 2021 13:30:10 +0000 (15:30 +0200)]
Add some gnus-short-group-name tests

* test/lisp/gnus/gnus-group-tests.el (gnus-short-group-name): Add
some gnus-short-group-name tests (bug#51450).

3 years agoShorten Gnus groups with [foo] in the name better
Lars Ingebrigtsen [Fri, 29 Oct 2021 13:29:17 +0000 (15:29 +0200)]
Shorten Gnus groups with [foo] in the name better

* lisp/gnus/gnus.el (gnus-short-group-name): Shorten groups with
[] in the names better (bug#51450).

3 years ago* src/image.c (gif_load): Minor simplification.
Stefan Kangas [Fri, 29 Oct 2021 13:07:29 +0000 (15:07 +0200)]
* src/image.c (gif_load): Minor simplification.

3 years agoMove lisp/shorthands.el to lisp/emacs-lisp/shorthands.el
Lars Ingebrigtsen [Fri, 29 Oct 2021 12:37:08 +0000 (14:37 +0200)]
Move lisp/shorthands.el to lisp/emacs-lisp/shorthands.el

3 years agoSome Tramp changes, mainly in tramp-tests.el
Michael Albinus [Fri, 29 Oct 2021 12:06:47 +0000 (14:06 +0200)]
Some Tramp changes, mainly in tramp-tests.el

* doc/misc/tramp.texi (External packages): Don't use Tramp internals.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted):
Protect `tramp-make-tramp-file-name' call.

* lisp/net/tramp.el (tramp-make-tramp-file-name): Set advertised
calling conventions.

* test/lisp/net/tramp-tests.el (tramp-test18-file-attributes):
Adapt test.
(tramp--test-supports-processes-p): New defun.
(tramp-test28-process-file, tramp-test29-start-file-process)
(tramp-test30-make-process, tramp-test32-shell-command)
(tramp-test32-shell-command-dont-erase-buffer)
(tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
(tramp-test44-asynchronous-requests): Use it.

3 years ago; * doc/emacs/custom.texi (Connection Variables): Fix typo. Don't merge
Michael Albinus [Fri, 29 Oct 2021 12:05:36 +0000 (14:05 +0200)]
; * doc/emacs/custom.texi (Connection Variables): Fix typo.  Don't merge

3 years ago; Improve commentary in the last change
Eli Zaretskii [Fri, 29 Oct 2021 07:41:33 +0000 (10:41 +0300)]
; Improve commentary in the last change

* lisp/language/misc-lang.el: Minor copyedits of the commentary
regarding Egyptian hieroglyph support.

3 years agoMake hieroglyphs display correctly with existing fonts
Gregory Heytings [Thu, 28 Oct 2021 20:58:02 +0000 (20:58 +0000)]
Make hieroglyphs display correctly with existing fonts

* etc/HELLO: Remove hieroglyph format control characters.

* lisp/language/misc-lang.el: Add a rule to compose Egyptian
hieroglyphs even without Unicode format control characters.

3 years agoClarify "default face attributes" in the ELisp manual
Eli Zaretskii [Fri, 29 Oct 2021 07:10:01 +0000 (10:10 +0300)]
Clarify "default face attributes" in the ELisp manual

* doc/lispref/display.texi (Defining Faces): Add index entries for
face symbol properties.
(Attribute Functions): Clarify "default face attribute values" wrt
'face-all-attributes' and 'face-attribute'.  (Bug#51465)

3 years agoFix bootstrapping broken by a recent change
Eli Zaretskii [Fri, 29 Oct 2021 06:23:54 +0000 (09:23 +0300)]
Fix bootstrapping broken by a recent change

* src/keymap.c (Flookup_key): Avoid crashes during bootstrap when
uni-lowercase.el is not available yet.

3 years agoIndent cl-flet-like forms correctly in incomplete expressions
akater [Thu, 28 Oct 2021 21:53:11 +0000 (23:53 +0200)]
Indent cl-flet-like forms correctly in incomplete expressions

* lisp/emacs-lisp/lisp-mode.el
(lisp--local-defform-body-p): Support incomplete sexps

* test/lisp/progmodes/elisp-mode-resources/flet.erts:
Add tests for incomplete sexps (bug#9622).

3 years agoMake `C-u RET' work again
Lars Ingebrigtsen [Thu, 28 Oct 2021 21:38:29 +0000 (23:38 +0200)]
Make `C-u RET' work again

* lisp/simple.el (newline): Fix regression introduced by
d1aacceae9 (bug#51459).

3 years agoFix typos in the manual and in a comment
Jan Synacek [Thu, 28 Oct 2021 21:32:59 +0000 (23:32 +0200)]
Fix typos in the manual and in a comment

* lisp/minibuffer.el (completion-pcm--hilit-commonality):
* doc/lispintro/emacs-lisp-intro.texi (Mode Line): Fix typos
(bug#51434).

Copyright-paperwork-exempt: yes