]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoDisable building the feature/pgtk branch feature/pgtk
Po Lu [Sat, 18 Dec 2021 13:54:03 +0000 (21:54 +0800)]
Disable building the feature/pgtk branch

* configure.ac: Add notice that feature/pgtk has been
integrated into master.

2 years ago* src/pgtkfns.c (Fx_show_tip): Adjust call for new signature.
Po Lu [Sat, 18 Dec 2021 12:59:11 +0000 (20:59 +0800)]
* src/pgtkfns.c (Fx_show_tip): Adjust call for new signature.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sat, 18 Dec 2021 12:58:44 +0000 (20:58 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoWork around some mysterious touch ownership race on GNOME Shell
Po Lu [Sat, 18 Dec 2021 12:45:11 +0000 (20:45 +0800)]
Work around some mysterious touch ownership race on GNOME Shell

* src/xterm.c (x_unlink_touch_point): Return if touchpoint was
actually unlinked.
(handle_one_xevent): Catch and ignore errors during touch
sequence grabbing.

2 years ago; Fix last change
Eli Zaretskii [Sat, 18 Dec 2021 11:56:10 +0000 (13:56 +0200)]
; Fix last change

* src/xdisp.c (window_text_pixel_size): Fix whitespace and braces.

* src/xdisp.c (Fwindow_text_pixel_size):
* etc/NEWS:
* doc/lispref/display.texi (Size of Displayed Text): Improve
wording of the documentation of the new argument of
'window-text-pixel-size'.

2 years agoAdd new argument `ignore-line-at-end' to `window-text-pixel-size'
Po Lu [Sat, 18 Dec 2021 10:48:11 +0000 (18:48 +0800)]
Add new argument `ignore-line-at-end' to `window-text-pixel-size'

* doc/lispref/display.texi (Size of Displayed Text): Update
documentation.
* etc/NEWS: Announce new argument.
* src/xdisp.c (window_text_pixel_size): Allow controlling if
the iterator's ascent and descent will be appended to the
pixel height returned.  All callers changed.
(Fwindow_text_pixel_size): New argument `ignore-line-at-end'.
All callers changed.

2 years agoFix display of window-specific overlays with 'display' property
Eli Zaretskii [Sat, 18 Dec 2021 09:03:48 +0000 (11:03 +0200)]
Fix display of window-specific overlays with 'display' property

* src/xdisp.c (handle_display_prop): Pass the window to
'get_char_property_and_overlay', not the buffer.  (Bug#52385)
The assignment of the buffer to OBJECT was moved to before
the call to 'get_char_property_and_overlay', for unknown
reasons, as part of installing the support for the
'min-width' space spec.

2 years agoMake multisession file reading more resilient on Windows
Lars Ingebrigtsen [Sat, 18 Dec 2021 08:24:17 +0000 (09:24 +0100)]
Make multisession file reading more resilient on Windows

* lisp/emacs-lisp/multisession.el (multisession--read-file-value):
Rename and try harder on file errors on Windows.

2 years agoCoding style fixes
Po Lu [Sat, 18 Dec 2021 07:45:42 +0000 (15:45 +0800)]
Coding style fixes

* src/gtkutil.c (xg_frame_set_char_size): Fix coding style.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sat, 18 Dec 2021 07:30:43 +0000 (15:30 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoDocument a bug that exists with some versions of GNOME and GTK
Po Lu [Sat, 18 Dec 2021 06:50:16 +0000 (14:50 +0800)]
Document a bug that exists with some versions of GNOME and GTK

* etc/PROBLEMS (Window-manager and toolkit-related problems):
Document GNOME shell bug.

2 years agoFlip buffers if display were modified in haiku_read_socket
Po Lu [Sat, 18 Dec 2021 03:40:44 +0000 (03:40 +0000)]
Flip buffers if display were modified in haiku_read_socket

* src/haikuterm.c (flush_dirty_back_buffers): New function.
(haiku_read_socket): Flip buffers if the display could have
been modified.

2 years agoDon't abort upon untracked TouchUpdate events
Po Lu [Sat, 18 Dec 2021 00:58:51 +0000 (08:58 +0800)]
Don't abort upon untracked TouchUpdate events

Emacs might get an untracked TouchUpdate event in the unlikely
event of a device hierarchy change during a touch sequence, in
which case all devices and touchpoints will be reset.

* src/xterm.c (handle_one_xevent): Don't abort when receiving
a TouchUpdate that isn't part of a touch sequence.

2 years agoHandle missing JUnit test reports
Michael Albinus [Fri, 17 Dec 2021 19:02:21 +0000 (20:02 +0100)]
Handle missing JUnit test reports

* lisp/emacs-lisp/ert.el (ert-write-junit-test-report)
(ert-write-junit-test-summary-report): Handle missing JUnit test reports.

2 years agomultisession.el: Avoid old specializer syntax
Stefan Monnier [Fri, 17 Dec 2021 16:39:04 +0000 (11:39 -0500)]
multisession.el: Avoid old specializer syntax

Avoid the use of the old (eql VAL) specializer, preferring the new
(eql EXP) form.

* lisp/emacs-lisp/multisession.el (multisession-backend-value)
multisession--backend-set-value, multisession--backend-values)
multisession--backend-delete, multisession-backend-value)
multisession--backend-set-value, multisession--backend-values)
multisession--backend-delete): Quote the symbol passed to `eql` specializer.

2 years ago; Improve recently installed documentation
Eli Zaretskii [Fri, 17 Dec 2021 15:06:32 +0000 (17:06 +0200)]
; Improve recently installed documentation

* etc/NEWS: Fix a typo.

* doc/lispref/commands.texi (Touchscreen Events): Fix wording and
indexing.

2 years agoImprove multisession test results on MS-Windows
Eli Zaretskii [Fri, 17 Dec 2021 12:41:16 +0000 (14:41 +0200)]
Improve multisession test results on MS-Windows

* lisp/emacs-lisp/multisession.el
(multisession--backend-set-value): Force 'fsync'ing the temporary
file.

2 years agoFix touchscreen support on Xt builds
Po Lu [Fri, 17 Dec 2021 11:17:50 +0000 (19:17 +0800)]
Fix touchscreen support on Xt builds

* src/xterm.c (handle_one_xevent): Make menu bar touch event
code conditional on GTK3.

2 years agoUpdate menu bar when processing touch sequences on it
Po Lu [Fri, 17 Dec 2021 11:11:54 +0000 (19:11 +0800)]
Update menu bar when processing touch sequences on it

* src/xterm.c (handle_one_event): Prevent menu bar from
becoming outdated when handling XI_TouchBegin events that may
cause it to be opened.

2 years agoIgnore motion events sent by an emulated pointer
Po Lu [Fri, 17 Dec 2021 11:04:03 +0000 (19:04 +0800)]
Ignore motion events sent by an emulated pointer

* src/xterm.c (handle_one_xevent): Ignore XI_Motion events that
have PointerEmulated set when the display supports XInput 2.2
or later.

2 years agoPort tramp-adb.el back to Emacs 26
Paul Eggert [Fri, 17 Dec 2021 09:11:54 +0000 (01:11 -0800)]
Port tramp-adb.el back to Emacs 26

* lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p):
Revert previous change since Tramp code should still be backward
compatible to Emacs 26.  But add a comment about this.
Problem reported by Michael Albinus in:
https://lists.gnu.org/r/emacs-devel/2021-12/msg01623.html

2 years agoFix selection of fonts that don't have regular weight
Eli Zaretskii [Fri, 17 Dec 2021 08:35:44 +0000 (10:35 +0200)]
Fix selection of fonts that don't have regular weight

* src/font.c (font_delete_unmatched): The kludge of allowing
inexact matches of the font weight is now used for non-NTGUI
platforms as well.  (Bug#52493)

2 years agoFix parallel build with multisession.el
Lars Ingebrigtsen [Fri, 17 Dec 2021 08:01:04 +0000 (09:01 +0100)]
Fix parallel build with multisession.el

* lisp/emacs-lisp/multisession.el: Don't require url -- this pulls
in gnus-util, which requires rmail, which depends on
rmail-loaddefs being generated, which our Makefiles doesn't guarantee.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Fri, 17 Dec 2021 06:23:07 +0000 (14:23 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoAdd support for touchscreen events generated by XInput 2
Po Lu [Thu, 16 Dec 2021 07:15:28 +0000 (15:15 +0800)]
Add support for touchscreen events generated by XInput 2

* doc/lispref/commands.texi (Input Events): Add "Touchscreen
Events" to menu.
(Touchscreen Events): New node.
* etc/NEWS: Announce new event types.

* src/keyboard.c (make_lispy_event): Handle touchscreen events.
(syms_of_keyboard): New symbols `touchscreen-begin',
`touchscreen-end' and `touchscreen-update'.
* src/termhooks.h (enum event_kind): New touchscreen events.

* src/xfns.c (setup_xi_event_mask): Set up touch event mask if
appropriate.
(x_window) [USE_GTK]: Call `setup_xi_event_mask'.

* src/xterm.c (x_free_xi_devices): Free touchpoints.
(x_init_master_valuators): Handle all devices and set master and
touch mode flags appropriately.
(xi_reset_scroll_valuators_for_device_id):
(x_get_scroll_valuator_delta): Ignore slave devices.

(xi_link_touch_point):
(xi_unlink_touch_point):
(xi_find_touch_point): New functions.
(handle_one_xevent): Handle XI touch events and events from
non-master devices.

* src/xterm.h (struct xi_touch_point_t): New structure.
(struct xi_device_t): Add touchpoints field.

2 years agoKill eshell-mode project buffers too
Dmitry Gutov [Fri, 17 Dec 2021 01:20:27 +0000 (04:20 +0300)]
Kill eshell-mode project buffers too

* lisp/progmodes/project.el (project-kill-buffer-conditions):
Add 'eshell-mode' too (bug#49465).

2 years ago* src/timefns.c: Minor comment fix.
Paul Eggert [Thu, 16 Dec 2021 23:35:32 +0000 (15:35 -0800)]
* src/timefns.c: Minor comment fix.

2 years ago; * lisp/vc/vc-dispatcher.el (vc-command-messages): Doc fix.
Eli Zaretskii [Thu, 16 Dec 2021 20:01:06 +0000 (22:01 +0200)]
; * lisp/vc/vc-dispatcher.el (vc-command-messages): Doc fix.

2 years agoSimplify epa-ks--parse-buffer timestamp handling
Paul Eggert [Thu, 16 Dec 2021 17:40:22 +0000 (09:40 -0800)]
Simplify epa-ks--parse-buffer timestamp handling

* lisp/epa-ks.el (epa-ks--parse-buffer): Omit unnecessary calls to
seconds-to-time, and prefer the unaliased name time-convert when
calls are necessary.

2 years agoOmit temporary warning re obsolete timestamps
Paul Eggert [Thu, 16 Dec 2021 17:40:22 +0000 (09:40 -0800)]
Omit temporary warning re obsolete timestamps

Do not warn about timestamps like (1 . 1000).  This warning was added
in Emacs 27 as a temporary transition aid, and has now served its
purpose.  These timestamps, which Emacs 26 and earlier treated as (HI
. LO) instead of as (TICKS . HZ), were never generated by Emacs
primitives, and in practice the warning seems to have been triggered
only by test cases designed to generate it.
* src/timefns.c (WARN_OBSOLETE_TIMESTAMPS): Remove.
All uses changed to assume it’s false.
(decode_lisp_time): Simplify by taking a bool instead of an
integer bitmask.  All uses changed.

2 years agoAssume current-time-zone exists
Paul Eggert [Thu, 16 Dec 2021 17:40:22 +0000 (09:40 -0800)]
Assume current-time-zone exists

* lisp/timezone.el (timezone-time-zone-from-absolute): Simplify by
assuming current-time-zone exists (true since Emacs 19.7 in 1993).

2 years agoPrefer format-time-string to current-time-zone
Paul Eggert [Thu, 16 Dec 2021 17:40:22 +0000 (09:40 -0800)]
Prefer format-time-string to current-time-zone

* lisp/org/ox-icalendar.el (org-icalendar-template)
(org-icalendar-export-current-agenda)
(org-icalendar--combine-files):
* lisp/time.el (display-time-update):
Prefer (format-time-string "%Z") to (cadr (current-time-zone)).

2 years agoMinor nndiary simplificatiuon with time zone
Paul Eggert [Thu, 16 Dec 2021 17:40:22 +0000 (09:40 -0800)]
Minor nndiary simplificatiuon with time zone

* lisp/gnus/nndiary.el (nndiary-last-occurrence)
(nndiary-next-occurrence): Simplify (and X (car X)) to (car X).

2 years agoPrefer format-time-string to current-time-string
Paul Eggert [Thu, 16 Dec 2021 17:40:22 +0000 (09:40 -0800)]
Prefer format-time-string to current-time-string

* lisp/arc-mode.el (archive-unixdate):
* lisp/gnus/nnrss.el (nnrss-normalize-date):
* lisp/tar-mode.el (tar-clip-time-string):
Prefer format-time-string to reassembling current-time-string output.

2 years agoencode-time simplifications
Paul Eggert [Thu, 16 Dec 2021 17:40:21 +0000 (09:40 -0800)]
encode-time simplifications

* lisp/gnus/gnus-search.el (gnus-search-query-parse-date):
* lisp/net/soap-client.el (soap-decode-date-time):
* lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p):
* lisp/org/ol.el (org-store-link):
* lisp/org/org-clock.el (org-clock-sum)
(org-clock-update-time-maybe):
* lisp/org/org-colview.el (org-colview-construct-allowed-dates):
* lisp/org/org-macro.el (org-macro--vc-modified-time):
* lisp/org/org-macs.el (org-2ft, org-matcher-time):
* lisp/org/org-table.el (org-table-eval-formula):
* lisp/org/org.el (org-read-date, org-display-custom-time)
(org-time-string-to-time, org-timestamp-change):
Prefer (encode-time L) to (apply #'encode-time L) where either will do.
* lisp/gnus/gnus-search.el (gnus-search-imap-handle-date):
* lisp/org/org-clock.el (org-clocktable-steps):
Prefer (encode-time S M ...) to (apply #'encode-time (list S M ...)).

2 years agoFix icalendar time zone parsing glitch
Paul Eggert [Thu, 16 Dec 2021 17:40:21 +0000 (09:40 -0800)]
Fix icalendar time zone parsing glitch

* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
Use pcase instead of cl-case, as cl-macs might not be loaded.
Otherwise, a build complains “calendar/icalendar.el:618:57:
Warning: ‘90’ is a malformed function” and some
icalendar--decode-isodatetime tests fail.  This fixes a bug
introduced in 2021-11-21T08:18:57Z!dick.r.chiang@gmail.com.

2 years agoFix encode-time doc string
Paul Eggert [Thu, 16 Dec 2021 17:40:21 +0000 (09:40 -0800)]
Fix encode-time doc string

* src/timefns.c (Fencode_time): Fix incorrect doc string
that talks about FORM (which doesn’t exist) by copying
wording from the manual instead.

2 years ago* lisp/vc/vc-dispatcher.el (vc-command-messages): Add choice 'log'.
Juri Linkov [Thu, 16 Dec 2021 19:16:50 +0000 (21:16 +0200)]
* lisp/vc/vc-dispatcher.el (vc-command-messages): Add choice 'log'.

(vc-do-command): Don't display messages but only write them to the *Messages*
buffer when vc-command-messages is 'log' (bug#52518).

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Thu, 16 Dec 2021 09:57:56 +0000 (17:57 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoImprove documentation of multisession variables
Eli Zaretskii [Thu, 16 Dec 2021 09:13:03 +0000 (11:13 +0200)]
Improve documentation of multisession variables

* doc/lispref/variables.texi (Multisession Variables): Improve
wording and markup, add indexing.

2 years agoUpdate files times in multisesssion properly
Lars Ingebrigtsen [Thu, 16 Dec 2021 07:05:37 +0000 (08:05 +0100)]
Update files times in multisesssion properly

* lisp/emacs-lisp/multisession.el
(multisession--backend-set-value): Make cached/external files
times match up.

2 years agoMake the multisession files value read more resilient
Lars Ingebrigtsen [Thu, 16 Dec 2021 07:00:01 +0000 (08:00 +0100)]
Make the multisession files value read more resilient

* lisp/emacs-lisp/multisession.el
(multisession--update-file-value): Make more resilient towards errors.

2 years agoSkip extension tests on hosts without the function
Lars Ingebrigtsen [Thu, 16 Dec 2021 06:43:29 +0000 (07:43 +0100)]
Skip extension tests on hosts without the function

2 years agoMake emoji--recent use multisession variables
Lars Ingebrigtsen [Thu, 16 Dec 2021 06:23:52 +0000 (07:23 +0100)]
Make emoji--recent use multisession variables

* lisp/international/emoji.el (emoji--recent): Make into a
multisession variable.
(emoji-recent, emoji--recent-transient): Use it.
(emoji--add-recent): Update it.

2 years agoDeclare a couple more functions in multisession.el
Lars Ingebrigtsen [Thu, 16 Dec 2021 06:22:00 +0000 (07:22 +0100)]
Declare a couple more functions in multisession.el

* lisp/emacs-lisp/multisession.el: New file.

2 years agoAdd support for multisession variables
Lars Ingebrigtsen [Thu, 16 Dec 2021 06:19:58 +0000 (07:19 +0100)]
Add support for multisession variables

* doc/lispref/elisp.texi (Top): Add to menu.
(Top):
* doc/lispref/variables.texi (Variables): Ditto.
(Multisession Variables): Document multisession variables.

* lisp/emacs-lisp/multisession.el: New file.

2 years agoRequire xwidget.el in `make-xwidget'
Po Lu [Thu, 16 Dec 2021 06:12:25 +0000 (14:12 +0800)]
Require xwidget.el in `make-xwidget'

* src/xwidget.c (Fmake_xwidget): Require `xwidget'.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 16 Dec 2021 05:31:48 +0000 (06:31 +0100)]
Merge from origin/emacs-28

1e578267fb Fix control buffer window height in 'ediff-setup-control-b...

2 years agoPrefer command remapping in ses.el
Stefan Kangas [Thu, 16 Dec 2021 02:14:31 +0000 (03:14 +0100)]
Prefer command remapping in ses.el

* lisp/ses.el (ses-mode-print-map): Use command remapping instead of
substitute-key-definition.

2 years agoUse defvar-keymap in hideif.el
Stefan Kangas [Wed, 15 Dec 2021 20:38:55 +0000 (21:38 +0100)]
Use defvar-keymap in hideif.el

* lisp/progmodes/hideif.el (hide-ifdef-mode-submap): Use
defvar-keymap.  Use command remapping instead of
substitute-key-definition.

2 years agoAdd errors in ert JUnit test reports
Michael Albinus [Wed, 15 Dec 2021 17:54:31 +0000 (18:54 +0100)]
Add errors in ert JUnit test reports

* lisp/emacs-lisp/ert.el (ert-write-junit-test-report)
(ert-write-junit-test-summary-report): Handle errors.

2 years agoFix control buffer window height in 'ediff-setup-control-buffer' (Bug#49277)
Martin Rudalics [Wed, 15 Dec 2021 17:53:49 +0000 (18:53 +0100)]
Fix control buffer window height in 'ediff-setup-control-buffer' (Bug#49277)

* lisp/vc/ediff-util.el (ediff-setup-control-buffer): Emulate
original 'shrink-window-if-larger-than-buffer' call by calling
'fit-window-to-buffer' with an appropriate maximum height
argument (Bug#49277).

2 years ago* lisp/outline.el (outline-minor-mode-use-buttons): Add :safe #'booleanp.
Juri Linkov [Wed, 15 Dec 2021 17:17:48 +0000 (19:17 +0200)]
* lisp/outline.el (outline-minor-mode-use-buttons): Add :safe #'booleanp.

(outline-minor-mode-cycle, outline-minor-mode-highlight):
Replace `put safe-local-variable' with :safe tag.

2 years agoHave 'dlopen' use RTLD_GLOBAL in 'dynlib_open'
Andrea Corallo [Wed, 15 Dec 2021 14:47:14 +0000 (15:47 +0100)]
Have 'dlopen' use RTLD_GLOBAL in 'dynlib_open'

* src/pdumper.c (dump_do_dump_relocation): Use 'dynlib_open_for_eln'
in place of 'dynlib_open'.
* src/dynlib.h (dynlib_open_for_eln): Declare it.
* src/dynlib.c (dynlib_open_for_eln): New function.
(dynlib_open): Add RTLD_GLOBAL.
* src/comp.c (Fnative_elisp_load): Use 'dynlib_open_for_eln' in place
of 'dynlib_open'.

2 years agoRecognize starred environments
Arash Esbati [Wed, 15 Dec 2021 11:10:05 +0000 (12:10 +0100)]
Recognize starred environments

* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Add
missing starred environments from sidecap and rotating packages.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Wed, 15 Dec 2021 10:39:06 +0000 (18:39 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 15 Dec 2021 05:30:41 +0000 (06:30 +0100)]
Merge from origin/emacs-28

7078f32b5b Fix crash when dumping charset_table with portable dumper ...
a4fcbf46a7 ; etc/NEWS: Move the note about Xref EIEIO change to the p...
f88c1d222f Remove maintainer comment from Emacs 28 module snippet.

# Conflicts:
# etc/NEWS

2 years agoFix crash when dumping charset_table with portable dumper (Bug#52461)
YAMAMOTO Mitsuharu [Wed, 15 Dec 2021 04:12:02 +0000 (13:12 +0900)]
Fix crash when dumping charset_table with portable dumper (Bug#52461)

* src/charset.h:
* src/charset.c (charset_table_used): Now extern.
* src/pdumper.c (dump_charset): Don't dump code_space_mask for unused
slots of charset_table.

2 years agoPrevent GDK from handling emulated button events
Po Lu [Wed, 15 Dec 2021 02:34:51 +0000 (10:34 +0800)]
Prevent GDK from handling emulated button events

* src/xterm.c (handle_one_xevent): Drop emulated button events.

2 years agoWork around pixel scrolling issues when line numbers are displayed
Po Lu [Wed, 15 Dec 2021 02:27:27 +0000 (10:27 +0800)]
Work around pixel scrolling issues when line numbers are displayed

* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Compare start position against line number display width
instead.

2 years ago; etc/NEWS: Move the note about Xref EIEIO change to the proper section
Dmitry Gutov [Wed, 15 Dec 2021 01:05:11 +0000 (04:05 +0300)]
; etc/NEWS: Move the note about Xref EIEIO change to the proper section

2 years agoproject-kill-buffers-display-buffer-list: Fix :package-version value
Dmitry Gutov [Tue, 14 Dec 2021 23:58:45 +0000 (02:58 +0300)]
project-kill-buffers-display-buffer-list: Fix :package-version value

* lisp/progmodes/project.el (project-kill-buffers-display-buffer-list):
Fix :package-version value.

2 years agoAdd 'comint-mode' and 'change-log-mode' to project-kill-buffer-conditions
Dmitry Gutov [Tue, 14 Dec 2021 23:57:20 +0000 (02:57 +0300)]
Add 'comint-mode' and 'change-log-mode' to project-kill-buffer-conditions

* lisp/progmodes/project.el (project-kill-buffer-conditions):
Add 'comint-mode' and 'change-log-mode' to the list (bug#52465).

2 years agoeieio-compat.el: Move to lisp/obsolete
Stefan Monnier [Tue, 14 Dec 2021 22:01:34 +0000 (17:01 -0500)]
eieio-compat.el: Move to lisp/obsolete

The file only contains obsolete definitions, so it really belongs in
`lisp/obsolete`.  Moving it there will also signal a warning for those
people who run old `.elc` files using EIEIO and generated with
Emacs<25 and who otherwise might not know about the obsolescence of
some of the functions they use.

* lisp/emacs-lisp/eieio-compat.el: Move to ...
* lisp/obsolete/eieio-compat.el: ... here.

2 years agoPrefer command remapping in allout.el
Stefan Kangas [Tue, 14 Dec 2021 19:19:32 +0000 (20:19 +0100)]
Prefer command remapping in allout.el

* lisp/allout.el (allout-compose-and-institute-keymap): Use command
remapping instead of substitute-key-definition.

2 years agoFix ert.texi error from previous change
Lars Ingebrigtsen [Tue, 14 Dec 2021 15:28:02 +0000 (16:28 +0100)]
Fix ert.texi error from previous change

* doc/misc/ert.texi (Running Tests in Batch Mode): Fix @r command.

2 years ago* lisp/net/eudc.el (custom-menu-create): Remove unnecessary autoload.
Stefan Kangas [Tue, 14 Dec 2021 15:10:43 +0000 (16:10 +0100)]
* lisp/net/eudc.el (custom-menu-create): Remove unnecessary autoload.

2 years agoRemove Emacs 21 compat code for command-remapping
Stefan Kangas [Tue, 14 Dec 2021 11:35:57 +0000 (12:35 +0100)]
Remove Emacs 21 compat code for command-remapping

* lisp/arc-mode.el (archive-mode-map):
* lisp/obsolete/iswitchb.el (iswitchb-global-map): Remove Emacs 21
compat code.

2 years agoMinor Tramp cleanup
Michael Albinus [Tue, 14 Dec 2021 13:40:18 +0000 (14:40 +0100)]
Minor Tramp cleanup

* lisp/net/tramp.el (tramp-get-buffer-string): Simplify.
(tramp-lock-pid): Fix docstring.

2 years agoExplain JUnit test reports in ert doc
Michael Albinus [Tue, 14 Dec 2021 13:39:53 +0000 (14:39 +0100)]
Explain JUnit test reports in ert doc

* doc/misc/ert.texi (Running Tests in Batch Mode): Explain
generation of JUnit test reports.

2 years agoUse defvar-keymap in elisp-mode.el
Stefan Kangas [Tue, 14 Dec 2021 11:27:57 +0000 (12:27 +0100)]
Use defvar-keymap in elisp-mode.el

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-map)
(elisp--dynlex-modeline-map, lisp-interaction-mode-map): Use
defvar-keymap.

2 years agoPrefer command remapping in cperl-mode.el
Stefan Kangas [Tue, 14 Dec 2021 03:41:45 +0000 (04:41 +0100)]
Prefer command remapping in cperl-mode.el

* lisp/progmodes/cperl-mode.el (cperl-mode-map): Use command remapping
instead of substitute-key-definition.

2 years agoRemove maintainer comment from Emacs 28 module snippet.
Philipp Stephani [Tue, 14 Dec 2021 10:17:37 +0000 (11:17 +0100)]
Remove maintainer comment from Emacs 28 module snippet.

This is the same as 44c13eefe8d30841000a96d82f467fb8d222e365 on
master.  We should also remove this comment on the release branch,
otherwise it ends up in the emacs-module.h shipped to users.

* src/module-env-28.h: Remove maintainer comment.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 14 Dec 2021 09:43:16 +0000 (17:43 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoOnly allow SQLite extensions from an allowlist
Lars Ingebrigtsen [Tue, 14 Dec 2021 08:29:06 +0000 (09:29 +0100)]
Only allow SQLite extensions from an allowlist

* src/sqlite.c (Fsqlite_load_extension): Only allow extensions
from an allowlist.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 14 Dec 2021 05:31:37 +0000 (06:31 +0100)]
Merge from origin/emacs-28

3607508f3f Set calc-make-windows-dedicated to nil by default
9de8eec3bc * make-dist: Don't run "make --question info".  (Bug#52322)
cea8deea72 ; * src/xdisp.c (move_it_vertically_backward): Clarify com...
6170c5036e Fix regression in help-mode prompt

# Conflicts:
# etc/NEWS

2 years agoSet calc-make-windows-dedicated to nil by default
Stefan Kangas [Tue, 14 Dec 2021 02:38:11 +0000 (03:38 +0100)]
Set calc-make-windows-dedicated to nil by default

* lisp/calc/calc.el (calc-make-windows-dedicated):
Default to nil.  (Bug#52016)

2 years ago* make-dist: Don't run "make --question info". (Bug#52322)
Stefan Kangas [Tue, 14 Dec 2021 02:08:37 +0000 (03:08 +0100)]
* make-dist: Don't run "make --question info".  (Bug#52322)

2 years agocompletion.el: Make two compat aliases obsolete
Stefan Kangas [Tue, 14 Dec 2021 01:16:41 +0000 (02:16 +0100)]
completion.el: Make two compat aliases obsolete

* lisp/completion.el (cmpl-syntax-table, initialize-completions):
Make compat aliases obsolete.

2 years ago; * src/xdisp.c (move_it_vertically_backward): Clarify commentary.
Eli Zaretskii [Mon, 13 Dec 2021 19:02:38 +0000 (21:02 +0200)]
; * src/xdisp.c (move_it_vertically_backward): Clarify commentary.

2 years ago; Add a FIXME regarding the GMP memory allocation functions.
Philipp Stephani [Mon, 13 Dec 2021 17:28:13 +0000 (18:28 +0100)]
; Add a FIXME regarding the GMP memory allocation functions.

* src/bignum.c (init_bignum): Add a warning about the technically
incorrect use of the GMP memory allocation functions.

2 years agoERT can generate JUnit test reports
Michael Albinus [Mon, 13 Dec 2021 15:09:56 +0000 (16:09 +0100)]
ERT can generate JUnit test reports

* .gitignore: Add test/**/*.xml.

* admin/notes/emba: Mention JUnit test report.

* etc/NEWS: ERT can generate JUnit test reports.

* lisp/emacs-lisp/ert.el (xml-escape-string): Autoload.
(ert-write-junit-test-report)
(ert-write-junit-test-summary-report): New defuns.
(ert-run-tests-batch, ert-summarize-tests-batch-and-exit): Call them.

* test/Makefile.in (clean): Remove *.xml.

* test/README: Mention $EMACS_TEST_JUNIT_REPORT environment variable.

* test/infra/Makefile.in ($(FILE)): Generate header commentary.
(clean): Remove.

* test/infra/gitlab-ci.yml (variables): Set EMACS_TEST_JUNIT_REPORT.
(.job-template): Use it in script and after_script.
(.build-template, .gnustep-template, .filenotify-gio-template)
(.native-comp-template): Adapt rules.
(.test-template): Trigger JUnit test report.

* test/infra/test-jobs.yml: Regenerate.

2 years agoMake alias obsolete in xscheme.el
Stefan Kangas [Mon, 13 Dec 2021 14:57:54 +0000 (15:57 +0100)]
Make alias obsolete in xscheme.el

* lisp/progmodes/xscheme.el (xscheme-yank-previous-send): Make
obsolete.

2 years agoMake two aliases obsolete in lisp/international/robin.el
Stefan Kangas [Mon, 13 Dec 2021 14:57:04 +0000 (15:57 +0100)]
Make two aliases obsolete in lisp/international/robin.el

* lisp/international/robin.el (robin-transliterate-region)
(robin-transliterate-buffer): Make obsolete.

2 years ago* lisp/emacs-lisp/generator.el (iter-yield): Simplify
Stefan Monnier [Mon, 13 Dec 2021 14:31:49 +0000 (09:31 -0500)]
* lisp/emacs-lisp/generator.el (iter-yield): Simplify

2 years agolisp/pcomplete.el: Mark obsolete some unused functions
Stefan Monnier [Mon, 13 Dec 2021 14:29:42 +0000 (09:29 -0500)]
lisp/pcomplete.el: Mark obsolete some unused functions

* lisp/pcomplete.el (pcomplete-match-beginning, pcomplete-match-end):
Mark as obsolete.
(pcomplete-opt, pcomplete--here, pcomplete--help): Use lexical-binding.

2 years agoFix regression in help-mode prompt
Eli Zaretskii [Mon, 13 Dec 2021 13:51:38 +0000 (15:51 +0200)]
Fix regression in help-mode prompt

* lisp/help-macro.el (make-help-screen): Restore SPC and DEL in
prompt.  Reported by Colin Baxter <m43cap@yandex.com>.

2 years ago* src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE.
Eli Zaretskii [Mon, 13 Dec 2021 13:35:31 +0000 (15:35 +0200)]
* src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE.

2 years ago* lisp/ielm.el (ielm-map): Use defvar-keymap.
Stefan Kangas [Mon, 13 Dec 2021 13:14:19 +0000 (14:14 +0100)]
* lisp/ielm.el (ielm-map): Use defvar-keymap.

2 years ago* lisp/ielm.el (ielm-header): Show key binding for describe-mode.
Stefan Kangas [Mon, 13 Dec 2021 01:54:32 +0000 (02:54 +0100)]
* lisp/ielm.el (ielm-header): Show key binding for describe-mode.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Mon, 13 Dec 2021 05:32:53 +0000 (13:32 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 13 Dec 2021 05:30:58 +0000 (06:30 +0100)]
Merge from origin/emacs-28

9bd3f78645 Make `M-x run-python' select the window again
62139aeb42 * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' ...
ea8422204f * make-dist (manifest): Filter out msdos/autogen/* files.
b5354e989d Rewrite the "Quitting Windows" section of Emacs Lisp Refer...
64ea1a178c Fix eshell for systems that do not have subprocesses

2 years agoAdd a new `sqlite-pragma' command
Lars Ingebrigtsen [Mon, 13 Dec 2021 05:08:09 +0000 (06:08 +0100)]
Add a new `sqlite-pragma' command

* doc/lispref/text.texi (Database): Document it.
* src/sqlite.c (Fsqlite_pragma): Add a separate command for
pragmas.  These can be done via sqlite-execute, but it's less
confusing to have them in a separate command.

2 years agoIntroduce a new sqlite-locked-error
Lars Ingebrigtsen [Mon, 13 Dec 2021 04:38:29 +0000 (05:38 +0100)]
Introduce a new sqlite-locked-error

* src/sqlite.c (Fsqlite_execute): Use it.
(syms_of_sqlite): Introduce a new error for locked databases so
that we can catch that condition on higher levels.

2 years agoMake `M-x run-python' select the window again
Kévin Le Gouguec [Mon, 13 Dec 2021 04:17:00 +0000 (05:17 +0100)]
Make `M-x run-python' select the window again

Interactively, we want M-x run-python to focus the interpreter buffer.
The previous code failed in two ways:

- the call to 'display-buffer' was not reached if an interpreter
  was already running,

- set-buffer is ineffectual if the interpreter's window is not
  selected: once Emacs returns to the command loop, the current buffer
  will revert back to what the selected window contains.

* lisp/progmodes/python.el (python-shell-make-comint): Handle the SHOW
argument regardless of whether an interpreter buffer exists, and use
pop-to-buffer to select the window.
(run-python): Delegate buffer management to
'python-shell-make-comint'.

* test/lisp/progmodes/python-tests.el
(python-tests--run-python-selects-window): Rename from
'python-tests--bug31398', and adjust assertions (bug#52380).

2 years agoWork around pixel scrolling issues when org-indent-mode is on
Po Lu [Mon, 13 Dec 2021 01:59:39 +0000 (09:59 +0800)]
Work around pixel scrolling issues when org-indent-mode is on

* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Subtract line height of window start when it doesn't appear
at the 0th pixel of the line.

2 years agoStop using XI focus events on non-GTK builds
Po Lu [Mon, 13 Dec 2021 01:17:55 +0000 (09:17 +0800)]
Stop using XI focus events on non-GTK builds

* src/xfns.c (setup_xi_event_mask): Stop setting XI_FocusIn
and XI_FocusOut.
* src/xterm.c (x_detect_focus_change) <GenericEvent>: Don't
handle XI_FocusIn and XI_FocusOut events when not on GTK.

2 years ago; * etc/NEWS: Add 'char-fold-override' (bug#52394).
Juri Linkov [Sun, 12 Dec 2021 19:58:53 +0000 (21:58 +0200)]
; * etc/NEWS: Add 'char-fold-override' (bug#52394).

2 years ago* lisp/char-fold.el (char-fold-override): Doc fix.
Eli Zaretskii [Sun, 12 Dec 2021 19:34:57 +0000 (21:34 +0200)]
* lisp/char-fold.el (char-fold-override): Doc fix.

2 years ago* lisp/char-fold.el (char-fold-override): New defcustom (bug#52394).
Juri Linkov [Sun, 12 Dec 2021 19:11:47 +0000 (21:11 +0200)]
* lisp/char-fold.el (char-fold-override): New defcustom (bug#52394).

(char-fold--default-override): New defconst with the default value nil.
(char-fold--previous): Add char-fold--default-override.
(char-fold--make-table): Don't populate the table with default chars
when char-fold-override or char-fold--default-override is non-nil.
(char-fold-update-table): Add char-fold--default-override.