1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-30 10:11:47 -07:00
Commit graph

158866 commits

Author SHA1 Message Date
Stefan Kangas
fad87d84df Don't mention test failures on Ubuntu 16.04 in PROBLEMS
Ubuntu 16.04 LTS reached end of life on April 30th, 2021.
Furthermore, test failures don't seem significant enough to warrant an
entry.  It's rather cosmetic.
* etc/PROBLEMS: Delete entry on test failures on Ubuntu 16.04.
2022-08-06 17:03:47 +02:00
Eli Zaretskii
6223e251a5 ; * src/composite.c (Fcomposition_sort_rules): Fix last change. 2022-08-06 18:00:16 +03:00
Eli Zaretskii
315b00ff8d New function 'composition-sort-rules'
* src/composite.c (Fcomposition_sort_rules)
(compare_composition_rules): New functions.
2022-08-06 17:58:08 +03:00
Jonas Bernoulli
bee6ee9de1 * doc/misc/transient.texi: Update to transient v0.3.7-156-ga5562cb
Eventually we want to be able to generate "transient.texi" from
"transient.org", without having to either give up on idiomatic texinfo
or making it much more painful to maintain the org file.

We are much closer to that now, but there are still a few areas where
additional work is needed.  This was mostly accomplished by using Org
macros.

The most significant outstanding issue is that the generated
references don't yet look like an experienced texinfo author like Eli
would like them to look.  Additionally it is not yet possible to use a
macro that produces @dots{} in the places Eli added them, and in Org
code blocks it is not possible to use macros, so we cannot have
@var{...} appear in "@lisp ... @end lisp".  The last issue probably
cannot be changed on Org's side, but since there are only two such
code blocks, this might be a situation where the compromise has to
come from the texinfo side.  There are also three other very minor
and inconsequential differences.

For now I have regenerated the texinfo file from the org file and then
discarded the differences mentioned in the previous paragraph.

The process of merging (1) Eli's changes to the texinfo file
(including, but certainly not limited to markup), (2) changes to the
org source (updated content, formatting changes backported earlier,
fixes for formatting changes Eli did not fix, etc.) and (3) changes to
the code that converts the org source to texinfo, was very laborious
and painful.  In essence, this amounted to a (at least) three-way
merge across three different languages and three repositories.

I tried very hard to not waste any of the effort Eli had put into
fixing up the generated texinfo file.  I.e., I went back and forth
making improvements to the org source, implementing org macros,
regenerating the texinfo and comparing the remaining difference, and
creating commits on both sides.  This resulted in a dozen commits on
both sides and took me well over a day.  I could have put in even more
effort to absolutely ensure nothing at all is lost in the process, but
I think that would have amounted to a colossal waste of my time.

Going forward, if you find unidiomatic texinfo, then please don't fix
each instance.  Instead write me an email, explaining what the problem
is.  You are welcome to make limited fixes to the content or fix
one-of markup issue in the texinfo file; those are relatively simple
to backport in comparison.
2022-08-06 16:03:51 +02:00
Eli Zaretskii
5aaad0445d Speed up display of Arabic
* lisp/language/misc-lang.el (composition-function-table): Move
some of the Arabic composition rules to ZWJ and ZWNJ cells.  This
speeds up display of Arabic by a factor of 2.  (Bug#56682)
2022-08-06 16:55:51 +03:00
Eli Zaretskii
55c25e73d4 Fix C-n/C-p inside bidirectional text
* src/xdisp.c (move_it_by_lines, try_cursor_movement): Handle
glyph rows whose direction of increasing buffer positions is
reverse of the normal: going down in the window makes buffer
positions higher.
* src/indent.c (Fvertical_motion): When looking for the last glyph
row occupied by point, take into account the bidi iteration
direction.
2022-08-06 16:24:34 +03:00
lWarne
d8abff398b Fontify python escape sequences in literals
* lisp/progmodes/python.el (python-rx): Add regular expressions
matching escape codes in string and byte literals
(python--string-bytes-literal-matcher): new function
(python--not-raw-bytes-literal-start-regexp): new constant
(python--not-raw-string-literal-start-regexp): new constant
* test/lisp/progmodes/python-tests.el: Add tests for new
fontification (bug#57004).
2022-08-06 15:01:38 +02:00
Lars Ingebrigtsen
83496888aa Fix mh-e.texi syntax (from previous change)
* doc/misc/mh-e.texi (Viewing): Add closing brace to @footnote.
2022-08-06 14:50:50 +02:00
Stefan Kangas
da965ec474 * etc/PROBLEMS: Delete entry on 20+ years old version of X-Symbol. 2022-08-06 14:32:23 +02:00
Stefan Kangas
a1e07057c4 * admin/check-doc-strings: Remove XEmacs support. 2022-08-06 14:30:09 +02:00
Stefan Kangas
db5bc208fb Don't mention removed XEmacs support in mh-e manual
* doc/misc/mh-e.texi (Preface, Incorporating Mail, Viewing)
(Tool Bar, Tool Bar): Remove any reference to XEmacs.
2022-08-06 14:22:57 +02:00
Stefan Kangas
fc450db226 Make alias widget-visibility-value-create obsolete
* lisp/wid-edit.el (widget-visibility-value-create): Make compat
alias obsolete.
2022-08-06 14:14:44 +02:00
Stefan Kangas
5ab557be62 ; Adjust time-convert call to recent change
* test/lisp/eshell/em-pred-tests.el
(eshell-parse-file-name-attributes): Adjust test to recent change.
2022-08-06 13:03:38 +02:00
Stefan Kangas
3c4526028c ; Maintain admin/update_autogen 2022-08-06 13:01:13 +02:00
Stefan Kangas
b5145fc66d Make an rmail compat alias obsolete
* lisp/mail/rmailsum.el (rmail-summary-output-to-rmail-file): Make
compat alias obsolete.
2022-08-06 13:01:13 +02:00
Stefan Kangas
e8613adb0d Make compat alias ede-toplevel-project-or-nil obsolete
* lisp/cedet/ede/files.el (ede-toplevel-project-or-nil): Make
compat alias obsolete.
2022-08-06 13:01:13 +02:00
Stefan Kangas
2ac3e3eda5 Drop support for XEmacs package func-menu from idlwave
* lisp/progmodes/idlwave.el (idlwave-function-menu): Make into
obsolete alias for imenu.  Update callers.
* doc/misc/idlwave.texi (Introduction, Motion Commands): Remove
any mention of func-menu.
2022-08-06 12:52:42 +02:00
Stefan Kangas
543b5248db Make face-doc-string aliases obsolete
* lisp/faces.el (face-doc-string, set-face-doc-string): Make
aliases obsolete.
2022-08-06 12:52:42 +02:00
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