1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00
Commit Graph

159031 Commits

Author SHA1 Message Date
Stefan Monnier
b70369c557 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.
2022-08-05 18:46:31 -04:00
Lars Ingebrigtsen
32c603e9e5 Ensure that leim-list.el is built
* lisp/Makefile.in: Ensure that leim-list.el is built (bug#56998).
2022-08-05 23:48:40 +02:00
Stefan Kangas
ea6c2e9295 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)
2022-08-05 20:17:23 +02:00
Filipp Gunbin
50730a8b04 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.
2022-08-05 21:03:03 +03:00
Stefan Monnier
0da97d6685 * src/keyboard.c (timer_check_2): Replace redundant test with assertion 2022-08-05 12:34:47 -04:00
Stefan Monnier
eb7fe81e6d 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.
2022-08-05 10:38:59 -04:00
Stefan Monnier
df263dd758 bytecomp.el: Update comments referring to make-docfile 2022-08-05 09:41:03 -04:00
Eli Zaretskii
aff5961274 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.
2022-08-05 15:53:06 +03:00
Stefan Monnier
900b09c023 bytecomp.el: Further simplifications enabled by commit 59732a83c8
* 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.
2022-08-05 08:18:04 -04:00
Lars Ingebrigtsen
9149672e7f Fix lisp/Makefile.in autoloads dependency
* lisp/Makefile.in (autoloads): Ensure that loaddefs-gen.elc
exists before making autoloads.
2022-08-05 14:06:31 +02:00
Stefan Kangas
b7a896731c Make ange-ftp-re-read-dir compat alias obsolete
* lisp/net/ange-ftp.el (ange-ftp-re-read-dir): Make alias obsolete.
Update callers.
2022-08-05 14:00:23 +02:00
Lars Ingebrigtsen
7fccb83d07 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.
2022-08-05 13:51:28 +02:00
Stefan Kangas
c388578fb1 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.
2022-08-05 13:05:06 +02:00
Stefan Kangas
010e2e5e5e 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.
2022-08-05 13:04:57 +02:00
Stefan Kangas
8f438f224c 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.
2022-08-05 13:04:42 +02:00
Stefan Kangas
0c106ce87c 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.
2022-08-05 12:28:59 +02:00
Stefan Kangas
ab81080437 Make two perl-mode aliases obsolete
* lisp/progmodes/perl-mode.el (indent-perl-exp)
(mark-perl-function): Make obsolete.
2022-08-05 12:23:00 +02:00
Stefan Kangas
250f09d2f3 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.
2022-08-05 12:08:41 +02:00
Stefan Kangas
5426f67006 * test/lisp/env-tests.el: New file. 2022-08-05 11:47:05 +02:00
Stefan Kangas
f3b9bccb45 * lisp/play/fortune.el: Doc fixes. 2022-08-05 10:47:18 +02:00
Po Lu
cbe1af96a2 Fix oldXMenu grab handling
* src/xmenu.c (x_menu_translate_generic_event, pop_down_menu):
Clear grab correctly on individual XI2 devices.
2022-08-05 16:26:01 +08:00
Po Lu
9aa959efeb ; * etc/NEWS: Fix typo. 2022-08-05 16:12:25 +08:00
Po Lu
faf1f03798 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.
2022-08-05 16:12:07 +08:00
Po Lu
4b1ec39561 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.
2022-08-05 13:23:39 +08:00
Stefan Kangas
c7b0eafd72 Merge from origin/emacs-28
f484da5fcb * doc/lispref/loading.texi (Autoload by Prefix): Fix typo.
2022-08-05 06:30:27 +02:00
Po Lu
0dbe0fd410 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.
2022-08-05 10:18:18 +08:00
Stefan Kangas
8ea7506d72 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.
2022-08-04 23:35:46 +02:00
Stefan Kangas
1c736c8c59 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.
2022-08-04 23:21:03 +02:00
Stefan Kangas
d73a104dd3 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".
2022-08-04 23:21:03 +02:00
Andreas Schwab
0b5dccc8b2 * lisp/Makefile.in (distclean): Also remove loaddefs.elc. 2022-08-04 22:35:10 +02:00
Gregory Heytings
5a79bb2aed Merge branch 'feature/long-lines-improvements' 2022-08-04 21:19:36 +02:00
Peder O. Klingenberg
b335e1a046 * 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).
2022-08-04 20:27:56 +02:00
Michael Albinus
a08dd087e9 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)
2022-08-04 19:27:49 +02:00
Lars Ingebrigtsen
9b5c54a49d 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.
2022-08-04 19:10:27 +02:00
Michael Albinus
e3edbf577b 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.
2022-08-04 18:12:25 +02:00
Lars Ingebrigtsen
bccb3abef7 Suppress compilation warnings in netrc.el
* lisp/obsolete/netrc.el (netrc-machine-user-or-password)
(netrc-credentials): Suppress some warnings.
2022-08-04 17:46:14 +02:00
Stefan Kangas
5d5ab3cacd 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.
2022-08-04 17:38:39 +02:00
Stefan Kangas
806f2d0294 Clean up output of make-command-summary slightly
* lisp/makesum.el (make-command-summary): Don't print today's date
or status messages.
2022-08-04 17:38:39 +02:00
Lars Ingebrigtsen
cdaddc4d72 Move netrc tests to auth-source-tests.el 2022-08-04 17:33:34 +02:00
Lars Ingebrigtsen
8810330f30 Add obsolete-since header to netrc.el
* lisp/obsolete/netrc.el: Add obsolete-since header (bug#56976).
2022-08-04 17:14:23 +02:00
Lars Ingebrigtsen
4483de6a4c Move netrc.el to lisp/obsolete/ 2022-08-04 17:12:05 +02:00
Lars Ingebrigtsen
3bc7b5f412 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).
2022-08-04 17:09:46 +02:00
Lars Ingebrigtsen
22a2ad13f5 Add obsolete-since line to autoload.el and adjust comments
* lisp/obsolete/autoload.el: Add obsolete-since line.
2022-08-04 17:06:07 +02:00
Lars Ingebrigtsen
aa9eaac68e Move autoload.el to lisp/obsolete/ 2022-08-04 17:03:59 +02:00
Lars Ingebrigtsen
c4ce09c058 Adjust autoload require in cus-dep.el
* lisp/cus-dep.el (loaddefs-gen): Don't require autoload, because
none of the functions are used.
2022-08-04 17:03:14 +02:00
Lars Ingebrigtsen
ac710e6a23 Don't require netrc in nnimap.el
* lisp/gnus/nnimap.el (netrc): Don't require, since it's not used.
2022-08-04 16:55:21 +02:00
Lars Ingebrigtsen
d92c11845a 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.
2022-08-04 16:50:06 +02:00
Lars Ingebrigtsen
f038695085 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.
2022-08-04 16:41:39 +02:00
Lars Ingebrigtsen
d15b67b108 Minor checkdoc.el clean up
* lisp/emacs-lisp/checkdoc.el (generate-autoload-cookie): This is
no longer used, so remove reference.
2022-08-04 16:29:47 +02:00
Lars Ingebrigtsen
580976a82c Adjust admin/emacs for new autoloads
* admin/emake: Adjust for new autoloads.
2022-08-04 16:24:26 +02:00