]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoReset mailcap entries only when mailcap files are read again
Gregory Heytings [Thu, 4 Nov 2021 17:48:35 +0000 (18:48 +0100)]
Reset mailcap entries only when mailcap files are read again

* lisp/net/mailcap.el (mailcap-parse-mailcaps): Move the clear and
load defaults operations at their appropriate place.  Fixes bug#51600.

3 years agoFix return value of python-nav-end-of-defun
Lars Ingebrigtsen [Thu, 4 Nov 2021 17:47:04 +0000 (18:47 +0100)]
Fix return value of python-nav-end-of-defun

* lisp/progmodes/python.el (python-nav-end-of-defun): Return
non-nil if in a def/class, as the doc string implies (bug#51601).

3 years agoRename button-buttonize to buttonize
Lars Ingebrigtsen [Thu, 4 Nov 2021 17:14:23 +0000 (18:14 +0100)]
Rename button-buttonize to buttonize

* lisp/help.el (help--describe-command):
* lisp/emacs-lisp/memory-report.el (memory-report--buffers):
* lisp/button.el (button-buttonize):
* doc/lispref/display.texi (Making Buttons): Rename
button-buttonize to just buttonize and adjust callers.

3 years agoRevert "* lisp/progmodes/xref.el (xref-pop-marker-stack): Don't obsolete."
Mattias Engdegård [Thu, 4 Nov 2021 09:14:15 +0000 (10:14 +0100)]
Revert "* lisp/progmodes/xref.el (xref-pop-marker-stack): Don't obsolete."

This reverts commit f56408a6f0152cd46d1ea8a0985fbfeeb839ea06.

As commented by Dmitry Gutov in [1], obsoleting `xref-pop-marker-stack`
makes sense.

[1] https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01870.html

3 years agoAdd a Gnus command to emojize symbols
Lars Ingebrigtsen [Thu, 4 Nov 2021 05:38:22 +0000 (06:38 +0100)]
Add a Gnus command to emojize symbols

* doc/misc/gnus.texi (Article Display): Document it.

* lisp/gnus/gnus-art.el (gnus-treat-emojize-symbols): New user option.
(gnus-treatment-function-alist): Map.
(article-emojize-symbols): New command and keystroke.

3 years agoAdd new user option mml-attach-file-at-the-end
Lars Ingebrigtsen [Thu, 4 Nov 2021 05:09:08 +0000 (06:09 +0100)]
Add new user option mml-attach-file-at-the-end

* lisp/gnus/mml.el (mml-attach-file-at-the-end): New user option.
(mml-attach-file): Use it.

3 years agoimage-dired: Set default-directory in thumbnail buffer
Stefan Kangas [Thu, 4 Nov 2021 04:10:28 +0000 (05:10 +0100)]
image-dired: Set default-directory in thumbnail buffer

* lisp/image-dired.el (image-dired-show-all-from-dir): Set
default-directory.  This fixes e.g. 'dired-jump'.

3 years agoMake image-dired-display-image-mode inherit from image-mode
Stefan Kangas [Thu, 4 Nov 2021 01:05:29 +0000 (02:05 +0100)]
Make image-dired-display-image-mode inherit from image-mode

* lisp/image-dired.el (image-dired-display-image-mode):
Inherit from 'image-mode'.  (Bug#10758)
(image-dired-display-image): Don't generate a temporary image, which
is no longer needed with the above change.
(image-dired-display-thumbnail-original-image)
(image-dired-dired-display-image)
(image-dired-mouse-display-image): Simplify.

(image-dired-temp-image-file)
(image-dired-cmd-create-temp-image-program)
(image-dired-cmd-create-temp-image-options)
(image-dired-display-window-width-correction)
(image-dired-display-window-height-correction)
(image-dired-display-window-width)
(image-dired-display-window-height)
(image-dired-display-current-image-full)
(image-dired-display-current-image-sized)
(image-dired-window-height-pixels): Make obsolete.
(image-dired-create-display-image-buffer): Make into obsolete
function alias for 'ignore'.
(image-dired-display-image-mode-map): Simplify by removing things
duplicated from `image-mode-map'.  Disable some commands from
`image-mode-map' that doesn't make sense for Image-Dired.
(image-dired-display-image-mode-menu): Remove menu, as it no longer
contains anything useful.
(image-dired-minor-mode):
* doc/emacs/dired.texi (Image-Dired): Update documentation for the
above change.

3 years ago; * lisp/image-dired.el: Remove redundant :group args.
Stefan Kangas [Wed, 3 Nov 2021 22:25:23 +0000 (23:25 +0100)]
; * lisp/image-dired.el: Remove redundant :group args.

3 years agoImprove theming of image-dired-thumb-mark
Stefan Kangas [Wed, 3 Nov 2021 22:23:02 +0000 (23:23 +0100)]
Improve theming of image-dired-thumb-mark

* etc/themes/adwaita-theme.el (adwaita):
* etc/themes/deeper-blue-theme.el (deeper-blue):
* etc/themes/dichromacy-theme.el (dichromacy):
* etc/themes/leuven-theme.el (leuven):
* etc/themes/manoj-dark-theme.el (manoj-dark):
* etc/themes/whiteboard-theme.el (whiteboard): Add definitions for
the 'image-dired-thumb-flagged' face.

3 years agoimage-dired: Add face for flagged files
Stefan Kangas [Wed, 3 Nov 2021 21:34:51 +0000 (22:34 +0100)]
image-dired: Add face for flagged files

* lisp/image-dired.el (image-dired-thumb-mark): New defface.
(image-dired-thumb-update-marks): Mark flagged file with above new defface.
(image-dired-dired-file-marked-p)
(image-dired-thumb-file-marked-p): Add optional argument to be
used by 'image-dired-*-flagged-p' functions below.
(image-dired-dired-file-flagged-p)
(image-dired-thumb-file-flagged-p): New defuns.
(image-dired-thumb-mark): Improve definition with color classes.
(image-dired-thumb-visible-marks): Doc fix.

3 years agoFix declaration syntax of 'image-dired--on-file-in-dired-buffer'.
Philipp Stephani [Wed, 3 Nov 2021 20:48:13 +0000 (21:48 +0100)]
Fix declaration syntax of 'image-dired--on-file-in-dired-buffer'.

* lisp/image-dired.el (image-dired--on-file-in-dired-buffer): Fix
declaration syntax.

3 years agoFix encoding issues in gitmerge.el, make it work on MS-Windows
Eli Zaretskii [Wed, 3 Nov 2021 18:50:34 +0000 (20:50 +0200)]
Fix encoding issues in gitmerge.el, make it work on MS-Windows

* admin/gitmerge.el (gitmerge-emacs-version, gitmerge-show-log)
(gitmerge-show-diff, gitmerge-show-files, gitmerge-missing)
(gitmerge-setup-log-buffer, gitmerge-resolve)
(gitmerge-commit-message, gitmerge-apply)
(gitmerge-resolve-unmerged, gitmerge-repo-clean)
(gitmerge-commit): Bind coding-system-for-read/write to the
appropriate vc-git values.
(gitmerge-apply) [windows-nt]: Pass long merge log messages via a
temporary file.
(gitmerge): Clarify the description of the "R" flag.

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Wed, 3 Nov 2021 18:26:28 +0000 (20:26 +0200)]
Merge from origin/emacs-28

3e4eb54 ; * etc/PROBLEMS: Minor copyedits of the last change.  (Bug#5...
35bc211 Document a macOS error message when opening Emacs
4df9998 Fix header-line and tab-line when mode-line-compact is set
81915a9 Add manual section about how to avoid regexp problems
a16e66c Clarify build environment
6ab6b2f Clarify build directory structure
9d61620 * src/pdumper.c (dump_do_dump_relocation): Add sanity check.

3 years ago; * etc/PROBLEMS: Minor copyedits of the last change. (Bug#51571)
Eli Zaretskii [Wed, 3 Nov 2021 18:23:58 +0000 (20:23 +0200)]
; * etc/PROBLEMS: Minor copyedits of the last change.  (Bug#51571)

3 years agoDocument a macOS error message when opening Emacs
Daniel Martín [Tue, 2 Nov 2021 18:45:18 +0000 (19:45 +0100)]
Document a macOS error message when opening Emacs

* etc/PROBLEMS: Document a potential error message when opening Emacs
on macOS for the first time.

3 years agoFix widgets in Outline mode on TTY frames
Eli Zaretskii [Wed, 3 Nov 2021 18:13:04 +0000 (20:13 +0200)]
Fix widgets in Outline mode on TTY frames

* lisp/outline.el (outline--valid-emoji-p): Don't try to probe
support for display of Emoji characters on TTY frames.  (Bug#51578)

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Wed, 3 Nov 2021 14:14:28 +0000 (16:14 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoA better fix for bug#51583
Eli Zaretskii [Wed, 3 Nov 2021 14:13:32 +0000 (16:13 +0200)]
A better fix for bug#51583

* src/w32.c (w32_get_resource): Move from here...
* src/w32fns.c (w32_get_resource): ...to here.
(w32_applytheme): No longer a no-op for Cygwin w32 builds.
(globals_of_w32fns): Do attempt to load dwmapi.dll and uxtheme.dll
in the Cygwin w32 build.

3 years ago; cperl-mode.el: Fix one match-count in my commit 2021-09-14
Harald Jörg [Wed, 3 Nov 2021 14:04:10 +0000 (15:04 +0100)]
; cperl-mode.el: Fix one match-count in my commit 2021-09-14

* lisp/progmodes/cperl-mode.el (cperl-init-faces): Matching group needs
to be adjusted according to the regexp change in my previous commit

3 years agoFix the Cygwin w32 build broken by adding the dark theme support
Eli Zaretskii [Wed, 3 Nov 2021 14:02:15 +0000 (16:02 +0200)]
Fix the Cygwin w32 build broken by adding the dark theme support

* src/w32fns.c (w32_applytheme): Make a no-op for Cygwin w32
builds.
(globals_of_w32fns): Don't attempt to load dwmapi.dll and
uxtheme.dll in the Cygwin w32 build.  (Bug#51583)

3 years agoFix header-line and tab-line when mode-line-compact is set
Eli Zaretskii [Wed, 3 Nov 2021 12:57:51 +0000 (14:57 +0200)]
Fix header-line and tab-line when mode-line-compact is set

* src/xdisp.c (display_mode_line): Make 'mode-line-compact' apply
only to mode lines.  (Bug#51558)

3 years agoAdd manual section about how to avoid regexp problems
Mattias Engdegård [Wed, 3 Nov 2021 12:42:25 +0000 (13:42 +0100)]
Add manual section about how to avoid regexp problems

Help users affected by our NFA engine's stack overflows and occasional
poor performance, replacing old text that was more limited in scope.

* doc/lispref/elisp.texi (Top):
* doc/lispref/searching.texi (Regular Expressions): Add menu entries.
(Regexp Problems): New node.
(Regexp Special):
* etc/PROBLEMS: Remove superseded text.

3 years agoClarify build environment
Phillip Lord [Wed, 3 Nov 2021 11:03:00 +0000 (11:03 +0000)]
Clarify build environment

* admin/nt/dist-build/README-scripts:

3 years agoClarify build directory structure
Phillip Lord [Wed, 3 Nov 2021 10:30:02 +0000 (10:30 +0000)]
Clarify build directory structure

* admin/nt/dist-build/README-scripts: Clarify build directory structure

3 years agoImprove theming of image-dired-thumb-mark
Stefan Kangas [Wed, 3 Nov 2021 07:21:26 +0000 (08:21 +0100)]
Improve theming of image-dired-thumb-mark

* etc/themes/adwaita-theme.el (adwaita):
* etc/themes/deeper-blue-theme.el (deeper-blue):
* etc/themes/dichromacy-theme.el (dichromacy):
* etc/themes/leuven-theme.el (leuven):
* etc/themes/manoj-dark-theme.el (manoj-dark):
* etc/themes/whiteboard-theme.el (whiteboard): Add definitions for
the 'image-dired-thumb-mark' face.

3 years ago* src/image.c: Fix building with giflib 4.
YAMAMOTO Mitsuharu [Wed, 3 Nov 2021 07:16:28 +0000 (16:16 +0900)]
* src/image.c: Fix building with giflib 4.

3 years agoimage-dired: Improve marking behavior
Stefan Kangas [Wed, 3 Nov 2021 06:14:21 +0000 (07:14 +0100)]
image-dired: Improve marking behavior

* lisp/image-dired.el (image-dired-thumb-mark): Use DarkOrange as
background to better match the 'dired-marked' face.
(image-dired-show-all-from-dir): Disable all marks when entering a
full directory.
(image-dired-unmark-all-marks): Add mode tag.
(image-dired-thumbnail-mode-map): Bind 'image-dired-unmark-all-marks'
to "U".

3 years agoimage-dired: Cleanup of four commands
Stefan Kangas [Wed, 3 Nov 2021 06:02:13 +0000 (07:02 +0100)]
image-dired: Cleanup of four commands

* lisp/image-dired.el
(image-dired--on-file-in-dired-buffer): New macro.
(image-dired-mark-thumb-original-file)
(image-dired-unmark-thumb-original-file)
(image-dired-flag-thumb-original-file)
(image-dired-toggle-mark-thumb-original-file): Rewrite using
above new macro.
(image-dired-modify-mark-on-thumb-original-file): Make obsolete in
favor of above new macro.

3 years agoimage-dired: Support wrap-around in display-next-thumbnail-original
Stefan Kangas [Wed, 3 Nov 2021 02:34:28 +0000 (03:34 +0100)]
image-dired: Support wrap-around in display-next-thumbnail-original

* lisp/image-dired.el (image-dired-forward-image): Support negative
prefix argument.  Optionally wrap-around, which means to continue from
first image after reaching the last one and vice versa.
(image-dired-backward-image): Reimplement in terms of
'image-dired-forward-image'.
(image-dired-display-next-thumbnail-original)
(image-dired-display-previous-thumbnail-original): Wrap around; when
reaching the last image, continue from the first one.  Add optional
prefix argument to move more than one image at a time.

3 years agoimage-dired: Improve menus
Stefan Kangas [Wed, 3 Nov 2021 02:00:23 +0000 (03:00 +0100)]
image-dired: Improve menus

* lisp/image-dired.el (image-dired-toggle-append-browsing)
(image-dired-toggle-movement-tracking): Improve messages.
(image-dired-thumbnail-mode-menu, image-dired-minor-mode-menu):
Make toggle entries into checkboxes.  Add separators.  Remove
obsoleted commands accidentally added back in merge.

3 years agoimage-dired: Signal error if file is missing on display
Stefan Kangas [Wed, 3 Nov 2021 01:45:36 +0000 (02:45 +0100)]
image-dired: Signal error if file is missing on display

* lisp/image-dired.el (image-dired-display-image): Signal error if
file is missing.

3 years agoimage-dired: Move menu definitions to top level
Stefan Kangas [Wed, 3 Nov 2021 01:39:00 +0000 (02:39 +0100)]
image-dired: Move menu definitions to top level

* lisp/image-dired.el (image-dired-thumbnail-mode-map)
(image-dired-display-image-mode-map, image-dired-minor-mode-map):
Move menu definitions from here...
(image-dired-thumbnail-mode-menu)
(image-dired-display-image-mode-menu)
(image-dired-minor-mode-menu): ...to these new top level
definitions.

3 years ago* lisp/epg.el (epg-key): Use explicit copier with proper prefix
Stefan Monnier [Wed, 3 Nov 2021 02:16:15 +0000 (22:16 -0400)]
* lisp/epg.el (epg-key): Use explicit copier with proper prefix

(epg--filter-revoked-keys): Adjust sole use.

3 years ago* etc/PROBLEMS: Move some entries to the legacy section.
Stefan Kangas [Tue, 2 Nov 2021 22:43:31 +0000 (23:43 +0100)]
* etc/PROBLEMS: Move some entries to the legacy section.

3 years agoRemove info for Emacs 20 users from etc/PROBLEMS
Stefan Kangas [Tue, 2 Nov 2021 22:39:43 +0000 (23:39 +0100)]
Remove info for Emacs 20 users from etc/PROBLEMS

* etc/PROBLEMS: Remove information for users upgrading from Emacs
20 or older.

3 years agoOptimise (cond) => nil at source level
Mattias Engdegård [Tue, 2 Nov 2021 13:48:55 +0000 (14:48 +0100)]
Optimise (cond) => nil at source level

* lisp/emacs-lisp/byte-opt.el (byte-optimize-cond):
Optimise clause-free `cond`, which can arise from earlier
transformations.  This enables further optimisations.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.

3 years ago* src/pdumper.c (dump_do_dump_relocation): Add sanity check.
Andrea Corallo [Tue, 2 Nov 2021 20:01:20 +0000 (21:01 +0100)]
* src/pdumper.c (dump_do_dump_relocation): Add sanity check.

3 years agoUse current face foreground for SVG icons in customize
Stefan Kangas [Tue, 2 Nov 2021 19:14:13 +0000 (20:14 +0100)]
Use current face foreground for SVG icons in customize

* etc/images/down.svg:
* etc/images/left.svg:
* etc/images/right.svg:
* etc/images/up.svg: Don't define foreground; this means they will use
the foreground of the currently defined face instead.  (Bug#51556)

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Tue, 2 Nov 2021 17:06:04 +0000 (19:06 +0200)]
Merge from origin/emacs-28

bc58bea * lisp/progmodes/prog-mode.el (prog-context-menu): Use text-m...

3 years ago; Merge from origin/emacs-28
Eli Zaretskii [Tue, 2 Nov 2021 17:06:02 +0000 (19:06 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

e4e1a95 ; Auto-commit of loaddefs files.

3 years ago; * doc/lispref/modes.texi (Tabulated List Mode): Fix markup.
Eli Zaretskii [Tue, 2 Nov 2021 16:51:35 +0000 (18:51 +0200)]
; * doc/lispref/modes.texi (Tabulated List Mode): Fix markup.

3 years agoSupport inserting images in tabulated-list-mode columns
Stefan Kangas [Tue, 2 Nov 2021 16:33:35 +0000 (17:33 +0100)]
Support inserting images in tabulated-list-mode columns

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-col):
Support using an image descriptor to insert an image in a column.
(tabulated-list-entries):
* doc/lispref/modes.texi (Tabulated List Mode): Update documentation
to reflect above change.

3 years agoRevert overlay-related changes in `C-h b'
Lars Ingebrigtsen [Tue, 2 Nov 2021 16:34:47 +0000 (17:34 +0100)]
Revert overlay-related changes in `C-h b'

* lisp/help.el (describe-bindings): Revert overlay-related changes
-- these are already output (normally) by `describe-buffer-bindings'.

3 years agoMake lambdas/closures/byte code in `C-h b' clickable
Lars Ingebrigtsen [Tue, 2 Nov 2021 15:20:15 +0000 (16:20 +0100)]
Make lambdas/closures/byte code in `C-h b' clickable

* lisp/help.el (help--describe-command): Add links for
lambdas/closures/byte code (bug#24235).

* lisp/emacs-lisp/pp.el (pp-display-expression): Autoload.

3 years ago; Improve documentation of a recent change
Eli Zaretskii [Tue, 2 Nov 2021 15:09:05 +0000 (17:09 +0200)]
; Improve documentation of a recent change

* lisp/files.el (file-has-changed-p): TAG must be a symbol.

* doc/lispref/files.texi (File Attributes): Fix typos.

3 years agoImprove file-has-changed-p
Gregory Heytings [Tue, 2 Nov 2021 14:50:31 +0000 (15:50 +0100)]
Improve file-has-changed-p

* doc/lispref/files.texi: Update the documentation.

* lisp/net/mailcap.el: Add a second argument to the call to
file-has-changed-p (bug#51523).

3 years agoUpdate keymap-tests after recent changes
dickmao [Tue, 2 Nov 2021 14:28:20 +0000 (15:28 +0100)]
Update keymap-tests after recent changes

* test/src/keymap-tests.el
(help--describe-vector/bug-9293-one-shadowed-in-range): Update tests
for d530f3f9ff.
(help--describe-vector/bug-9293-same-command-does-not-shadow): Update
(bug#51567).

3 years ago* lisp/outline.el: Fix compilation of `outline--make-button`
Stefan Monnier [Tue, 2 Nov 2021 12:29:32 +0000 (08:29 -0400)]
* lisp/outline.el: Fix compilation of `outline--make-button`

3 years agoFix mouse-1 on `C-h b' buttons
Lars Ingebrigtsen [Tue, 2 Nov 2021 02:50:36 +0000 (03:50 +0100)]
Fix mouse-1 on `C-h b' buttons

* lisp/outline.el (outline--make-button-overlay): Make mouse-1
work on the buttons.

3 years agoMake `C-h b' also describe overlay keymaps
Lars Ingebrigtsen [Tue, 2 Nov 2021 02:35:10 +0000 (03:35 +0100)]
Make `C-h b' also describe overlay keymaps

* lisp/help.el (describe-bindings): Also describe overlay key
bindings.

3 years agoAdd a better test for emojis
Lars Ingebrigtsen [Tue, 2 Nov 2021 01:52:29 +0000 (02:52 +0100)]
Add a better test for emojis

* lisp/outline.el (outline--valid-char-p)
(outline--valid-emoji-p): New predicates.
(outline--make-button, outline-minor-mode-buttons): Use them.

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 ago* lisp/progmodes/prog-mode.el (prog-context-menu): Use text-mode-context-menu.
Juri Linkov [Mon, 1 Nov 2021 20:08:36 +0000 (22:08 +0200)]
* lisp/progmodes/prog-mode.el (prog-context-menu): Use text-mode-context-menu.

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; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Nov 2021 13:17:37 +0000 (06:17 -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).