]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agotime-convert): Deprecate calls without an explicit FORM arg
Stefan Monnier [Fri, 5 Aug 2022 22:46:31 +0000 (18:46 -0400)]
time-convert): Deprecate calls without an explicit FORM arg

* lisp/subr.el (time-convert): Deprecate calls without an explicit FORM arg.

* doc/lispref/os.texi (Time Conversion): Adjust doc accordingly.

* lisp/calendar/time-date.el (days-to-time):
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
* lisp/gnus/nnrss.el (nnrss-normalize-date):
* lisp/epa-ks.el (epa-ks--parse-buffer): Silence corresponding warnings.

2 years agoEnsure that leim-list.el is built
Lars Ingebrigtsen [Fri, 5 Aug 2022 21:48:33 +0000 (23:48 +0200)]
Ensure that leim-list.el is built

* lisp/Makefile.in: Ensure that leim-list.el is built (bug#56998).

2 years agoAllow newline after def*-form for definition-prefix
Stefan Kangas [Fri, 5 Aug 2022 18:17:23 +0000 (20:17 +0200)]
Allow newline after def*-form for definition-prefix

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add another semantic function.
(loaddefs-generate--compute-prefixes): Allow newline after the "(def*"
form.  (Bug#57000)

2 years agoAdd variable end-of-defun-moves-to-eol
Filipp Gunbin [Fri, 5 Aug 2022 18:01:10 +0000 (21:01 +0300)]
Add variable end-of-defun-moves-to-eol

* lisp/emacs-lisp/lisp.el (end-of-defun-moves-to-eol): New variable.
(end-of-defun): Use it.

2 years ago* src/keyboard.c (timer_check_2): Replace redundant test with assertion
Stefan Monnier [Fri, 5 Aug 2022 16:34:47 +0000 (12:34 -0400)]
* src/keyboard.c (timer_check_2): Replace redundant test with assertion

2 years agotimer.el: Avoid repeated timers
Stefan Monnier [Fri, 5 Aug 2022 14:38:59 +0000 (10:38 -0400)]
timer.el: Avoid repeated timers

https://mail.gnu.org/archive/html/emacs-devel/2022-07/msg01127.html
points out that end-users can get bitten by this, accidentally
calling `timer-activate` on an already activated timer.

* lisp/emacs-lisp/timer.el (timer--activate): Signal an error if we try
to re-add a timer that's already on the timer-list.

2 years agobytecomp.el: Update comments referring to `make-docfile`
Stefan Monnier [Fri, 5 Aug 2022 13:41:03 +0000 (09:41 -0400)]
bytecomp.el: Update comments referring to `make-docfile`

2 years agoAvoid assertion violations in 'back_to_previous_visible_line_start'
Eli Zaretskii [Fri, 5 Aug 2022 12:53:06 +0000 (15:53 +0300)]
Avoid assertion violations in 'back_to_previous_visible_line_start'

* src/xdisp.c (init_iterator): Always initialize narrowed_begv to
zero, since SET_WITH_NARROWED_BEGV depends on it being non-zero as
an indication that long-line optimizations are in use.
(back_to_previous_visible_line_start): When long-line
optimizations are in effect, we may end up not on a newline.

2 years agobytecomp.el: Further simplifications enabled by commit 59732a83c8875c
Stefan Monnier [Fri, 5 Aug 2022 12:18:04 +0000 (08:18 -0400)]
bytecomp.el: Further simplifications enabled by commit 59732a83c8875c

* lisp/emacs-lisp/bytecomp.el (byte-compile-output-docform): Don't
insert a \n before the #@ docstrings since make-docfile doesn't scan
.elc files any more.

2 years agoFix lisp/Makefile.in autoloads dependency
Lars Ingebrigtsen [Fri, 5 Aug 2022 12:06:22 +0000 (14:06 +0200)]
Fix lisp/Makefile.in autoloads dependency

* lisp/Makefile.in (autoloads): Ensure that loaddefs-gen.elc
exists before making autoloads.

2 years agoMake ange-ftp-re-read-dir compat alias obsolete
Stefan Kangas [Fri, 5 Aug 2022 11:36:38 +0000 (13:36 +0200)]
Make ange-ftp-re-read-dir compat alias obsolete

* lisp/net/ange-ftp.el (ange-ftp-re-read-dir): Make alias obsolete.
Update callers.

2 years agoMake loaddefs.el dependencies more explicit in src/Makefile.in
Lars Ingebrigtsen [Fri, 5 Aug 2022 11:51:19 +0000 (13:51 +0200)]
Make loaddefs.el dependencies more explicit in src/Makefile.in

* src/Makefile.in (LC_ALL): Add loaddefs.el as a dependency, too,
since that file may be deleted, but the loaddefs.elc file still
exists.  This causes problems in nativecomp builds.

2 years agoRename object-sort-list to srecode-object-sort-list
Stefan Kangas [Fri, 5 Aug 2022 11:00:06 +0000 (13:00 +0200)]
Rename object-sort-list to srecode-object-sort-list

* lisp/cedet/srecode/table.el (srecode-object-sort-list): Rename
from 'object-sort-list'.  Retain old name as an obsolete alias.

2 years agoFix namespace problems in viper.el
Stefan Kangas [Fri, 5 Aug 2022 10:55:28 +0000 (12:55 +0200)]
Fix namespace problems in viper.el

* lisp/emulation/viper.el
(viper-this-major-mode-requires-vi-state): Rename from
'this-major-mode-requires-vi-state'.  Retain old name as an
obsolete alias.
(viper-set-state-in-major-mode): Rename from
'set-viper-state-in-major-mode'.  Retain old name as an obsolete
alias.

2 years agoFix namespace problems in xscheme.el
Stefan Kangas [Fri, 5 Aug 2022 10:49:38 +0000 (12:49 +0200)]
Fix namespace problems in xscheme.el

* lisp/progmodes/xscheme.el (xscheme-default-runlight): Rename
from 'default-xscheme-runlight'.  Retain old name as an obsolete
alias.
(xscheme-verify-buffer): Rename from 'verify-xscheme-buffer'.
Retain old name as an obsolete alias.

2 years agoFix namespace problem in saveplace.el
Stefan Kangas [Fri, 5 Aug 2022 10:28:59 +0000 (12:28 +0200)]
Fix namespace problem in saveplace.el

* lisp/saveplace.el (save-place-load-alist-from-file): Rename from
'load-save-place-alist-from-file'.  Retain old name as an obsolete
alias.  Update callers.

2 years agoMake two perl-mode aliases obsolete
Stefan Kangas [Fri, 5 Aug 2022 10:23:00 +0000 (12:23 +0200)]
Make two perl-mode aliases obsolete

* lisp/progmodes/perl-mode.el (indent-perl-exp)
(mark-perl-function): Make obsolete.

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.