]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoFix namespace problem in dired-aux.el
Stefan Kangas [Thu, 4 Aug 2022 10:14:10 +0000 (12:14 +0200)]
Fix namespace problem in dired-aux.el

* lisp/dired-aux.el (dired-minibuffer-default-add-shell-commands):
Rename from 'minibuffer-default-add-dired-shell-commands'.  Retain
old name as an obsolete alias.

2 years agoFix Tramp test
Michael Albinus [Thu, 4 Aug 2022 09:59:18 +0000 (11:59 +0200)]
Fix Tramp test

* test/lisp/net/tramp-tests.el (tramp-test48-unload):
Ignore autoload functions in `tramp-file-name' structure tests,
since `tramp-file-name-handler' is also autoloaded.

2 years ago; * etc/NEWS: Announce obsoletion of url-about.el.
Stefan Kangas [Thu, 4 Aug 2022 09:55:43 +0000 (11:55 +0200)]
; * etc/NEWS: Announce obsoletion of url-about.el.

2 years agoRename timep to type-break-timep
Stefan Kangas [Thu, 4 Aug 2022 09:37:52 +0000 (11:37 +0200)]
Rename timep to type-break-timep

* lisp/type-break.el (type-break-timep): Rename from 'timep'.
Retain old name as an obsolete alias.

2 years agoFix namespace problem in mpc.el
Stefan Kangas [Thu, 4 Aug 2022 09:32:26 +0000 (11:32 +0200)]
Fix namespace problem in mpc.el

* lisp/mpc.el (mpc-tag-browser-tagtypes): Rename from
'tag-browser-tagtypes'.  Retain old name as an obsolete alias.

2 years agoRename set-woman-file-regexp to woman-set-file-regexp
Stefan Kangas [Thu, 4 Aug 2022 09:27:47 +0000 (11:27 +0200)]
Rename set-woman-file-regexp to woman-set-file-regexp

* lisp/woman.el (woman-set-file-regexp): Rename from
'set-woman-file-regexp'.  Retain old name as an obsolete alias.

2 years agoRename alphabetp to hangul-alphabetp
Stefan Kangas [Thu, 4 Aug 2022 09:21:41 +0000 (11:21 +0200)]
Rename alphabetp to hangul-alphabetp

* lisp/leim/quail/hangul.el (hangul-alphabetp): Rename from
'alphabetp'.  Retain old name as an obsolete alias.

2 years agoMake trivial convenience defsubst notzerop obsolete
Stefan Kangas [Thu, 4 Aug 2022 08:54:22 +0000 (10:54 +0200)]
Make trivial convenience defsubst notzerop obsolete

* lisp/leim/quail/hangul.el (notzerop): Make obsolete.  Adjust
callers.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:27:13 +0000 (11:27 +0200)]
Regenerate ldefs-boot.el

2 years agoAdd more autoload-ignored-definitions defs
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:27:03 +0000 (11:27 +0200)]
Add more autoload-ignored-definitions defs

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add more definition forms that shouldn't trigger prefix
registration (bug#56970).

2 years agourl-about.el: Add obsolete-since
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:14:18 +0000 (11:14 +0200)]
url-about.el: Add obsolete-since

* lisp/obsolete/url-about.el: Add obsolete-since.

2 years agoMake url-about.el obsolete (bug#56885)
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:13:48 +0000 (11:13 +0200)]
Make url-about.el obsolete (bug#56885)

2 years agoRevert "Fix about:protocols in EWW"
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:09:40 +0000 (11:09 +0200)]
Revert "Fix about:protocols in EWW"

This reverts commit b49c1740105dd3715315aa433674c95f44aaeac4.

We're making this obsolete instead.

2 years agoFix eww--download-directory naming
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:04:51 +0000 (11:04 +0200)]
Fix eww--download-directory naming

* lisp/net/eww.el (eww--download-directory):
(eww-download-directory): Rename function that was mistakenly
named "erc--"   (bug#56969).

2 years agoFix up some prefix registration problems in doc strings
Lars Ingebrigtsen [Thu, 4 Aug 2022 09:02:49 +0000 (11:02 +0200)]
Fix up some prefix registration problems in doc strings

* lisp/uniquify.el (uniquify-buffer-name-style):
* lisp/org/ob-core.el (org-src-sha):
* lisp/emacs-lisp/cl-macs.el (cl--optimize):
* lisp/battery.el (battery-update-functions): Avoid triggering the
`register-definition-prefixes' in doc strings (bug#56968).

2 years agoFix double-encoding attachment headers in single-part rfc2047
Lars Ingebrigtsen [Thu, 4 Aug 2022 07:45:50 +0000 (09:45 +0200)]
Fix double-encoding attachment headers in single-part rfc2047

* lisp/mail/rfc2047.el (rfc2047-header-encoding-alist): Don't
double-encode Content-Disposition in mails with no other body
(bug#56906).

2 years agoRename make-doctor-variables to doctor-make-variables
Stefan Kangas [Thu, 4 Aug 2022 07:48:48 +0000 (09:48 +0200)]
Rename make-doctor-variables to doctor-make-variables

* lisp/play/doctor.el (doctor-make-variables): Rename from
'make-doctor-variables'.  Retain old name as an obsolete function
alias.

2 years agoRename nil-blank-string to eshell-nil-blank-string
Stefan Kangas [Thu, 4 Aug 2022 07:40:40 +0000 (09:40 +0200)]
Rename nil-blank-string to eshell-nil-blank-string

* lisp/eshell/em-unix.el (eshell-nil-blank-string): Rename from
'nil-blank-string'.  Retain old name as an obsolete function alias.

2 years agoRename pod2man-program to cperl-pod2man-program
Stefan Kangas [Thu, 4 Aug 2022 07:37:19 +0000 (09:37 +0200)]
Rename pod2man-program to cperl-pod2man-program

* lisp/progmodes/cperl-mode.el (cperl-pod2man-program): Rename
from 'pod2man-program'.  Retain old name as an obsolete
variable alias.

2 years agoFix about:protocols in EWW
Po Lu [Thu, 4 Aug 2022 07:52:03 +0000 (15:52 +0800)]
Fix about:protocols in EWW

* lisp/net/eww.el (eww--dwim-expand-url): Handle `about: ' URLs.
(bug#56885)
* lisp/url/url-about.el (url-about): Return correct content type
for HTML data.
* lisp/url/url-http.el (url-http--get-referer): Refrain from
looking for a referrer if the lastloc had no host.

2 years agoCorrectly implement refresh synchronization fences
Po Lu [Thu, 4 Aug 2022 07:37:54 +0000 (15:37 +0800)]
Correctly implement refresh synchronization fences

* configure.ac (HAVE_XSYNC): Also check for XSyncTriggerFence.

* src/xfns.c (Fx_create_frame): Create fences.
* src/xterm.c (x_atom_refs): New atom.
(x_sync_trigger_fence, x_sync_init_fences, x_sync_free_fences):
New functions.
(x_sync_update_finish): Trigger the appropriate fence.
(x_free_frame_resources): Free fences.
* src/xterm.h (struct x_display_info): New atom
`_NET_WM_SYNC_FENCES'.
(struct x_output): New field `sync_fences'.

2 years agoFix ignored-local-variable-values for non-primitive values
Kira Bruneau [Thu, 4 Aug 2022 06:26:38 +0000 (08:26 +0200)]
Fix ignored-local-variable-values for non-primitive values

* lisp/files.el (hack-local-variables-filter): Fix
`ignored-local-variable-values' for non-primitive values (bug#56957).

2 years agoMake flyspell-check-word-p work better with delete-selection-mode
Lars Ingebrigtsen [Thu, 4 Aug 2022 06:16:45 +0000 (08:16 +0200)]
Make flyspell-check-word-p work better with delete-selection-mode

* lisp/textmodes/flyspell.el (flyspell-check-word-p): Deactivate
the region immediately (bug#53773).

2 years agoAdjust documentation for make-docfile
Lars Ingebrigtsen [Thu, 4 Aug 2022 06:05:16 +0000 (08:05 +0200)]
Adjust documentation for make-docfile

* doc/lispref/loading.texi (Autoload): We're no longer using
make-docfile for loaddefs.el, but we're retaining the format.
Adjust the documentation.
* lisp/loadup.el: Adjust commentary.

2 years agoRemove outdated TODO item about make-docfile and .el files
Lars Ingebrigtsen [Thu, 4 Aug 2022 05:51:31 +0000 (07:51 +0200)]
Remove outdated TODO item about make-docfile and .el files

* etc/TODO: Remove outdated item about make-docfile and .el files.

2 years agoAdjust src/Makefile.in comments about make-docfile
Lars Ingebrigtsen [Thu, 4 Aug 2022 05:48:23 +0000 (07:48 +0200)]
Adjust src/Makefile.in comments about make-docfile

* src/Makefile.in ($(etc)/DOC): Remove comment aboout make-docfile
being run twice (because it no longer is).

2 years agoReduce code duplication in XI scroll bar code
Po Lu [Thu, 4 Aug 2022 05:58:42 +0000 (13:58 +0800)]
Reduce code duplication in XI scroll bar code

* src/xterm.c (xi_select_scroll_bar_events): New function.
(x_create_toolkit_scroll_bar)
(x_create_horizontal_toolkit_scroll_bar, x_scroll_bar_create):
Factor out input extension code there.

2 years agoAdjust loaddefs-generate--print-form comments
Lars Ingebrigtsen [Thu, 4 Aug 2022 05:44:53 +0000 (07:44 +0200)]
Adjust loaddefs-generate--print-form comments

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--print-form):
Adjust doc string and comments now that make-docfile doesn't scan
this.

2 years agoRemove read_string_literal purify doc string hack
Lars Ingebrigtsen [Thu, 4 Aug 2022 05:23:59 +0000 (07:23 +0200)]
Remove read_string_literal purify doc string hack

* src/lread.c (read_string_literal): Since we're now
byte-compiling the loaddefs files (so doc strings come from the
.elc files), remove the hack that make this return 0 when the
string starts with "\\n".

2 years agoRemove VCSWITNESS dependency, since we're always rescanning now
Lars Ingebrigtsen [Thu, 4 Aug 2022 05:03:52 +0000 (07:03 +0200)]
Remove VCSWITNESS dependency, since we're always rescanning now

* Makefile.in (VCSWITNESS): Remove, since we're always rescanning
for loaddefs.
* src/Makefile.in ($(lispsource)/loaddefs.el): Remove VCSWITNESS
dependency.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 04:53:25 +0000 (06:53 +0200)]
Regenerate ldefs-boot.el

2 years agoStill mark ldefs-boot.el as non-byte-compilable
Lars Ingebrigtsen [Thu, 4 Aug 2022 04:53:04 +0000 (06:53 +0200)]
Still mark ldefs-boot.el as non-byte-compilable

* lisp/Makefile.in (ldefs-boot.el): Mark ldefs-boot.el as
non-byte-compiled.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 4 Aug 2022 04:30:33 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

20ee17385f * lisp/uniquify.el (uniquify-buffer-name-style): Quote apo...

2 years agoAvoid redundant calls to XFlush in x_make_frame_visible
Po Lu [Thu, 4 Aug 2022 01:13:53 +0000 (09:13 +0800)]
Avoid redundant calls to XFlush in x_make_frame_visible

* src/xterm.c (x_make_frame_visible): Keep track of whether or
not the output buffer was implictly flushed before issuing
XFlush.

2 years agoRevert "Revert part of 59732a83c8 to fix bug#52969"
Stefan Monnier [Wed, 3 Aug 2022 21:02:25 +0000 (17:02 -0400)]
Revert "Revert part of 59732a83c8 to fix bug#52969"

This reverts commit 460f35e96df1c39ce2ba0f424b36365a2f9e9825.

Re-remove the code that scans .el files for docstrings, now
that even `lisp/loaddefs.el` is compiled.

* lib-src/make-docfile.c (scan_file): Don't call `scan_lisp_file`.
(scan_lisp_file, skip_white, read_lisp_symbol, search_lisp_doc_at_eol):
Delete functions.

2 years ago* lisp/help.el (describe-map-tree, describe-map): Simplify.
Stefan Kangas [Wed, 3 Aug 2022 15:32:52 +0000 (17:32 +0200)]
* lisp/help.el (describe-map-tree, describe-map): Simplify.

2 years agoReorganize Tramp
Michael Albinus [Wed, 3 Aug 2022 15:30:09 +0000 (17:30 +0200)]
Reorganize Tramp

* lisp/net/tramp-adb.el (tramp-adb-handle-write-region): Handle special
case that START is "".
(tramp-adb-handle-set-file-modes)
(tramp-adb-handle-set-file-times):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.
(tramp-adb-handle-make-process):
Use `with-tramp-saved-connection-properties'.

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
Use `tramp-archive-handle-file-exists-p'.
(tramp-archive-handle-file-exists-p): New defun.
(tramp-archive-file-name-handler): Add ;;;###tramp-autoload cookie.

* lisp/net/tramp-cache.el (tramp-compat, tramp-loaddefs)
(time-stamp): Require.
(tramp-get-file-property, tramp-set-file-property)
(tramp-flush-file-property, tramp-flush-file-upper-properties)
(tramp-flush-file-properties): Use `tramp-file-name-unify'.  Adapt
message.
(tramp-flush-directory-properties): Simplify.
(tramp-flush-file-function): Add ;;;###tramp-autoload cookie.
Don't use `with-parsed-tramp-file-name', it isn't exposed.
(with-tramp-file-property, with-tramp-connection-property)
(with-tramp-saved-connection-property): Macros moved from tramp.el.
(with-tramp-saved-file-property)
(with-tramp-saved-file-properties)
(with-tramp-saved-connection-properties): New defmacros.

* lisp/net/tramp-cmds.el (tramp-cleanup-connection): Flush "/".

* lisp/net/tramp-crypt.el (tramp-crypt-handle-set-file-modes)
(tramp-crypt-handle-set-file-times)
(tramp-crypt-handle-set-file-uid-gid):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.

* lisp/net/tramp-ftp.el (tramp-archive-file-name-handler):
Don't declare.

* lisp/net/tramp-gvfs.el (tramp-gvfs-info): New defun.
(tramp-gvfs-do-copy-or-rename-file)
(tramp-gvfs-handle-delete-directory)
(tramp-gvfs-handle-delete-file, tramp-gvfs-get-root-attributes)
(tramp-gvfs-handle-make-directory): Use it.
(tramp-gvfs-handle-set-file-modes)
(tramp-gvfs-handle-set-file-times)
(tramp-gvfs-handle-set-file-uid-gid):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.

* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link):
Expand TARGET when flushing file properties.
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-set-file-uid-gid):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.
(tramp-sh-handle-file-name-all-completions): Protect, when
connection is not established yet.
(tramp-do-copy-or-rename-file-directly): Flush file properties of
NEWNAME when constructing a new remote file name.
(tramp-do-copy-or-rename-file-out-of-band, tramp-sh-handle-make-process):
Use `with-tramp-saved-connection-properties'.
(tramp-sh-handle-delete-file): Flush file properties only after
deleting, otherwise we get a false alarm.
(tramp-sh-handle-process-file): Flush "/".
(tramp-sh-handle-write-region): Handle special case that START is "".

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
(tramp-smb-handle-set-file-acl)
(tramp-smb-handle-start-file-process):
Use `with-tramp-saved-connection-properties'.
(tramp-smb-remote-acl-p): New defun.
(tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl): Use it.
(tramp-smb-handle-set-file-modes):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.
(tramp-smb-handle-process-file, tramp-smb-maybe-open-connection):
Flush "/".

* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file): Flush "/".
(tramp-sshfs-handle-set-file-modes)
(tramp-sshfs-handle-set-file-times):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes)
(tramp-sudoedit-handle-set-file-times)
(tramp-sudoedit-handle-set-file-uid-gid):
Use `tramp-skeleton-set-file-modes-times-uid-gid'.

* lisp/net/tramp.el (tramp-archive-file-name-handler): Don't declare.
(tramp-verbose, tramp-file-name-unify, tramp-tramp-file-p)
(tramp-file-local-name, tramp-dissect-file-name)
(tramp-make-tramp-file-name, tramp-get-connection-buffer)
(tramp-get-buffer-string, tramp-debug-message)
(tramp-inhibit-progress-reporter, tramp-message):
Add ;;;###tramp-autoload cookie.
(tramp-file-name): Expose defstruct to tramp-loaddefs.el
(tramp-file-name-unify): New optional arg FILE.
(tramp-get-default-directory, tramp-get-buffer-string)
(tramp-message, tramp-backtrace, tramp-error-with-buffer)
(tramp-with-demoted-errors, tramp-barf-if-file-missing)
(tramp-skeleton-copy-directory, tramp-skeleton-delete-directory)
(tramp-skeleton-directory-files)
(tramp-skeleton-directory-files-and-attributes)
(tramp-skeleton-file-local-copy, tramp-skeleton-write-region):
Remove `tramp-suppress-trace' property, it isn't needed for
defmacros and defsubsts.
(with-tramp-file-property, with-tramp-connection-property)
(with-tramp-saved-connection-property): Move macros to tramp-cache.el.
(tramp-skeleton-directory-files-and-attributes): Fix implementation.
(tramp-skeleton-file-local-copy): Fix docstring.
(tramp-skeleton-set-file-modes-times-uid-gid): New defmacro.
(tramp-skeleton-write-region): Set "file-exists-p" cache property.
(tramp-handle-file-exists-p): Use cached value.
(tramp-process-sentinel): Flush "/".
(tramp-make-tramp-temp-file): Suppress also `tramp-smb-remote-acl-p'.
(tramp-get-connection-buffer):

* test/lisp/net/tramp-tests.el (tramp-test10-write-region)
(tramp-test20-file-modes, tramp-test22-file-times): Extend tests.

2 years agoMark keys in apropos.el for substitute-command-keys
Stefan Kangas [Wed, 3 Aug 2022 14:10:30 +0000 (16:10 +0200)]
Mark keys in apropos.el for substitute-command-keys

* lisp/apropos.el (apropos-symbol, apropos-function)
(apropos-macro, apropos-command, apropos-variable)
(apropos-user-option, apropos-face, apropos-group)
(apropos-widget, apropos-plist, apropos-library): Mark keys for
'substitute-command-keys'.

2 years agoAdd face to mouse buttons in command substitutions
Stefan Kangas [Wed, 3 Aug 2022 14:08:17 +0000 (16:08 +0200)]
Add face to mouse buttons in command substitutions

* lisp/help.el (substitute-command-keys): Add help-key-binding face to
mouse buttons in literal key substitutions.
* test/lisp/help-tests.el
(help-tests-substitute-command-keys/literal-key-sequence): Expand
test for above change.

2 years agoTeach 'symbol-file' about .eln natively-compiled files
Eli Zaretskii [Wed, 3 Aug 2022 14:16:09 +0000 (17:16 +0300)]
Teach 'symbol-file' about .eln natively-compiled files

* lisp/subr.el (locate-eln-file): New function.
(symbol-file): Accept an optional 3rd argument NATIVE-P, and, if
non-nil, try to locate and report the .eln file where SYMBOL was
defined.

* etc/NEWS:
* doc/lispref/loading.texi (Where Defined): Document the new
optional argument of 'symbol-file'.

2 years agoDo interactive mode tagging in apropos.el
Stefan Kangas [Wed, 3 Aug 2022 13:45:06 +0000 (15:45 +0200)]
Do interactive mode tagging in apropos.el

* lisp/apropos.el (apropos-follow, apropos-next-symbol)
(apropos-previous-symbol): Tag for 'apropos-mode'.

2 years agoRemove superfluous autoloads from url-util.el
Stefan Kangas [Wed, 3 Aug 2022 13:41:37 +0000 (15:41 +0200)]
Remove superfluous autoloads from url-util.el

* lisp/url/url-util.el (timezone-parse-date)
(timezone-make-date-arpa-standard): Remove superfluous autoloads.

2 years agoByte-compile the in-tree loaddefs.el files
Lars Ingebrigtsen [Wed, 3 Aug 2022 12:22:08 +0000 (14:22 +0200)]
Byte-compile the in-tree loaddefs.el files

* lisp/Makefile.in (all): Add "autoloads", which now otherwise
won't be done.
($(lisp)/loaddefs.el): Remove this target, since it's always done,
and would then trigger a re-compilation of loaddefs.elc.

* lisp/loadup.el: Load loaddefs.elc (if it exists).

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Don't
include no-byte-compile cookies in the Emacs build.

* src/Makefile.in ($(pdmp)): Depend on loaddefs.elc to ensure that
it's built by this point.
($(etc)/DOC): Don't scan loaddefs.el for doc strings, since they
are now picked up from the .elc file (bug#53024).

2 years ago; * src/xterm.c (x_if_event): Minor speed improvements.
Po Lu [Wed, 3 Aug 2022 12:17:18 +0000 (20:17 +0800)]
; * src/xterm.c (x_if_event): Minor speed improvements.

2 years agoFix crash on setting frame background color
Po Lu [Wed, 3 Aug 2022 12:16:31 +0000 (20:16 +0800)]
Fix crash on setting frame background color

* src/xfns.c (x_set_background_color): Stop setting scroll bar
window background, since this is now taken care of
automatically.

2 years ago; * lisp/url/url-util.el (url-display-percentage): simplify
Mattias Engdegård [Wed, 3 Aug 2022 12:09:15 +0000 (14:09 +0200)]
; * lisp/url/url-util.el (url-display-percentage): simplify

2 years agoUpdate modus-themes to their version 2.5.0
Protesilaos Stavrou [Wed, 3 Aug 2022 11:32:38 +0000 (14:32 +0300)]
Update modus-themes to their version 2.5.0

* doc/misc/modus-themes.org (Debian 11 Bullseye): Clarify that the
Debian package as it is long outdated.
(Option for inhibiting theme reload): Fix typo
(Option for completion framework aesthetics): Remove reference to
obsolete package.
(Option for line highlighting): Mention 'lin' package from GNU ELPA.
(Option for the headings' overall style): Document support for
headings level 0.
(Advanced customization): Fix typo.
(Override colors): Remove obsolete entries.  Add link to new section.
(Override colors through blending): Add section with a complete
technology demonstration of overriding the color values.
(Font configurations for Org and others): Mention the 'fontaine'
package from GNU ELPA.
(Custom Org emphasis faces): Fix typo.
(Full support for packages or face groups, Indirectly covered
packages): Update list of supported packages.
(Note on vc-annotate-background-mode): Remove note.:(Are these color
schemes?): Fix typo.
(Acknowledgements): Update acknowledgements.
* etc/themes/modus-operandi-theme.el
* etc/themes/modus-vivendi-theme.el: Update version header.

* etc/themes/modus-themes.el (modus-themes--version): Update version.
(modus-themes-special-cold, modus-themes-special-mild)
(modus-themes-special-warm, modus-themes-special-calm)
(modus-themes-diff-added, modus-themes-diff-changed)
(modus-themes-diff-removed, modus-themes-diff-refine-added)
(modus-themes-diff-refine-changed, modus-themes-diff-refine-removed)
(modus-themes-diff-focus-added, modus-themes-diff-focus-changed)
(modus-themes-diff-focus-removed, modus-themes-mark-symbol)
(modus-themes-inhibit-reload, modus-themes-mode-line)
(modus-themes--paren): Fix doc string warning about quotes.
(modus-themes-operandi-color-overrides)
(modus-themes-vivendi-color-overrides): Fix ":link" to the Info
manual's relevant node.
(modus-themes-headings): Add support for headings level 0.
(modus-themes-org-agenda): Tweak spacing in the doc string.
(modus-themes--syntax-comment): Tweak combination of properties.
(modus-themes--list-colors-render, modus-themes-list-colors): Refine
how the command works to preview colors in the buffer.
(modus-themes-faces): Edit supported faces.
(modus-themes-custom-variables): Edit supported variables.

Release notes: <https://protesilaos.com/codelog/2022-08-03-modus-themes-2-5-0/>.

2 years agoFix #' quoting in uniquify-buffer-name-style doc string
Lars Ingebrigtsen [Wed, 3 Aug 2022 11:22:09 +0000 (13:22 +0200)]
Fix #' quoting in uniquify-buffer-name-style doc string

* lisp/uniquify.el (uniquify-buffer-name-style): Fix wrong quoting.

2 years agoCheck for mis-quoted #' in doc strings during byte-compile
Lars Ingebrigtsen [Wed, 3 Aug 2022 11:14:24 +0000 (13:14 +0200)]
Check for mis-quoted #' in doc strings during byte-compile

* lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-style-warn):
Check for mis-quoted #' in doc strings, too.

2 years agoFix quoting of #' in some doc strings
Lars Ingebrigtsen [Wed, 3 Aug 2022 11:13:57 +0000 (13:13 +0200)]
Fix quoting of #' in some doc strings

* lisp/org/ox.el (org-export-to-file):
* lisp/eshell/esh-arg.el (eshell-concat):
* lisp/emacs-lisp/edebug.el (edebug-read-special):
* lisp/dired-aux.el (dired-split): Fix quoting of #' in doc strings.

2 years ago* lisp/transient.el: Update to package version v0.3.7-143-g1b0a8a7
Jonas Bernoulli [Wed, 3 Aug 2022 10:10:22 +0000 (12:10 +0200)]
* lisp/transient.el: Update to package version v0.3.7-143-g1b0a8a7

2 years agoImprove obsoletion of trimming functions in url-util.el
Stefan Kangas [Wed, 3 Aug 2022 09:52:57 +0000 (11:52 +0200)]
Improve obsoletion of trimming functions in url-util.el

* lisp/url/url-util.el (url-eat-trailing-space): Redefine as
obsolete function alias for 'string-trim-right'.
(url-strip-leading-spaces): Redefine as obsolete function alias
for 'string-trim-left'.

2 years agoUse string-trim in newsticker--remove-whitespace
Stefan Kangas [Wed, 3 Aug 2022 09:48:45 +0000 (11:48 +0200)]
Use string-trim in newsticker--remove-whitespace

* lisp/net/newst-backend.el (newsticker--remove-whitespace): Use
string-trim.

2 years agoRemove some spurious references to XEmacs
Stefan Kangas [Wed, 3 Aug 2022 09:40:27 +0000 (11:40 +0200)]
Remove some spurious references to XEmacs

* lisp/desktop.el (desktop--emacs-pid-running-p):
* lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-lisp-words): Don't
mention XEmacs.

2 years agoRemove XEmacs compat code from reftex-ref.el
Stefan Kangas [Wed, 3 Aug 2022 09:39:25 +0000 (11:39 +0200)]
Remove XEmacs compat code from reftex-ref.el

* lisp/textmodes/reftex-ref.el (reftex-latin1-to-ascii): Remove
XEmacs compat code.

2 years agoRemove more XEmacs compat code from viper-util.el
Stefan Kangas [Wed, 3 Aug 2022 09:31:41 +0000 (11:31 +0200)]
Remove more XEmacs compat code from viper-util.el

* lisp/emulation/viper-util.el (viper-check-version): Remove
XEmacs compat code.
(viper-get-visible-buffer-window): Make obsolete.  Update caller.
(viper-key-press-events-to-chars): Make obsolete.

2 years agoCEDET: Try and (re)fix bug#56902, in a better way
Stefan Monnier [Wed, 3 Aug 2022 08:50:54 +0000 (04:50 -0400)]
CEDET: Try and (re)fix bug#56902, in a better way

* lisp/cedet/semantic/complete.el (semantic-displayer-abstract):
Move definition before first use (in `semantic-displayer-focus-abstract`).

2 years agoRevert "; Fix last change (bug#56902)"
Stefan Monnier [Wed, 3 Aug 2022 08:48:01 +0000 (04:48 -0400)]
Revert "; Fix last change (bug#56902)"

This reverts commit 99bbc1fa23c3a54f1cbd2c56c57773dd471b3ef3.

2 years ago* lisp/uniquify.el (uniquify-buffer-name-style): Quote apostrophe.
Philipp Stephani [Tue, 26 Jul 2022 08:30:55 +0000 (10:30 +0200)]
* lisp/uniquify.el (uniquify-buffer-name-style): Quote apostrophe.

2 years agoRemove some XEmacs compat code from url-util.el
Stefan Kangas [Wed, 3 Aug 2022 08:06:39 +0000 (10:06 +0200)]
Remove some XEmacs compat code from url-util.el

These functions only exist in the XEmacs GTK support.
* lisp/url/url-util.el (url-display-percentage): Remove XEmacs
compat code.

2 years agoMake url-util space trimming functions obsolete
Stefan Kangas [Wed, 3 Aug 2022 08:00:34 +0000 (10:00 +0200)]
Make url-util space trimming functions obsolete

* lisp/url/url-util.el (url-eat-trailing-space)
(url-strip-leading-spaces): Make obsolete in favor of
'string-trim'.  Update caller.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 3 Aug 2022 07:50:35 +0000 (09:50 +0200)]
Merge from origin/emacs-28

f23d456039 * lisp/term.el: Doc fix; don't mention rlogin.
f522d2d90b ; * admin/make-tarball.txt: Minor tweaks.

2 years agoImprove X server time computation
Po Lu [Wed, 3 Aug 2022 07:13:14 +0000 (15:13 +0800)]
Improve X server time computation

* src/xterm.c (x_sync_get_monotonic_time): Use that if
available.
(x_display_set_last_user_time): Compute an offset between the
monotonic time and the X server time if they are not identical.
* src/xterm.h (struct x_display_info): New field
`server_time_offset'.

2 years ago; Fix last change (bug#56902)
Gerd Möllmann [Wed, 3 Aug 2022 06:46:52 +0000 (08:46 +0200)]
; Fix last change (bug#56902)

* lisp/cedet/semantic/complete.el (semantic-displayer-focus-abstract):
Define after base class has been defined.

2 years agoPrevent GC threshold from exceeding fixnum limit during precision scrolling
Po Lu [Wed, 3 Aug 2022 03:42:22 +0000 (11:42 +0800)]
Prevent GC threshold from exceeding fixnum limit during precision scrolling

* lisp/pixel-scroll.el (pixel-scroll-start-momentum): Prevent GC
threshold from exceeding most-positive-fixnum.

2 years agoAdd preparations for animation frame timing support
Po Lu [Wed, 3 Aug 2022 03:38:27 +0000 (11:38 +0800)]
Add preparations for animation frame timing support

* src/xterm.c (x_sync_get_monotonic_time)
(x_sync_current_monotonic_time, x_sync_note_frame_times): New
functions.
(x_sync_wait_for_frame_drawn_event, x_sync_update_begin)
(x_sync_handle_frame_drawn): Note frame times.
(x_display_set_last_user_time): Check if the X server time is
probably the same as CLOCK_MONOTONIC.

* src/xterm.h (struct x_display_info, struct x_output): New
fields and flags for clock handling and frame times.

2 years agoFix window iconification, raising and lowering frames, etc
Po Lu [Wed, 3 Aug 2022 01:28:44 +0000 (09:28 +0800)]
Fix window iconification, raising and lowering frames, etc

* src/xterm.c (XFlush): Remove define to 0.
(x_clear_frame, x_scroll_run, x_draw_window_cursor)
(x_free_frame_resources): Remove calls to XFlush where it is not
really necessary.  Leave the calls that actually are intact.

2 years agoAvoid cl-cXXXr compat aliases
Stefan Kangas [Tue, 2 Aug 2022 23:40:32 +0000 (01:40 +0200)]
Avoid cl-cXXXr compat aliases

* lisp/emacs-lisp/cl-lib.el (cl-third, cl-fourth):
* lisp/emacs-lisp/cl-macs.el (cl--do-&aux, cl--do-arglist)
(cl--parse-loop-clause, cl--loop-let, cl--loop-build-ands)
(cl--do-proclaim, cl-defstruct): Prefer using cXXXr functions
directly, instead of cl-cXXXr prefixed compat aliases.

2 years ago* doc/misc/vtable.texi (Commands): Fix typo. (Bug#56899)
Stefan Kangas [Tue, 2 Aug 2022 23:20:51 +0000 (01:20 +0200)]
* doc/misc/vtable.texi (Commands): Fix typo.  (Bug#56899)

2 years agoPrefer defvar-keymap in footnote.el
Stefan Kangas [Tue, 2 Aug 2022 22:48:07 +0000 (00:48 +0200)]
Prefer defvar-keymap in footnote.el

* lisp/mail/footnote.el (footnote-mode-map)
(footnote-minor-mode-map): Prefer defvar-keymap.

2 years agoObsolete unused variable footnote-use-message-mode
Stefan Kangas [Tue, 2 Aug 2022 22:37:24 +0000 (00:37 +0200)]
Obsolete unused variable footnote-use-message-mode

* lisp/mail/footnote.el (footnote-use-message-mode): Make
obsolete.

2 years ago; Fix system-info in url-privacy.el
Eli Zaretskii [Tue, 2 Aug 2022 17:27:46 +0000 (20:27 +0300)]
; Fix system-info in url-privacy.el

* lisp/url/url-privacy.el (url-setup-privacy-info): Fix MS-Windows
configurations.

2 years agoImprove sendmail-program doc string
Lars Ingebrigtsen [Tue, 2 Aug 2022 10:44:06 +0000 (12:44 +0200)]
Improve sendmail-program doc string

* lisp/mail/sendmail.el (sendmail-program): Document that the
program shouldn't output text (bug#56855).

2 years ago* src/xdisp.c (redisplay_window): Use BEG rather than hard coding 1
Stefan Monnier [Tue, 2 Aug 2022 14:38:53 +0000 (10:38 -0400)]
* src/xdisp.c (redisplay_window): Use BEG rather than hard coding 1

2 years agoCEDET: Remove left-over uses of obsolete <class>-child-p predicates
Stefan Monnier [Tue, 2 Aug 2022 14:22:00 +0000 (10:22 -0400)]
CEDET: Remove left-over uses of obsolete <class>-child-p predicates

Those predicates were still sometimes used in a few places, notably via
`:type ... <class>-child` which was never technically correct.

* lisp/cedet/ede/config.el (ede-extra-config, ede-project-with-config):
* lisp/cedet/ede/base.el (ede-project-placeholder): Avoid pseudo-type
`<class>-child`.

* lisp/cedet/semantic/complete.el (semantic-displayer-focus-abstract):
Move before use of `cl-typep` on it.
(semantic-complete-current-match):
* lisp/cedet/ede/speedbar.el (ede-speedbar-menu): Use `cl-typep`
instead of `<class>-child-p`.

* lisp/cedet/semantic/db.el (semanticdb-get-buffer):
Use `cl-defgeneric` for the main/default definition.
(semantic-tag-parent-buffer): Add method.

* lisp/cedet/semantic/tag-file.el (semantic-tag-parent-buffer):
New generic function extracted from `semantic-go-to-tag`.
This allows us to keep the semanticdb-table part in semantic/db and
thus break a cyclic dependency.
(semantic-go-to-tag): Use it.
Demote to a plain `defun` since it's not overloaded anywhere.

* lisp/cedet/semantic/util.el (semanticdb-abstract-table-child-p):
Remove unused declaration.

* lisp/cedet/srecode/compile.el (srecode-template-inserter-newline-child-p):
Remove unused declaration.
(srecord-compile-inserter-newline-p): New generic function, so we can
move the `srecode-template-inserter-newline` case to `srecode/insert.el`,
to avoid a cyclic dependency.

* lisp/cedet/srecode/insert.el (srecord-compile-inserter-newline-p):
New method.

2 years ago; * lisp/url/url-privacy.el (url-setup-privacy-info): Simplify.
Stefan Kangas [Tue, 2 Aug 2022 16:49:17 +0000 (18:49 +0200)]
; * lisp/url/url-privacy.el (url-setup-privacy-info): Simplify.

2 years agoDelete obsolete variable nntp-authinfo-file
Stefan Kangas [Sat, 16 Jul 2022 07:54:59 +0000 (09:54 +0200)]
Delete obsolete variable nntp-authinfo-file

* lisp/gnus/nntp.el (nntp-authinfo-file): Delete variable obsolete
since 24.1.

2 years ago* lisp/textmodes/sgml-mode.el (html-tag-alist): Add https.
Stefan Kangas [Tue, 2 Aug 2022 15:11:29 +0000 (17:11 +0200)]
* lisp/textmodes/sgml-mode.el (html-tag-alist): Add https.

2 years ago* lisp/term.el: Doc fix; don't mention rlogin.
Stefan Kangas [Tue, 2 Aug 2022 15:18:22 +0000 (17:18 +0200)]
* lisp/term.el: Doc fix; don't mention rlogin.

2 years ago; Clarify documentation of "locked narrowing"
Eli Zaretskii [Tue, 2 Aug 2022 13:24:00 +0000 (16:24 +0300)]
; Clarify documentation of "locked narrowing"

* src/editfns.c (Fwiden, Fnarrow_to_region):
* doc/lispref/positions.texi (Narrowing): Explain when
'narrow-to-region' and 'widen' might have no effect.

2 years agoSignal error on duplicate key definitions
Robert Pluim [Tue, 2 Aug 2022 12:22:32 +0000 (14:22 +0200)]
Signal error on duplicate key definitions

* lisp/keymap.el (define-keymap, defvar-keymap): Signal error if the
same key is specified twice.  (Bug#56873)

* doc/lispref/keymaps.texi (Creating Keymaps): Document error
signaling behaviour.

* test/src/keymap-tests.el (keymap-test-duplicate-definitions): Test
duplicate definition detection.

2 years agoRemove duplicate key definitions from keymaps
Robert Pluim [Tue, 2 Aug 2022 12:20:42 +0000 (14:20 +0200)]
Remove duplicate key definitions from keymaps

* lisp/gnus/gnus-srvr.el (gnus-browse-mode-map): Remove binding for
'gnus-browse-prev-map'.
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map): Remove
'gnus-summary-down-thread' binding, and by symmetry
'gnus-summary-up-thread' (it's still available on "T-u").
* lisp/ibuffer.el (ibuffer-mode-map): Remove binding for
'ibuffer-mark-for-delete'.
* lisp/wdired.el (wdired-perm-mode-map): Remove duplicate binding of
"s" to 'wdired-set-bit'.

* etc/NEWS: Announce 'gnus-summary-up-thread' change.

2 years agourl-about: Ignore missing directories in load-path
Stefan Kangas [Tue, 2 Aug 2022 12:00:50 +0000 (14:00 +0200)]
url-about: Ignore missing directories in load-path

* lisp/url/url-about.el (url-probe-protocols): Ignore missing
directories in load-path.

2 years ago; * admin/make-tarball.txt: Minor tweaks.
Stefan Kangas [Tue, 2 Aug 2022 11:45:13 +0000 (13:45 +0200)]
; * admin/make-tarball.txt: Minor tweaks.

2 years agoFix find-dired over tramp
Lars Ingebrigtsen [Tue, 2 Aug 2022 10:33:44 +0000 (12:33 +0200)]
Fix find-dired over tramp

* lisp/find-dired.el (find-dired-with-command): Set the
filter/sentinel immediately -- scheduling may make process output
(and exit) happen before these are set otherwise (bug#56865).
(find-dired-sort-by-filename): Don't bug out on error messages
from find.

2 years agoDelete function alias x-selection obsolete since 23.3
Stefan Kangas [Tue, 2 Aug 2022 09:55:16 +0000 (11:55 +0200)]
Delete function alias x-selection obsolete since 23.3

* lisp/select.el (x-selection): Delete function alias obsolete since
23.3.

2 years ago* lisp/mail/binhex.el: Improve commentary.
Stefan Kangas [Tue, 2 Aug 2022 09:39:56 +0000 (11:39 +0200)]
* lisp/mail/binhex.el: Improve commentary.

2 years agoConsider built-in packages to be installed
Matt Armstrong [Tue, 2 Aug 2022 10:14:09 +0000 (12:14 +0200)]
Consider built-in packages to be installed

* lisp/emacs-lisp/package.el (package-installed-p): Check for built-in
packages before initialization. (bug#56877).

2 years agoDon't disable eldoc when doing edebug
Lars Ingebrigtsen [Tue, 2 Aug 2022 09:56:55 +0000 (11:56 +0200)]
Don't disable eldoc when doing edebug

* lisp/emacs-lisp/eldoc.el
(eldoc-display-message-no-interference-p): Don't disable eldoc
when edebugging (bug#56459).  There should be no interference in
that case, because edebug messaging is done after stepping, and
eldoc messaging is done after other movements.

2 years agoFix url-dired obsoletion warning
Lars Ingebrigtsen [Tue, 2 Aug 2022 09:19:59 +0000 (11:19 +0200)]
Fix url-dired obsoletion warning

* lisp/url/url-file.el (url-file): Don't use obsolete url-dired
function.

2 years ago; * lisp/textmodes/texinfo.el: Remove stale comment.
Stefan Kangas [Tue, 2 Aug 2022 09:00:18 +0000 (11:00 +0200)]
; * lisp/textmodes/texinfo.el: Remove stale comment.

2 years agoMake url-dired.el obsolete (part 2/2)
Stefan Kangas [Mon, 1 Aug 2022 09:35:55 +0000 (11:35 +0200)]
Make url-dired.el obsolete (part 2/2)

* lisp/obsolete/url-dired.el: Add "Obsolete-since" header.
(url-dired-minor-mode-map): Minor fix.
* lisp/url/url-file.el (url-dired): Don't require.
* etc/NEWS: Announce its obsoletion.

2 years agoMake url-dired.el obsolete (part 1/2)
Stefan Kangas [Mon, 1 Aug 2022 09:32:37 +0000 (11:32 +0200)]
Make url-dired.el obsolete (part 1/2)

It doesn't have any real effect since 2007.
Ref: https://lists.gnu.org/r/emacs-devel/2022-07/msg01156.html

* lisp/url/url-dired.el: Move from here...
* lisp/obsolete/url-dired.el: ...to here.

2 years agoMake gnus-url-unhex into alias for url-unhex
Stefan Kangas [Mon, 1 Aug 2022 23:17:05 +0000 (01:17 +0200)]
Make gnus-url-unhex into alias for url-unhex

* lisp/gnus/gnus-util.el (gnus-url-unhex): Make into obsolete function
alias for url-unhex; they are identical.  Update callers.

2 years agoAdd tests for url-{hexify,unhex}-string
Stefan Kangas [Mon, 1 Aug 2022 23:12:19 +0000 (01:12 +0200)]
Add tests for url-{hexify,unhex}-string

* test/lisp/url/url-util-tests.el (url-unhex-string-tests)
(url-hexify-string-tests): New tests.

2 years agoRemove extraneous defvars from edmacro.el
Stefan Kangas [Mon, 1 Aug 2022 20:29:53 +0000 (22:29 +0200)]
Remove extraneous defvars from edmacro.el

* lisp/edmacro.el (edmacro-fix-menu-commands): Remove extraneous
defvars; they are already declared above.

2 years agoFurther reduce monitor change event duplication
Po Lu [Tue, 2 Aug 2022 07:15:03 +0000 (15:15 +0800)]
Further reduce monitor change event duplication

* src/xterm.c (handle_one_xevent): Also don't store duplicate
events for ConfigureNotify events bound for the root window.

2 years ago; * etc/emacs_lldb.py: Don't print '->' in type summary
Gerd Möllmann [Tue, 2 Aug 2022 07:12:47 +0000 (09:12 +0200)]
; * etc/emacs_lldb.py: Don't print '->' in type summary

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

e6af4968f9 ; Update ChangeLog and AUTHORS

2 years agoAvoid extra consing on monitor configuration change
Po Lu [Tue, 2 Aug 2022 01:41:02 +0000 (09:41 +0800)]
Avoid extra consing on monitor configuration change

* src/xterm.c (x_find_monitors_changed_event): New function.
(x_monitors_changed_cb, handle_one_xevent): Look through the
entire event queue to skip delivering monitor change events.