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

152638 commits

Author SHA1 Message Date
Po Lu
aab2477516 Prevent GDK from handling emulated button events
* src/xterm.c (handle_one_xevent): Drop emulated button events.
2021-12-15 10:34:51 +08:00
Po Lu
861eee4241 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.
2021-12-15 10:27:27 +08:00
Dmitry Gutov
ad768d767b project-kill-buffers-display-buffer-list: Fix :package-version value
* lisp/progmodes/project.el (project-kill-buffers-display-buffer-list):
Fix :package-version value.
2021-12-15 02:58:45 +03:00
Dmitry Gutov
38977b6134 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).
2021-12-15 02:57:20 +03:00
Stefan Monnier
0cc2c2dcdb 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.
2021-12-14 17:01:34 -05:00
Stefan Kangas
75eac285af Prefer command remapping in allout.el
* lisp/allout.el (allout-compose-and-institute-keymap): Use command
remapping instead of substitute-key-definition.
2021-12-14 20:19:32 +01:00
Lars Ingebrigtsen
71ff4b97ab Fix ert.texi error from previous change
* doc/misc/ert.texi (Running Tests in Batch Mode): Fix @r command.
2021-12-14 16:28:02 +01:00
Stefan Kangas
e07d69e2dc * lisp/net/eudc.el (custom-menu-create): Remove unnecessary autoload. 2021-12-14 16:10:54 +01:00
Stefan Kangas
8704165197 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.
2021-12-14 16:10:54 +01:00
Michael Albinus
78a9d151b5 Minor Tramp cleanup
* lisp/net/tramp.el (tramp-get-buffer-string): Simplify.
(tramp-lock-pid): Fix docstring.
2021-12-14 14:40:18 +01:00
Michael Albinus
6a48ef0cbe Explain JUnit test reports in ert doc
* doc/misc/ert.texi (Running Tests in Batch Mode): Explain
generation of JUnit test reports.
2021-12-14 14:39:53 +01:00
Stefan Kangas
1d67bbf6c9 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.
2021-12-14 12:27:57 +01:00
Stefan Kangas
b86ab35972 Prefer command remapping in cperl-mode.el
* lisp/progmodes/cperl-mode.el (cperl-mode-map): Use command remapping
instead of substitute-key-definition.
2021-12-14 12:27:54 +01:00
Lars Ingebrigtsen
8c0f9be0d1 Only allow SQLite extensions from an allowlist
* src/sqlite.c (Fsqlite_load_extension): Only allow extensions
from an allowlist.
2021-12-14 09:29:13 +01:00
Stefan Kangas
b8e6beaab0 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
2021-12-14 06:31:37 +01:00
Stefan Kangas
3607508f3f Set calc-make-windows-dedicated to nil by default
* lisp/calc/calc.el (calc-make-windows-dedicated):
Default to nil.  (Bug#52016)
2021-12-14 03:40:10 +01:00
Stefan Kangas
9de8eec3bc * make-dist: Don't run "make --question info". (Bug#52322) 2021-12-14 03:08:37 +01:00
Stefan Kangas
855f1bd176 completion.el: Make two compat aliases obsolete
* lisp/completion.el (cmpl-syntax-table, initialize-completions):
Make compat aliases obsolete.
2021-12-14 02:16:41 +01:00
Eli Zaretskii
cea8deea72 ; * src/xdisp.c (move_it_vertically_backward): Clarify commentary. 2021-12-13 21:02:38 +02:00
Philipp Stephani
ae169bda2c ; 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.
2021-12-13 18:28:13 +01:00
Michael Albinus
b30b33ed9b 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.
2021-12-13 16:09:56 +01:00
Stefan Kangas
c1476afb99 Make alias obsolete in xscheme.el
* lisp/progmodes/xscheme.el (xscheme-yank-previous-send): Make
obsolete.
2021-12-13 15:58:49 +01:00
Stefan Kangas
7c4c72fa52 Make two aliases obsolete in lisp/international/robin.el
* lisp/international/robin.el (robin-transliterate-region)
(robin-transliterate-buffer): Make obsolete.
2021-12-13 15:58:49 +01:00
Stefan Monnier
0c24ccc9d8 * lisp/emacs-lisp/generator.el (iter-yield): Simplify 2021-12-13 09:32:01 -05:00
Stefan Monnier
c952f8b059 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.
2021-12-13 09:32:01 -05:00
Eli Zaretskii
6170c5036e 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>.
2021-12-13 15:51:38 +02:00
Eli Zaretskii
57efc5d1bb * src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE. 2021-12-13 15:35:31 +02:00
Stefan Kangas
38f782f48d * lisp/ielm.el (ielm-map): Use defvar-keymap. 2021-12-13 14:16:03 +01:00
Stefan Kangas
3a773cbbf5 * lisp/ielm.el (ielm-header): Show key binding for describe-mode. 2021-12-13 14:16:03 +01:00
Stefan Kangas
5640b055d6 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
2021-12-13 06:30:58 +01:00
Lars Ingebrigtsen
9ce0fe5ef4 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.
2021-12-13 06:08:09 +01:00
Lars Ingebrigtsen
c86b86f9a9 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.
2021-12-13 05:38:29 +01:00
Kévin Le Gouguec
9bd3f78645 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).
2021-12-13 05:17:00 +01:00
Po Lu
2f66010549 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.
2021-12-13 09:59:39 +08:00
Po Lu
5181276b43 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.
2021-12-13 09:17:55 +08:00
Juri Linkov
a07d954fe2 ; * etc/NEWS: Add 'char-fold-override' (bug#52394). 2021-12-12 21:58:53 +02:00
Eli Zaretskii
986ce367db * lisp/char-fold.el (char-fold-override): Doc fix. 2021-12-12 21:34:57 +02:00
Juri Linkov
242cdac3ad * 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.
2021-12-12 21:11:47 +02:00
Juri Linkov
62139aeb42 * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions.
https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01149.html
2021-12-12 20:25:54 +02:00
Eli Zaretskii
ea8422204f * make-dist (manifest): Filter out msdos/autogen/* files. 2021-12-12 20:20:51 +02:00
Juri Linkov
e4e9a7ce43 * lisp/startup.el: Let-bind browse-url-browser-function instead of setq-local
* lisp/startup.el (fancy-startup-text, fancy-about-text)
(fancy-splash-head, normal-about-screen): Let-bind browse-url-browser-function
to eww-browse-url around functions that use browse-url.
(fancy-startup-screen, fancy-about-screen): Don't set buffer-local
browse-url-browser-function.
https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg00939.html
2021-12-12 19:48:40 +02:00
Po Lu
0ee1a46e6c Fix overline display over stretch glyphs with box on NS
* src/nsterm.m (ns_dumpglyphs_stretch): Don't draw text
decorations when there is a box.
(ns_draw_glyph_string): Draw text decorations after the box
in stretch glyph that have one.
2021-12-12 21:33:56 +08:00
Po Lu
5bc785d81c Fix overline display when there is a box
* src/w32term.c (w32_draw_glyph_string):
* src/xterm.c (x_draw_glyph_string): Draw box before any text
decorations.
2021-12-12 21:05:35 +08:00
Richard Stallman
b5354e989d Rewrite the "Quitting Windows" section of Emacs Lisp Reference
* doc/lispref/windows.texi (Quitting Windows): Rewrite for
clarity.  (Bug#52328)
2021-12-12 15:04:43 +02:00
Lars Ingebrigtsen
194556425f Really fix the etags TEX parsing
* lib-src/etags.c (TEX_decode_env): Re-fix off-by-one parsing of
TEXTAGS environment variable (bug#52438).
2021-12-12 11:45:11 +01:00
Lars Ingebrigtsen
bdfd83e42d Fix an off-by-one error in TEX parsing in etags
* lib-src/etags.c (TEX_decode_env): Fix off-by-one parsing of
TEXTAGS environment variable (bug#52438).  Based on a patch by
David Fussner <dfussner@googlemail.com> and amended by Andreas
Schwab <schwab@linux-m68k.org>.
2021-12-12 11:26:22 +01:00
Lars Ingebrigtsen
6c9adafa93 Check for support in sqlite-mode-open-file
* lisp/sqlite-mode.el (sqlite-mode-open-file): Error out earlier
when we don't have sqlite support.
2021-12-12 10:22:58 +01:00
Stefan Kangas
8faada1f5a eshell: Prefer octal number for file modes
* lisp/eshell/esh-util.el (eshell-private-file-modes)
(eshell-private-directory-modes): Prefer octal number for file modes.
2021-12-12 09:12:14 +01:00
Stefan Kangas
e29c904a0a ; * lisp/emacs-lisp/shortdoc.el (keymaps): Fix typo. 2021-12-12 09:04:47 +01:00
Po Lu
64ea1a178c Fix eshell for systems that do not have subprocesses
* lisp/eshell/esh-cmd.el (eshell-eval-command): Use
`eshell-processp' instead of `processp'.
2021-12-12 15:50:28 +08:00