Mattias Engdegård
60102016e4
Abolish max-specpdl-size (bug#57911)
...
The max-lisp-eval-depth limit is sufficient to prevent unbounded stack
growth including the specbind stack; simplify matters for the user by
not having them to worry about two different limits. This change
turns max-specpdl-size into a harmless variable with no effects,
to keep existing code happy.
* lisp/subr.el (max-specpdl-size):
Define as an ordinary (but obsolete) dynamic variable.
* admin/grammars/Makefile.in:
* doc/lispintro/emacs-lisp-intro.texi (Loops & Recursion):
* doc/lispref/control.texi (Cleanups):
* doc/lispref/edebug.texi (Checking Whether to Stop):
* doc/lispref/eval.texi (Eval):
* doc/lispref/variables.texi (Local Variables):
* doc/misc/calc.texi (Recursion Depth):
Update documentation.
* etc/NEWS: Announce.
* src/eval.c
(FletX): Use safe iteration to guard against circular bindings list.
(syms_of_eval): Remove old max-specpdl-size definition.
(init_eval_once, restore_stack_limits, call_debugger)
(signal_or_quit, grow_specpdl_allocation):
* leim/Makefile.in:
* lisp/Makefile.in:
* lisp/calc/calc-stuff.el (calc-more-recursion-depth)
(calc-less-recursion-depth):
* lisp/calc/calc.el (calc-do):
* lisp/cedet/semantic/ede-grammar.el (ede-proj-makefile-insert-rules):
* lisp/cedet/semantic/grammar.el (semantic-grammar-batch-build-one-package):
* lisp/cus-start.el (standard):
* lisp/emacs-lisp/comp.el (comp--native-compile):
* lisp/emacs-lisp/edebug.el (edebug-max-depth):
(edebug-read-and-maybe-wrap-form, edebug-default-enter):
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
* lisp/eshell/esh-mode.el (eshell-mode):
* lisp/loadup.el (max-specpdl-size):
* lisp/mh-e/mh-e.el (mh-invisible-headers):
* lisp/net/shr.el (shr-insert-document, shr-descend):
* lisp/play/hanoi.el (hanoi-internal):
* lisp/progmodes/cperl-mode.el:
* src/fileio.c (Fdo_auto_save):
Remove references to and modifications of max-specpdl-size.
2022-09-19 19:30:03 +02:00
Stefan Kangas
a7c65fc666
Allow nil value for filter-buffer-substring-function
...
* lisp/simple.el
(filter-buffer-substring): Support a nil value to be more resilient.
(filter-buffer-substring-function): Doc fix; improve and update for
above change.
2022-09-19 16:55:55 +02:00
Stefan Kangas
ba0e989c11
Support imenu in emacs-news-mode
...
* lisp/outline.el (outline-imenu-generic-expression): New variable
broken out from...
(outline-mode): ...here.
* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common): Use
above new variable to add imenu support.
2022-09-19 16:02:28 +02:00
Eli Zaretskii
cd2168cd13
Fix 'posn-at-point' around several 'display' properties
...
* src/xdisp.c (pos_visible_p): Fix the case when CHARPOS is hidden
by a display property, and its neighbors are also hidden.
(Bug#45915)
2022-09-19 16:24:44 +03:00
Stefan Monnier
c464bcb20a
* doc/misc/eieio.texi (Introduction, Generics): Remove outdated limits
...
Reported by Hokomo <hokomo@airmail.cc>.
2022-09-19 07:39:29 -04:00
Philipp Stephani
a71de4b52d
Improve check for misleading 'cl-case' cases (Bug#57915).
...
* lisp/emacs-lisp/cl-macs.el (cl-case): Check that the case is of the
form (quote FOO), not just (quote).
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-case-no-warning): New unit test.
2022-09-19 13:34:51 +02:00
Stefan Kangas
f735aa0f39
Prefer DE specific commands to set wallpaper
...
* lisp/image/wallpaper.el (wallpaper--default-commands): Rearrange
order to prioritize desktop environment specific commands before
general Wayland commands like "wbg" or even "swaybg". (Bug#57781)
2022-09-19 11:39:03 +02:00
Stefan Kangas
97679d06e8
Avoid an unnecessary call to intern
...
* src/doc.c (Fdocumentation): Prefer DEFSYM to using intern directly.
2022-09-19 11:38:49 +02:00
Daniel Pettersson
899055eef5
Fix eshell directory and executable completion on action t
...
* lisp/eshell/em-cmpl.el (eshell--pcomplete-executables): New
function (bug#57905).
(eshell--complete-commands-list): Use it.
Copyright-paperwork-exempt: yes
2022-09-19 10:22:55 +02:00
Gregory Heytings
f12111af40
; * Makefile.in: Fix typo.
2022-09-19 09:50:03 +02:00
Lars Ingebrigtsen
a537814709
Don't save bookmark context from encrypted files
...
* doc/emacs/regs.texi (Bookmarks): Mention this.
* lisp/bookmark.el (bookmark-make-record): Don't include context
in encrypted files (bug#57856).
* lisp/epa-hook.el (epa-file-name-p): New function.
2022-09-19 09:43:05 +02:00
Gregory Heytings
3fd2b00a4b
; * Makefile.in: Add "make bootstrap configure=default" as a first choice.
2022-09-19 09:40:28 +02:00
Gregory Heytings
5a8e2dedf5
Revert 60de98f6f0 and b2d419ed5b.
2022-09-19 09:38:58 +02:00
Po Lu
60de98f6f0
* Makefile.in: Readd warnings about "git clean -fdx"
2022-09-19 15:20:25 +08:00
Po Lu
b2d419ed5b
Revert "; * Makefile.in: Partly revert 5b3c4004a9."
...
This reverts commit e54da280ff .
2022-09-19 15:19:23 +08:00
Lars Ingebrigtsen
a39e03d7cd
make gen-clean remove some newly-added generated files
...
* admin/unidata/Makefile.in (gen-clean): Remove some newly-added
generated files.
2022-09-19 09:06:31 +02:00
Gregory Heytings
e54da280ff
; * Makefile.in: Partly revert 5b3c4004a9.
2022-09-19 08:40:28 +02:00
Stefan Kangas
731c453b03
Merge from origin/emacs-28
...
a2f9788cbc ; Minor copyedits of *-frame-alist doc strings
c200098dde ; * src/intervals.c (get_local_map): Fix commentary.
69cc3d38bc Fix Tramp error with eshell integration
2022-09-19 06:31:49 +02:00
Po Lu
5b3c4004a9
Remove calls to intern with a static string from code that runs on X
...
* Makefile.in (actual-all): Reword build failure advice.
* src/bytecode.c (exec_byte_code, syms_of_bytecode):
* src/font.c (syms_of_font):
* src/hbfont.c (uni_combining):
* src/xfns.c (Fx_display_backing_store, Fx_display_visual_class)
(x_create_tip_frame, Fx_show_tip, syms_of_xfns):
* src/xfont.c (xfont_supported_scripts, xfont_driver)
(syms_of_xfont):
* src/xsmfns.c (Fhandle_save_session, syms_of_xsmfns): Remove
calls to intern with a static string.
2022-09-19 10:01:52 +08:00
Po Lu
202c416e2e
Get rid of intern calls to static strings in xterm.c
...
* src/xterm.c (x_cr_export_frames): Use Qconcat instead of
interning concat.
(syms_of_xterm): New defsym Qconcat.
2022-09-19 09:39:21 +08:00
Po Lu
a5405e5644
Fix GC protection of scroll bar windows
...
* src/xterm.c (x_atom_refs): Add _EMACS prefix to
vendor-specific scroll-bar atoms.
(handle_one_xevent): Unprotect windows immediately upon
receiving an _EMACS_SCROLLBAR event, instead of waiting for the
event to be put on the keyboard buffer. Reported by martin
rudalics <rudalics@gmx.at>.
2022-09-19 09:36:44 +08:00
Gregory Heytings
7c8a131984
Display a help message when building Emacs failed.
...
* Makefile.in (actual-all): New target, replacing the former 'all'
target.
(advice-on-failure, sanity-check): New targets.
(all): Use the new targets.
(bootstrap-all): New target, identical to 'all' but meant for the
'bootstrap' target in GNUmakefile.
(actual-bootstrap): New target, replacing the former 'bootstrap'
target. Use the 'actual-all' target instead of the 'all' target.
(bootstrap): Use the new targets.
* GNUmakefile (bootstrap): Use the new 'bootstrap-all' target.
2022-09-18 23:35:57 +02:00
Eli Zaretskii
a2f9788cbc
; Minor copyedits of *-frame-alist doc strings
...
* src/frame.c (syms_of_frame) <default-frame-alist>:
* lisp/frame.el (initial-frame-alist): Minor doc fixes.
2022-09-18 20:21:58 +03:00
Eli Zaretskii
c200098dde
; * src/intervals.c (get_local_map): Fix commentary.
2022-09-18 19:59:58 +03:00
Stefan Kangas
1bdac41e4d
Prefer using DEFSYMs to intern with wrong_type_argument
...
* src/data.c (syms_of_data) <Qbooleanp>:
* src/fileio.c (syms_of_fileio) <Qinserted_chars, Qfile_offset>:
* src/font.c (syms_of_font) <Qfont_extra_type>: New DEFSYMs.
* src/dbusbind.c (xd_signature, xd_append_arg):
* src/fileio.c (file_offset, Finsert_file_contents):
* src/font.c (Ffontp): Prefer using above new DEFSYMs to using intern
directly.
2022-09-18 18:55:19 +02:00
Eli Zaretskii
e27d9a46dc
; Fix doc strings in osc.el
...
* lisp/osc.el (osc-filter-region, osc-apply-on-region)
(osc-window-title-handler, osc-directory-tracker)
(osc-hyperlink-handler, osc-for-compilation-buffer)
(osc-compilation-filter): Fix doc strings.
`
2022-09-18 19:09:54 +03:00
Eli Zaretskii
242fca62c2
; * etc/NEWS: Fix typos and punctuation in OSC entry.
2022-09-18 18:56:30 +03:00
Michael Albinus
e5aeb5eaec
Minor Tramp cleanups
...
* lisp/net/tramp-compat.el (tramp-compat-rx): Declare.
* lisp/net/tramp-integration.el (info-lookup-maybe-add-help):
Fix `rx' call.
2022-09-18 16:53:49 +02:00
Michael Heerdegen
baf1a7a4a0
Turn gv-synthetic-place into a function
...
This fixes Bug#57397.
* lisp/emacs-lisp/gv.el (gv-synthetic-place): Make a function and add
trivial compiler macro to avoid decreasing efficiency.
2022-09-18 15:48:50 +02:00
Matthias Meulien
57cc85f058
Add NEWS entry for osc.el (bug#57821)
2022-09-18 15:46:18 +02:00
Lars Ingebrigtsen
9afe0de266
Fix osc.el compilation warning
...
* lisp/osc.el (compilation-filter-start): Avoid compilation warning.
2022-09-18 14:51:37 +02:00
Matthias Meulien
c791f36698
OSC escape sequences filter for compilation buffer
...
* lisp/osc.el (osc-control-seq-regexp): Regexp matching OSC control sequence.
(osc-filter-region): Filter out OSC control sequences from region.
(osc-for-compilation-buffer): Determines what to do with OSC escape
sequences in compilation output.
(osc-compilation-filter): Implement OSC escape sequence handling for
compilation output (bug#57821).
2022-09-18 14:50:17 +02:00
Matthias Meulien
530fdab880
Handle OSC command to set window title
...
* lisp/osc.el (osc-handlers): Bind osc-window-title-handler to OSC
command 2.
(osc-window-title): Local variable storing string extracted from OSC
command 2.
(osc-window-title-handler): Copy text from OSC command 2 to
osc-window-title (bug#57821).
2022-09-18 14:50:01 +02:00
Matthias Meulien
7354f4e3e6
Extract support of OSC escape sequences from comint
...
* lisp/comint.el (osc): Now requires osc.el.
(comint-osc-directory-tracker): Alias to osc-directory-tracker.
(comint-osc-hyperlink-handler): Alias to osc-hyperlink-handler.
(comint-osc-hyperlink-map): Alias to osc-hyperlink-map.
(comint-osc-handlers): Alias to osc-handlers.
(comint-osc-hyperlink): Alias to osc-hyperlink.
(comint-osc-process-output): Rewritten to call osc-apply-on-region.
* lisp/osc.el (osc-handlers): Clone comint-osc-handlers.
(osc--marker): Clone comint-osc--marker.
(osc-apply-on-region): Implementation taken from comint-osc-process-output.
(osc-directory-tracker): Clone from comint-osc-directory-tracker.
(osc-hyperlink-map): Clone from comint-osc-hyperlink-map.
(osc-hyperlink): Clone from comint-osc-hyperlink.
(osc-hyperlink--state): Clone from comint-osc-hyperlink--state.
(osc-hyperlink-handler): Clone from comint-osc-hyperlink-handler.
* test/lisp/osc-tests.el (osc): Test osc-apply-region (bug#57821).
2022-09-18 14:49:27 +02:00
Lars Ingebrigtsen
39cc0c2f23
Improve the initial-frame-alist doc string
...
* lisp/frame.el (initial-frame-alist): Clarify how to set this
variable (bug#57890).
2022-09-18 13:20:51 +02:00
Lars Ingebrigtsen
62b1e3b1f3
Restore the point after aborting an image crop
...
* lisp/image/image-crop.el (image-crop): Restore point after
aborted cropping (bug#57874).
2022-09-18 13:10:02 +02:00
Augusto Stoffel
5332e4fecb
pulse-momentary-highlight-one-line: Act on visual line
...
* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line): Act on
entire visual line, ignoring fields etc (bug#57876).
2022-09-18 13:01:23 +02:00
Augusto Stoffel
06618e9435
Remap 'up-list' in python-mode-map
...
* lisp/progmodes/python.el (python-mode-map): Remap 'up-list' to
'python-nav-up-list' (bug#57885).
2022-09-18 12:53:28 +02:00
Augusto Stoffel
af2a25aa19
Add new command python-shell-restart
...
* lisp/progmodes/python.el (python-shell-restart): New command (bug#57885).
2022-09-18 12:53:04 +02:00
Michael Albinus
69cc3d38bc
Fix Tramp error with eshell integration
...
* lisp/net/tramp-integration.el (tramp-eshell-directory-change):
Respect local `default-directory'. (Bug#57556)
2022-09-18 12:51:52 +02:00
Stefan Kangas
59e887f913
image-dired: Don't require subr-x
...
* lisp/image/image-dired-dired.el (subr-x):
* lisp/image/image-dired.el (subr-x): Don't require, since string-join
is now autoloaded.
2022-09-18 12:22:52 +02:00
Michael Albinus
d7c4532f7c
; Instrument filenotify-tests
...
Author:
2022-09-18 10:52:34 +02:00
Michael Albinus
67620c2a13
; Instrument filenotify-tests
2022-09-18 10:51:33 +02:00
Po Lu
25587ada2c
Remove what should be unnecessary calls to block_input
...
* src/xterm.c (handle_one_xevent): Do not block input inside.
This function is not reentrant and is always called with input
blocked.
2022-09-18 15:24:02 +08:00
Gerd Möllmann
117795a059
Fix possible null pointer access
...
* src/term.c (Ftty__output_buffer_size): Handle case of
decode_tty_terminal returning NULL.
2022-09-18 07:44:23 +02:00
Stefan Kangas
2f08c85d52
Merge from origin/emacs-28
...
50bb9ec84c ; * admin/admin.el (make-news-html-file): Fix typo.
2022-09-18 06:30:42 +02:00
Stefan Kangas
1afccbe71c
; Merge from origin/emacs-28
...
The following commit was skipped:
e2c3ce2402 Sync with Tramp 2.5.3.2. Don't merge with master
2022-09-18 06:30:42 +02:00
Sean Whitton
0a61a7c1fa
vc-do-command: Actually include "torsocks" in the command
...
* lisp/vc/vc-dispatcher.el (vc-do-command): When vc-tor is non-nil,
actually include "torsocks" in the command to be run (bug#57870).
2022-09-17 17:57:56 -07:00
Stefan Kangas
2f7139a15c
image-dired: Display image on double click
...
* lisp/image/image-dired.el (image-dired-thumbnail-mode-map):
Display image on 'double-mouse-1'.
2022-09-18 02:52:51 +02:00
Stefan Kangas
76e67cc85e
; image-dired: Fix last commit
...
* lisp/image/image-dired-external.el (image-dired-create-thumb-1): Fix
specification for format-spec.
* lisp/image/image-dired-external.el (image-dired-thumb-size):
Declare.
2022-09-18 02:48:47 +02:00