1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00
Commit graph

158848 commits

Author SHA1 Message Date
Stefan Kangas
faf231edcc ; * lisp/gnus/mm-util.el: Remove duplicate defalias. 2022-08-06 12:52:42 +02:00
Stefan Kangas
4be147b677 * admin/update_autogen: Fix generating ldefs-boot.el. 2022-08-06 12:46:27 +02:00
Stefan Kangas
907ad6522a * admin/update_autogen: Fix refreshing grammar-wy.el. 2022-08-06 12:46:22 +02:00
Lars Ingebrigtsen
870be1e106 Put no-byte-compile cookie back in ldefs-boot.el 2022-08-06 11:41:40 +02:00
Stefan Kangas
e89532c7c7 ; Auto-commit of loaddefs files. 2022-08-06 11:32:32 +02:00
Po Lu
28c01bd484 Correctly initialize values after a new device is enabled
* src/xterm.c (handle_one_xevent): Initialize new device to
zero.  (bug#57011)
2022-08-06 14:51:08 +08:00
Eli Zaretskii
564571f712 ; * lisp/emacs-lisp/lisp.el (end-of-defun-moves-to-eol): Doc fix. 2022-08-06 09:40:07 +03:00
Eli Zaretskii
e46668847d * src/puresize.h (BASE_PURESIZE): Bump the value. (Bug#57007) 2022-08-06 09:11:01 +03:00
Stefan Kangas
e87c0fdc14 Merge from origin/emacs-28
f3b9bccb45 * lisp/play/fortune.el: Doc fixes.
2022-08-06 06:30:27 +02:00
Po Lu
a97e9d80db Improve XI focus handling for entry and exit events
* src/xterm.c (handle_one_xevent): Skip useless
x_detect_focus_change calls in more cases.
2022-08-06 10:59:15 +08:00
Po Lu
3fee3f59f2 ; Update ldefs-boot.el again 2022-08-06 10:29:16 +08:00
Po Lu
15a9e73a17 * src/callproc.c (emacs_spawn): Fix Mac OS X build. 2022-08-06 10:27:03 +08:00
Po Lu
4e091c8ddf ; Update ldefs-boot.el 2022-08-06 10:22:41 +08:00
Po Lu
ef0546ffcd Fix signature of `seconds-to-time'
* lisp/calendar/time-date.el (seconds-to-time): Fix after change
to time-convert.
2022-08-06 10:21:52 +08:00
Po Lu
32ab6d7105 Improve XI focus handling
* src/xterm.c (handle_one_xevent): Skip useless
x_detect_focus_change calls in some cases.
2022-08-06 10:17:38 +08:00
Jim Porter
4e59830bc0 Add STREAM argument to 'process-tty-name'
* src/process.c (process-tty-name): Add STREAM argument.

* lisp/eshell/esh-io.el (eshell-close-target): Only call
'process-send-eof' once if the process's stdin is a pipe.

* test/src/process-tests.el (make-process/test-connection-type): Check
behavior of 'process-tty-name'.

* doc/lispref/processes.texi (Process Information): Document the new
argument.

* etc/NEWS: Announce this change.
2022-08-05 17:58:54 -07:00
Jim Porter
d7b89ea407 Allow creating processes where only one of stdin or stdout is a PTY
* src/lisp.h (emacs_spawn):
* src/callproc.c (emacs_spawn): Add PTY_IN and PTY_OUT arguments to
specify which streams should be set up as a PTY.
(call_process): Adjust call to 'emacs_spawn'.

* src/process.h (Lisp_Process): Replace 'pty_flag' with 'pty_in' and
'pty_out'.

* src/process.c (is_pty_from_symbol): New function.
(make-process): Allow :connection-type to be a cons cell, and allow
using a stderr process with a PTY for stdin/stdout.
(create_process): Handle creating a process where only one of stdin or
stdout is a PTY.

* lisp/eshell/esh-proc.el (eshell-needs-pipe, eshell-needs-pipe-p):
Remove.
(eshell-gather-process-output): Use 'make-process' and set
':connection-type' as needed by the value of 'eshell-in-pipeline-p'.

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't signal an
error when ':connection-type' is a cons cell.

* test/src/process-tests.el
(process-test-sentinel-wait-function-working-p): Allow passing PROC
in, and rework into...
(process-test-wait-for-sentinel): ... this.
(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for, process-test-quoted-batfile)
(process-test-stderr-filter): Use 'process-test-wait-for-sentinel'.
(make/process/test-connection-type): New function.
(make-process/connection-type/pty, make-process/connection-type/pty-2)
(make-process/connection-type/pipe)
(make-process/connection-type/pipe-2)
(make-process/connection-type/in-pty)
(make-process/connection-type/out-pty)
(make-process/connection-type/pty-with-stderr-buffer)
(make-process/connection-type/out-pty-with-stderr-buffer): New tests.

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test--detect-pty-cmd):
New variable.
(esh-proc-test/pipeline-connection-type/no-pipeline)
(esh-proc-test/pipeline-connection-type/first)
(esh-proc-test/pipeline-connection-type/middle)
(esh-proc-test/pipeline-connection-type/last): New tests.

* doc/lispref/processes.texi (Asynchronous Processes): Document new
':connection-type' behavior.
(Output from Processes): Remove caveat about ':stderr' forcing
'make-process' to use pipes.

* etc/NEWS: Announce this change (bug#56025).
2022-08-05 17:58:54 -07:00
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