]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoFix namespace problem in ede/custom.el
Stefan Kangas [Fri, 5 Aug 2022 10:08:19 +0000 (12:08 +0200)]
Fix namespace problem in ede/custom.el

* lisp/cedet/ede/custom.el (ede-eieio-old-variables): Rename from
'ede-eieio-old-variables'.  Retain old name as an obsolete alias.

2 years ago* test/lisp/env-tests.el: New file.
Stefan Kangas [Fri, 5 Aug 2022 09:46:47 +0000 (11:46 +0200)]
* test/lisp/env-tests.el: New file.

2 years agoFix oldXMenu grab handling
Po Lu [Fri, 5 Aug 2022 08:26:01 +0000 (16:26 +0800)]
Fix oldXMenu grab handling

* src/xmenu.c (x_menu_translate_generic_event, pop_down_menu):
Clear grab correctly on individual XI2 devices.

2 years ago; * etc/NEWS: Fix typo.
Po Lu [Fri, 5 Aug 2022 08:12:25 +0000 (16:12 +0800)]
; * etc/NEWS: Fix typo.

2 years agoImprove C-x C-q in emacs-news-mode
Po Lu [Fri, 5 Aug 2022 08:12:07 +0000 (16:12 +0800)]
Improve C-x C-q in emacs-news-mode

* lisp/textmodes/emacs-news-mode.el (emacs-news-mode-map)
(emacs-news-view-mode-map): Make C-x C-q switch to the
appropriate mode for editing, and vice versa.
(emacs-news-mode): Disable button-mode and make buffer
read-write.

2 years agoImprove multi-pointer X support
Po Lu [Fri, 5 Aug 2022 05:21:29 +0000 (13:21 +0800)]
Improve multi-pointer X support

* etc/TODO: Document that MPX support still needs work.
* src/xterm.c (xi_handle_interaction): New function.
(handle_one_xevent): Call it in the appropriate places.

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

f484da5fcb * doc/lispref/loading.texi (Autoload by Prefix): Fix typo.

2 years agoImprove input extension focus handling with multiple master devices
Po Lu [Fri, 5 Aug 2022 02:18:18 +0000 (10:18 +0800)]
Improve input extension focus handling with multiple master devices

* src/xterm.c (x_cache_xi_devices): Initialize device fields to
0.
(xi_handle_focus_change, xi_focus_handle_for_device)
(xi_handle_delete_frame): New functions; store focus information
per-device instead.
(x_detect_focus_change): Handle GenericEvents that way instead.
(handle_one_xevent): Don't cache XI devices on DeviceChanged.
(x_free_frame_resources): Clear any frame focus information.

* src/xterm.h (struct xi_device_t): New fields for focus
tracking.  Add comments describing fields.

2 years agoPrefer defvar-keymap in mail/*.el
Stefan Kangas [Thu, 4 Aug 2022 21:35:46 +0000 (23:35 +0200)]
Prefer defvar-keymap in mail/*.el

* lisp/mail/mspools.el (mspools-mode-map):
* lisp/mail/rmailedit.el (rmail-edit-map):
* lisp/mail/rmailsum.el (rmail-summary-edit-map):
* lisp/mail/supercite.el (sc-T-keymap, sc-mode-map)
(sc-electric-mode-map, sc-minibuffer-local-completion-map)
(sc-minibuffer-local-map): Prefer defvar-keymap.

2 years agoWhitespace fix in gdb-mi.el
Stefan Kangas [Thu, 4 Aug 2022 21:19:10 +0000 (23:19 +0200)]
Whitespace fix in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-memory-next-page)
(gdb-memory-prev-page): Change tab after "defvar" to space, to avoid
potential bugs in tooling.

2 years agoBe more lax when picking up prefixes for loaddefs
Stefan Kangas [Thu, 4 Aug 2022 20:58:59 +0000 (22:58 +0200)]
Be more lax when picking up prefixes for loaddefs

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--compute-prefixes): Allow tabs and spaces before
symbol name, so that "(defvar\tfoo-bar nil)" is properly picked up.
Before this change, such a definition would be wrongly picked up as
the symbol "nil".

2 years ago* lisp/Makefile.in (distclean): Also remove loaddefs.elc.
Andreas Schwab [Thu, 4 Aug 2022 20:21:45 +0000 (22:21 +0200)]
* lisp/Makefile.in (distclean): Also remove loaddefs.elc.

2 years agoMerge branch 'feature/long-lines-improvements'
Gregory Heytings [Thu, 4 Aug 2022 19:19:36 +0000 (21:19 +0200)]
Merge branch 'feature/long-lines-improvements'

2 years ago* lisp/org/org.el: Fix load of compiled or compressed org-loaddefs
Peder O. Klingenberg [Thu, 4 Aug 2022 18:27:56 +0000 (20:27 +0200)]
* lisp/org/org.el: Fix load of compiled or compressed org-loaddefs

* lisp/org/org.el (eq): Fix load of compiled or compressed
org-loaddefs (bug#56982).

2 years agoAdapt Tramp for backward compatibility
Michael Albinus [Thu, 4 Aug 2022 17:27:49 +0000 (19:27 +0200)]
Adapt Tramp for backward compatibility

* lisp/net/tramp-compat.el (tramp-compat-auth-source-netrc-parse-all):
New defalias.

* lisp/net/tramp.el (tramp-parse-netrc): Use it.  (Bug#56976)

2 years agoEnsure that updated loaddefs files are byte-compiled
Lars Ingebrigtsen [Thu, 4 Aug 2022 17:10:20 +0000 (19:10 +0200)]
Ensure that updated loaddefs files are byte-compiled

* lisp/Makefile.in: Add autoloads as an ordering-only dependency
to compile-main so that newly updated loaddefs files are byte-compiled.

2 years agoFix last Tramp change, especially for bug#56963
Michael Albinus [Thu, 4 Aug 2022 16:12:25 +0000 (18:12 +0200)]
Fix last Tramp change, especially for bug#56963

* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
Add missing space.

* lisp/net/tramp-sh.el (tramp-sh-handle-write-region): Use "cat",
"echo -n" isn't portable.  (Bug#56963)

* lisp/net/tramp.el (tramp-file-name-unify): Unquote file name in time.

2 years agoSuppress compilation warnings in netrc.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:46:14 +0000 (17:46 +0200)]
Suppress compilation warnings in netrc.el

* lisp/obsolete/netrc.el (netrc-machine-user-or-password)
(netrc-credentials): Suppress some warnings.

2 years agoDocument obsoletion of netrc-parse better
Stefan Kangas [Thu, 4 Aug 2022 15:35:20 +0000 (17:35 +0200)]
Document obsoletion of netrc-parse better

* lisp/obsolete/netrc.el (netrc-parse): Add 'obsolete' declaration
pointing to 'auth-source-netrc-parse-all' for documentation purposes.

2 years agoClean up output of make-command-summary slightly
Stefan Kangas [Thu, 4 Aug 2022 15:26:19 +0000 (17:26 +0200)]
Clean up output of make-command-summary slightly

* lisp/makesum.el (make-command-summary): Don't print today's date
or status messages.

2 years agoMove netrc tests to auth-source-tests.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:33:34 +0000 (17:33 +0200)]
Move netrc tests to auth-source-tests.el

2 years agoAdd obsolete-since header to netrc.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:14:23 +0000 (17:14 +0200)]
Add obsolete-since header to netrc.el

* lisp/obsolete/netrc.el: Add obsolete-since header (bug#56976).

2 years agoMove netrc.el to lisp/obsolete/
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:12:05 +0000 (17:12 +0200)]
Move netrc.el to lisp/obsolete/

2 years agoUse auth-source in tramp-parse-netrc
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:09:46 +0000 (17:09 +0200)]
Use auth-source in tramp-parse-netrc

* lisp/auth-source.el (auth-source-netrc-parse-all): Autoload.

* lisp/net/tramp.el (tramp-parse-netrc): Don't use netrc-parse,
because it's going to be made obsolete (bug#56976).

2 years agoAdd obsolete-since line to autoload.el and adjust comments
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:06:07 +0000 (17:06 +0200)]
Add obsolete-since line to autoload.el and adjust comments

* lisp/obsolete/autoload.el: Add obsolete-since line.

2 years agoMove autoload.el to lisp/obsolete/
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:03:59 +0000 (17:03 +0200)]
Move autoload.el to lisp/obsolete/

2 years agoAdjust autoload require in cus-dep.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:03:14 +0000 (17:03 +0200)]
Adjust autoload require in cus-dep.el

* lisp/cus-dep.el (loaddefs-gen): Don't require autoload, because
none of the functions are used.

2 years agoDon't require netrc in nnimap.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:55:21 +0000 (16:55 +0200)]
Don't require netrc in nnimap.el

* lisp/gnus/nnimap.el (netrc): Don't require, since it's not used.

2 years agoAdd new function auth-source-netrc-parse-all
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:50:06 +0000 (16:50 +0200)]
Add new function auth-source-netrc-parse-all

* lisp/auth-source.el (auth-source-netrc-parse-all): New function
(bug#56976).
(auth-source-netrc-parse): Partially revert behaviour in previous
change -- require :allow-null to match.

2 years agoMinor cleanups in autoload.el/loaddefs-gen.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:41:39 +0000 (16:41 +0200)]
Minor cleanups in autoload.el/loaddefs-gen.el

* lisp/subr.el (package--builtin-versions): Adjust comments.

* lisp/emacs-lisp/loaddefs-gen.el (no-update-autoloads): Moved
here from autoload.el.
* lisp/emacs-lisp/loaddefs-gen.el: Removed now that it's no longer
used.

* lisp/emacs-lisp/package.el
(package-autoload-ensure-default-file): Don't warn about
soon-to-be obsolete functon.

2 years agoMinor checkdoc.el clean up
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:29:47 +0000 (16:29 +0200)]
Minor checkdoc.el clean up

* lisp/emacs-lisp/checkdoc.el (generate-autoload-cookie): This is
no longer used, so remove reference.

2 years agoAdjust admin/emacs for new autoloads
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:24:26 +0000 (16:24 +0200)]
Adjust admin/emacs for new autoloads

* admin/emake: Adjust for new autoloads.

2 years agoAllow auth-source-netrc-parse to return all lines
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:09:48 +0000 (16:09 +0200)]
Allow auth-source-netrc-parse to return all lines

* lisp/auth-source.el (auth-source-netrc-parse): If host/user/port
is nil, don't require those to match.

2 years agoClean up nntp-send-authinfo after removing obsolete variable
Lars Ingebrigtsen [Thu, 4 Aug 2022 13:37:31 +0000 (15:37 +0200)]
Clean up nntp-send-authinfo after removing obsolete variable

* lisp/gnus/nntp.el (netrc-parse, netrc-machine, netrc-get):
Remove declarations.
(nntp-send-authinfo): Now that `nntp-authinfo-file' is removed,
don't parse the .authinfo file twice, but just rely on the
auth-source functions (bug#56972).

2 years agoAdd define-keymap to autoload-ignored-definitions
Lars Ingebrigtsen [Thu, 4 Aug 2022 13:27:47 +0000 (15:27 +0200)]
Add define-keymap to autoload-ignored-definitions

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Ignore `define-keymap', too (bug#56973).

2 years agoAdd define-key-after to autoload-ignored-definitions
Stefan Kangas [Thu, 4 Aug 2022 12:55:08 +0000 (14:55 +0200)]
Add define-key-after to autoload-ignored-definitions

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add define-key-after and define-ibuffer-sorter.

2 years ago* doc/lispref/loading.texi (Autoload by Prefix): Fix typo.
Stefan Kangas [Thu, 4 Aug 2022 12:58:08 +0000 (14:58 +0200)]
* doc/lispref/loading.texi (Autoload by Prefix): Fix typo.

2 years ago; * lisp/org/ob-lilypond.el: Add FIXME.
Stefan Kangas [Thu, 4 Aug 2022 12:48:44 +0000 (14:48 +0200)]
; * lisp/org/ob-lilypond.el: Add FIXME.

2 years ago; * lisp/progmodes/meta-mode.el: Delete some commented out code.
Stefan Kangas [Thu, 4 Aug 2022 12:45:42 +0000 (14:45 +0200)]
; * lisp/progmodes/meta-mode.el: Delete some commented out code.

2 years agoFix namespace problem in meta-mode.el
Stefan Kangas [Thu, 4 Aug 2022 12:37:17 +0000 (14:37 +0200)]
Fix namespace problem in meta-mode.el

* lisp/progmodes/meta-mode.el
(meta-font-lock-match-declaration-item-and-skip-to-next): Rename
from 'font-lock-match-meta-declaration-item-and-skip-to-next'.
Retain old name as an obsolete alias.

2 years agoAdd more autoload-ignored-definitions
Stefan Kangas [Thu, 4 Aug 2022 12:36:34 +0000 (14:36 +0200)]
Add more autoload-ignored-definitions

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add define-ibuffer-column.

2 years ago* eww.el (eww-browse): Raise error if there are no arguments
Philip Kaludercic [Thu, 4 Aug 2022 12:20:58 +0000 (14:20 +0200)]
* eww.el (eww-browse): Raise error if there are no arguments

2 years ago; * src/keyboard.c (safe_run_hooks_maybe_narrowed): Fix broken merge.
Gregory Heytings [Thu, 4 Aug 2022 11:57:27 +0000 (11:57 +0000)]
; * src/keyboard.c (safe_run_hooks_maybe_narrowed): Fix broken merge.

2 years ago; * src/xterm.c (x_sync_init_fences): Fix number of fences announced.
Po Lu [Thu, 4 Aug 2022 11:53:45 +0000 (19:53 +0800)]
; * src/xterm.c (x_sync_init_fences): Fix number of fences announced.

2 years ago* lisp/find-dired.el (lookfor-dired): Make obsolete.
Stefan Kangas [Thu, 4 Aug 2022 10:25:17 +0000 (12:25 +0200)]
* lisp/find-dired.el (lookfor-dired): Make obsolete.

2 years agoMerge branch 'master' into feature/long-lines-improvements
Gregory Heytings [Thu, 4 Aug 2022 10:21:31 +0000 (12:21 +0200)]
Merge branch 'master' into feature/long-lines-improvements

2 years agoRename recently added macro to follow conventions
Stefan Kangas [Thu, 4 Aug 2022 10:18:46 +0000 (12:18 +0200)]
Rename recently added macro to follow conventions

* lisp/eshell/em-extpipe.el (eshell-extpipe--or-with-catch):
Rename from 'em-extpipe--or-with-catch'.

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 ago; * src/composite.c (find_automatic_composition): Fix a typo.
Eli Zaretskii [Thu, 4 Aug 2022 09:47:32 +0000 (12:47 +0300)]
; * src/composite.c (find_automatic_composition): Fix a typo.

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 agoImprove Bidi with long lines.
Gregory Heytings [Thu, 4 Aug 2022 09:01:55 +0000 (09:01 +0000)]
Improve Bidi with long lines.

* src/composite.c (composition_compute_stop_pos): Use an 'endpos' that
is not too far away.
(find_automatic_composition): Use a 'head' that is not too far away.
Also make sure that this code path is not taken when long line
optimizations are disabled.

* src/dispextern.h (struct composition_it): Add a field that points
to the parent iterator.

* src/xdisp.c (init_iterator): Set it.

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