Stefan Kangas [Tue, 20 Sep 2022 08:27:10 +0000 (10:27 +0200)]
Use "set -o nounset" in bash scripts
* admin/automerge:
* admin/make-manuals:
* admin/update-copyright:
* admin/update_autogen:
* admin/upload-manuals: Use "set -o nounset".
Stefan Kangas [Tue, 20 Sep 2022 07:28:46 +0000 (09:28 +0200)]
Revert "Allow nil value for filter-buffer-substring-function"
This reverts commit
a7c65fc6660878e244432a5b25fb3a4ff20e8604.
Po Lu [Tue, 20 Sep 2022 03:00:10 +0000 (03:00 +0000)]
Remove intern calls with a static string from haiku*.c
* src/haikufns.c (Fx_show_tip, syms_of_haikufns):
* src/haikufont.c (haikufont_maybe_handle_special_family)
(syms_of_haikufont):
* src/haikuterm.c (haiku_term_init, syms_of_haikuterm): Replace
intern with real predefined symbols.
F. Jason Park [Wed, 7 Sep 2022 02:09:54 +0000 (19:09 -0700)]
Bury new ERC buffers by default
* lisp/erc/erc.el (erc-join-buffer): Change default value to `bury'.
(erc-setup-buffer): Make `window-noselect' behave more like its
description and abstain from ever replacing the current buffer.
* test/lisp/erc/erc-scenarios-base-reconnect.el
(erc-scenarios-common-base-reconnect-options): Update helper to handle
new default value for option `erc-join-buffer'.
(erc-scenarios-base-reconnect-options--buffer): Update and rename
function `erc-scenarios-base-reconnect-options--default'.
(erc-scenarios-base-reconnect-options--default): Update and rename
function `erc-scenarios-base-reconnect-options--bury'.
* etc/ERC-NEWS: Update existing display-buffers section for 5.5.
(Bug#51753)
F. Jason Park [Thu, 7 Jul 2022 02:57:11 +0000 (19:57 -0700)]
Offer to regexp-quote new items in erc-match commands
* lisp/erc/erc-match.el (erc-match-quote-when-adding) Add new option
to quote new items added to match lists.
(erc-add-entry-to-list): Add optional `alt' parameter indicating
whether to flip the behavior indicated by
`erc-match-quote-when-adding'.
(erc-add-pal, erc-add-fool, erc-add-keyword, erc-add-dangerous-host):
Pass universal arg to `erc-add-entry-to-list' as `alt' argument.
(erc-match-pal-p, erc-match-fool-p, erc-match-keyword-p,
erc-match-dangerous-host-p): Don't bother matching when list is nil.
* lisp/erc/erc.el (erc-list-match (lst str): Join input list as regexp
union instead of looping over items.
* etc/ERC-NEWS: Update misc-UX section for 5.5.
* test/lisp/erc/erc-match-tests.el: New file. (Bug#56450)
F. Jason Park [Sat, 3 Sep 2022 04:57:57 +0000 (21:57 -0700)]
Don't record undo history in erc-protocol buffers
* lisp/erc/erc.el (erc-log-irc-protocol): Disable undo history.
F. Jason Park [Wed, 17 Aug 2022 07:00:53 +0000 (00:00 -0700)]
Stabilize channels variant of erc-reuse-buffers test
* lisp/erc/erc-networks.el (erc-networks--id-sort-buffers): Use
`buffer-local-value' instead of `with-current-buffer'.
* test/lisp/erc/erc-scenarios-base-reuse-buffers.el
(erc-scenarios-common--base-reuse-buffers-channel-buffers): Wait for
buffers to be created by server-initiated JOINs.
(erc-scenarios-base-reuse-buffers-channel-buffers--disabled): Remove
`:unstable' tag.
* test/lisp/erc-tests.el (erc-ring-previous-command): Remove
unnecessary `goto-char'.
F. Jason Park [Sun, 18 Sep 2022 21:42:01 +0000 (14:42 -0700)]
; Tag some ERC test-server tests as being :unstable
* test/lisp/erc/resources/base/assoc/samenet/chester.eld: Relax timeout.
* test/lisp/erc/resources/base/assoc/samenet/tester.eld: Relax timeout.
* test/lisp/erc/resources/base/assoc/samenet/tester2.eld: Relax timeout.
* test/lisp/erc/resources/base/netid/samenet/chester.eld: Relax timeout.
* test/lisp/erc/resources/base/netid/samenet/tester.eld: Relax timeout.
* test/lisp/erc/resources/erc-d/erc-d-tests.el (erc-d-run-linger,
erc-d-run-linger-fail, erc-d-run-linger-direct): Mark some tests as
being unstable.
Stefan Monnier [Mon, 19 Sep 2022 20:19:44 +0000 (16:19 -0400)]
* lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): Fix bug#57903
Fall back to old slower calling convention in dynbound code (bug#56596).
Juri Linkov [Mon, 19 Sep 2022 20:12:17 +0000 (23:12 +0300)]
* lisp/outline.el (outline-open): Revert 'text' back to " open ".
(outline-close): Revert 'text' back to " close ".
(outline-close-rtl): Remove 'text' since it's inherited from the parent
'outline-close'.
Gregory Heytings [Mon, 19 Sep 2022 15:52:36 +0000 (15:52 +0000)]
Improve advices on build failures.
* Makefile.in: Mention "make extraclean; make". Mention mailing the
bugtracker among the possible choices. Fix typo.
Juri Linkov [Mon, 19 Sep 2022 19:35:51 +0000 (22:35 +0300)]
* lisp/outline.el (outline-minor-mode-use-margins): New user option.
(outline--use-margins, outline--use-buttons, outline--use-rtl):
New buffer-local internal variables.
(outline-open, outline-close): Move :ascent center to default of define-icon.
Use ASCII-art for text. Fix docstring and help-echo.
(outline-close-rtl, outline-open-in-margins)
(outline-close-in-margins, outline-close-rtl-in-margins): New icon
definitions.
(outline-minor-mode-highlight-buffer): Remove outline--insert-open-button
since initial outline--fix-up-all-buttons is added now to outline-minor-mode.
(outline-minor-mode): Set buffer-local outline--use-buttons,
outline--use-margins and outline--use-rtl. Show/hide margins for
outline--use-margins. Add hook after-change-functions for editable buffers.
Move outline--fix-up-all-buttons for both cases: font-lock and non-font-lock.
(outline--use-buttons-p): Remove function.
(outline--make-button-overlay): Use outline--use-rtl icon outline-close-rtl.
(outline--make-margin-overlay): New function.
(outline--insert-open-button, outline--insert-close-button): Add optional
arg 'use-margins'.
(outline--fix-up-all-buttons): Call outline--insert-close-button
and outline--insert-open-button with arg outline--use-margins.
(outline-cycle-buffer): Remove outline--fix-up-all-buttons
that is already called from outline-flag-region.
* lisp/emacs-lisp/icons.el (icons--create): Handle keywords :rotation
and :ascent with the default value 'center (bug#57813).
* doc/emacs/text.texi (Outline Mode): Mention outline-minor-mode-use-margins.
Michael Albinus [Mon, 19 Sep 2022 19:15:06 +0000 (21:15 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Matthias Meulien [Mon, 19 Sep 2022 18:47:00 +0000 (20:47 +0200)]
Minor touch-ups of some recent OSC stuff
* lisp/comint.el (comint-osc-handlers):
(comint-osc-hyperlink-map): Use defvaralias (bug#57821).
* lisp/osc.el: Fix some comments.
Mauro Aranda [Mon, 19 Sep 2022 18:36:53 +0000 (20:36 +0200)]
perl-mode: / is a regexp match if there's nothing before it
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
A "/" that starts the first statement is a regexp match. (Bug#997)
* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-997): New
test.
Mattias Engdegård [Mon, 19 Sep 2022 08:55:09 +0000 (10:55 +0200)]
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.
Stefan Kangas [Mon, 19 Sep 2022 14:54:19 +0000 (16:54 +0200)]
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.
Stefan Kangas [Mon, 19 Sep 2022 14:02:28 +0000 (16:02 +0200)]
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.
Eli Zaretskii [Mon, 19 Sep 2022 13:24:44 +0000 (16:24 +0300)]
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)
Stefan Monnier [Mon, 19 Sep 2022 11:39:21 +0000 (07:39 -0400)]
* doc/misc/eieio.texi (Introduction, Generics): Remove outdated limits
Reported by Hokomo <hokomo@airmail.cc>.
Philipp Stephani [Mon, 19 Sep 2022 11:34:51 +0000 (13:34 +0200)]
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.
Michael Albinus [Mon, 19 Sep 2022 09:39:29 +0000 (11:39 +0200)]
Revert change in Tramp inotifywait
* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Revert use of "-P", it doesn't exist in older inotifywait versions.
* test/lisp/filenotify-tests.el: Deactivate instrumentation.
Stefan Kangas [Mon, 19 Sep 2022 09:39:00 +0000 (11:39 +0200)]
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)
Stefan Kangas [Mon, 19 Sep 2022 09:06:01 +0000 (11:06 +0200)]
Avoid an unnecessary call to intern
* src/doc.c (Fdocumentation): Prefer DEFSYM to using intern directly.
Daniel Pettersson [Mon, 19 Sep 2022 08:21:59 +0000 (10:21 +0200)]
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
Gregory Heytings [Mon, 19 Sep 2022 07:50:03 +0000 (09:50 +0200)]
; * Makefile.in: Fix typo.
Lars Ingebrigtsen [Mon, 19 Sep 2022 07:42:28 +0000 (09:42 +0200)]
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.
Gregory Heytings [Mon, 19 Sep 2022 07:34:35 +0000 (07:34 +0000)]
; * Makefile.in: Add "make bootstrap configure=default" as a first choice.
Gregory Heytings [Mon, 19 Sep 2022 07:38:58 +0000 (09:38 +0200)]
Po Lu [Mon, 19 Sep 2022 07:20:25 +0000 (15:20 +0800)]
* Makefile.in: Readd warnings about "git clean -fdx"
Po Lu [Mon, 19 Sep 2022 07:19:23 +0000 (15:19 +0800)]
Revert "; * Makefile.in: Partly revert
5b3c4004a9."
This reverts commit
e54da280ff4bf458c437f87dd64e848cdc75479c.
Lars Ingebrigtsen [Mon, 19 Sep 2022 07:06:31 +0000 (09:06 +0200)]
make gen-clean remove some newly-added generated files
* admin/unidata/Makefile.in (gen-clean): Remove some newly-added
generated files.
Gregory Heytings [Mon, 19 Sep 2022 06:39:08 +0000 (06:39 +0000)]
; * Makefile.in: Partly revert
5b3c4004a9.
Stefan Kangas [Mon, 19 Sep 2022 04:31:49 +0000 (06:31 +0200)]
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
Po Lu [Mon, 19 Sep 2022 02:01:52 +0000 (10:01 +0800)]
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.
Po Lu [Mon, 19 Sep 2022 01:39:21 +0000 (09:39 +0800)]
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.
Po Lu [Mon, 19 Sep 2022 01:35:58 +0000 (09:35 +0800)]
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>.
Gregory Heytings [Sun, 18 Sep 2022 21:22:13 +0000 (21:22 +0000)]
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.
Eli Zaretskii [Sun, 18 Sep 2022 17:21:58 +0000 (20:21 +0300)]
; 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.
Eli Zaretskii [Sun, 18 Sep 2022 16:59:58 +0000 (19:59 +0300)]
; * src/intervals.c (get_local_map): Fix commentary.
Stefan Kangas [Sun, 18 Sep 2022 16:55:19 +0000 (18:55 +0200)]
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.
Eli Zaretskii [Sun, 18 Sep 2022 16:09:54 +0000 (19:09 +0300)]
; 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.
`
Eli Zaretskii [Sun, 18 Sep 2022 15:56:30 +0000 (18:56 +0300)]
; * etc/NEWS: Fix typos and punctuation in OSC entry.
Michael Albinus [Sun, 18 Sep 2022 14:53:49 +0000 (16:53 +0200)]
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.
Michael Heerdegen [Wed, 31 Aug 2022 01:13:09 +0000 (03:13 +0200)]
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.
Matthias Meulien [Sun, 18 Sep 2022 13:46:18 +0000 (15:46 +0200)]
Add NEWS entry for osc.el (bug#57821)
Lars Ingebrigtsen [Sun, 18 Sep 2022 12:51:37 +0000 (14:51 +0200)]
Fix osc.el compilation warning
* lisp/osc.el (compilation-filter-start): Avoid compilation warning.
Matthias Meulien [Sat, 17 Sep 2022 16:59:31 +0000 (18:59 +0200)]
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).
Matthias Meulien [Sat, 17 Sep 2022 15:54:24 +0000 (17:54 +0200)]
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).
Matthias Meulien [Sun, 18 Sep 2022 11:54:46 +0000 (13:54 +0200)]
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).
Lars Ingebrigtsen [Sun, 18 Sep 2022 11:20:51 +0000 (13:20 +0200)]
Improve the initial-frame-alist doc string
* lisp/frame.el (initial-frame-alist): Clarify how to set this
variable (bug#57890).
Lars Ingebrigtsen [Sun, 18 Sep 2022 11:10:02 +0000 (13:10 +0200)]
Restore the point after aborting an image crop
* lisp/image/image-crop.el (image-crop): Restore point after
aborted cropping (bug#57874).
Augusto Stoffel [Sun, 18 Sep 2022 11:01:23 +0000 (13:01 +0200)]
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).
Augusto Stoffel [Sun, 18 Sep 2022 10:53:28 +0000 (12:53 +0200)]
Remap 'up-list' in python-mode-map
* lisp/progmodes/python.el (python-mode-map): Remap 'up-list' to
'python-nav-up-list' (bug#57885).
Augusto Stoffel [Sun, 18 Sep 2022 10:53:04 +0000 (12:53 +0200)]
Add new command python-shell-restart
* lisp/progmodes/python.el (python-shell-restart): New command (bug#57885).
Michael Albinus [Sun, 18 Sep 2022 10:51:52 +0000 (12:51 +0200)]
Fix Tramp error with eshell integration
* lisp/net/tramp-integration.el (tramp-eshell-directory-change):
Respect local `default-directory'. (Bug#57556)
Stefan Kangas [Sun, 18 Sep 2022 10:12:44 +0000 (12:12 +0200)]
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.
Michael Albinus [Sun, 18 Sep 2022 08:52:34 +0000 (10:52 +0200)]
; Instrument filenotify-tests
Author:
Michael Albinus [Sun, 18 Sep 2022 08:51:33 +0000 (10:51 +0200)]
; Instrument filenotify-tests
Po Lu [Sun, 18 Sep 2022 07:23:42 +0000 (15:23 +0800)]
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.
Gerd Möllmann [Sun, 18 Sep 2022 05:44:23 +0000 (07:44 +0200)]
Fix possible null pointer access
* src/term.c (Ftty__output_buffer_size): Handle case of
decode_tty_terminal returning NULL.
Stefan Kangas [Sun, 18 Sep 2022 04:30:42 +0000 (06:30 +0200)]
Merge from origin/emacs-28
50bb9ec84c ; * admin/admin.el (make-news-html-file): Fix typo.
Stefan Kangas [Sun, 18 Sep 2022 04:30:42 +0000 (06:30 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
e2c3ce2402 Sync with Tramp 2.5.3.2. Don't merge with master
Sean Whitton [Fri, 16 Sep 2022 23:18:35 +0000 (16:18 -0700)]
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).
Stefan Kangas [Sun, 18 Sep 2022 00:17:31 +0000 (02:17 +0200)]
image-dired: Display image on double click
* lisp/image/image-dired.el (image-dired-thumbnail-mode-map):
Display image on 'double-mouse-1'.
Stefan Kangas [Sun, 18 Sep 2022 00:47:47 +0000 (02:47 +0200)]
; 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.
Stefan Kangas [Sun, 18 Sep 2022 00:10:01 +0000 (02:10 +0200)]
image-dired: Remove spurious message on C-<mouse-1>
* lisp/image/image-dired.el (image-dired-thumbnail-mode-map): Fix
spurious message about C-<down-mouse-1> being undefined.
Stefan Kangas [Sun, 18 Sep 2022 00:03:16 +0000 (02:03 +0200)]
; * lisp/image/image-dired.el: Use two spaces after period.
Stefan Kangas [Sat, 17 Sep 2022 23:53:57 +0000 (01:53 +0200)]
; * lisp/image/image-dired.el: Fix typo in last commit.
Stefan Kangas [Sat, 17 Sep 2022 22:21:12 +0000 (00:21 +0200)]
Increase image-dired-thumb-size to 128
* lisp/image/image-dired.el (image-dired-thumb-size): Increase default
to 128.
Stefan Kangas [Sat, 17 Sep 2022 20:14:31 +0000 (22:14 +0200)]
image-dired: Change some custom types to natnum
* lisp/image/image-dired.el (image-dired-thumb-size)
(image-dired-thumb-relief, image-dired-thumb-margin)
(image-dired-thumbs-per-row, image-dired-thumb-width)
(image-dired-thumb-height): Change :type to natnum.
Stefan Kangas [Sat, 17 Sep 2022 19:27:38 +0000 (21:27 +0200)]
Make `image-dired-thumb-(height|width)' obsolete
* lisp/image/image-dired.el (image-dired-thumb-width)
(image-dired-thumb-height): Make obsolete.
(image-dired-thumb-size): Clean up and improve docstring.
* lisp/image/image-dired-external.el (image-dired-thumb-size): Use
'image-dired-thumb-size' instead of above obsolete variables.
(image-dired-create-thumb-1): Support %s format specifier for size.
(image-dired-cmd-create-thumbnail-options): Document %s format
specifier.
(image-dired--thumb-size): Rename function from
'image-dired-thumb-size' and make old name into an obsolete alias.
Update all callers.
Stefan Kangas [Sat, 17 Sep 2022 19:06:30 +0000 (21:06 +0200)]
Simplify image-dired-thumbnail-storage customization
* lisp/image/image-dired.el (image-dired-dir): Improve docstring.
(image-dired-thumbnail-storage): Change default to `image-dired',
maintain `use-image-dired-dir' for backwards compatibility.
* lisp/image/image-dired-util.el (image-dired-thumb-name): Handle
above new default value.
Stefan Kangas [Sat, 17 Sep 2022 19:59:47 +0000 (21:59 +0200)]
; * admin/admin.el (make-news-html-file): Fix typo.
Stefan Kangas [Sat, 17 Sep 2022 18:43:20 +0000 (20:43 +0200)]
* lisp/image/image-dired.el: Bump version for Emacs 29.
YAMAMOTO Mitsuharu [Wed, 7 Sep 2022 06:18:21 +0000 (15:18 +0900)]
Fix rare shaping problems with Urdu and Arabic
* src/composite.c (fill_gstring_body): Clear unused slots of the
gstring. (Bug#50951)
Michael Albinus [Sat, 17 Sep 2022 15:50:38 +0000 (17:50 +0200)]
Sync with Tramp 2.5.3.2. Don't merge with master
* doc/misc/tramp.texi (Android shell setup): Rework.
(Frequently Asked Questions): Improve recommendations for speeding up.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.4-pre".
* lisp/net/tramp-adb.el (tramp-methods): Use "%d".
(tramp-adb-handle-directory-files-and-attributes): Fix "." and
".." in listing.
(tramp-adb-handle-file-attributes)
(tramp-adb-handle-directory-files-and-attributes)
(tramp-adb-handle-file-name-all-completions): Pipe "ls" output
through "cat", in order to avoid quoting special characters.
(tramp-adb-maybe-open-connection): Compute args from `tramp-login-args'.
* lisp/net/tramp-compat.el (tramp-compat-replace-regexp-in-region):
New defalias.
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Adapt check for proper remote command.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-handle-make-process): Check for adb device if indicated.
(tramp-get-remote-tmpdir): Cache result in temporary connection
property.
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory)
(tramp-test22-file-times, tramp--test-utf8): Adapt tests.
(tramp--test-shell-file-name): Do not depend on `tramp--test-adb-p'.
(tramp-test46-unload): Ignore autoload functions in
`tramp-file-name' structure tests, since `tramp-file-name-handler'
is also autoloaded in Emacs 29.
Gerd Möllmann [Sun, 11 Sep 2022 09:42:18 +0000 (11:42 +0200)]
Optimize tty display updates (bug#57727)
* src/dispnew.c (update_frame_1): Don'f flush if tty's
output_buffer_size is non-zero.
* src/sysdep.c (init_sys_modes): Setvbuf depending on the tty's
output_buffer_size.
* src/term.c (Ftty__set_output_buffer_size, Ftty__output_buffer_size):
Low-level interface for setting and retrieving a tty's output buffer
size.
(syms_of_term): Defsubr the new functions.
* src/termchar.h (struct tty_display_info): New member
output_buffer_size.
* stc/NEWS: Describe the change.
Michael Albinus [Sat, 17 Sep 2022 13:11:00 +0000 (15:11 +0200)]
Fix recent filenotify-tests changes
* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Use "-P".
* test/lisp/filenotify-tests.el (file-notify-test11-symlinks):
Adapt test.
Lars Ingebrigtsen [Sat, 17 Sep 2022 10:31:24 +0000 (12:31 +0200)]
Autoload string-join
* lisp/emacs-lisp/subr-x.el (string-join): Autoload since it's
being used more now.
Gregory Heytings [Sat, 17 Sep 2022 09:36:38 +0000 (09:36 +0000)]
Further improvements to admin/emake.
* admin/emake: Better parsing of script options. Add a --quieter option,
which removes everything except errors.
Po Lu [Sat, 17 Sep 2022 08:46:26 +0000 (16:46 +0800)]
Fix MPX focus tracking upon frame deletion
* src/xterm.c (x_free_frame_resources): Consider focus change
after.
Eli Zaretskii [Sat, 17 Sep 2022 07:15:14 +0000 (10:15 +0300)]
; Update src/macuvs.h, forgotten in Unicode 15.0 commit.
Eli Zaretskii [Sat, 17 Sep 2022 07:10:10 +0000 (10:10 +0300)]
Fix running spell-checking in remote buffers
* lisp/textmodes/ispell.el (ispell-with-safe-default-directory):
Don't use remote 'default-directory' when running the speller.
(Bug#57649)
समीर सिंह Sameer Singh [Fri, 16 Sep 2022 01:22:51 +0000 (06:52 +0530)]
Update Unicode support to Unicode version 15.0.0 (bug#57846)
* admin/unidata/BidiBrackets.txt
* admin/unidata/BidiMirroring.txt
* admin/unidata/Blocks.txt
* admin/unidata/IVD_Sequences.txt
* admin/unidata/IdnaMappingTable.txt
* admin/unidata/NormalizationTest.txt
* admin/unidata/PropertyValueAliases.txt
* admin/unidata/ScriptExtensions.txt
* admin/unidata/Scripts.txt
* admin/unidata/SpecialCasing.txt
* admin/unidata/UnicodeData.txt
* admin/unidata/confusables.txt
* admin/unidata/copyright.html
* admin/unidata/emoji-data.txt
* admin/unidata/emoji-sequences.txt
* admin/unidata/emoji-test.txt
* admin/unidata/emoji-zwj-sequences.txt
* test/manual/BidiCharacterTest.txt: Updated files from Unicode
15.0.
* admin/unidata/unidata-gen.el (unidata-file-alist): Add new ranges.
* lisp/international/fontset.el (script-representative-chars): Add
new scripts.
(otf-script-alist): Update from latest version.
(setup-default-fontset): Add new scripts.
* lisp/international/characters.el: Update syntax and category
tables for new characters and scripts.
(char-width-table): Update for changes in Unicode 15.0.
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part1)
(ucs-normalize-tests--failing-lines-part2): Update per the test
results.
* doc/lispref/nonascii.texi (Character Properties): Update Unicode
version number.
* etc/NEWS: Announce support for Unicode 15.0.
Stefan Kangas [Sat, 17 Sep 2022 04:30:41 +0000 (06:30 +0200)]
Merge from origin/emacs-28
320f0cac80 ; * etc/NEWS: Fix typo.
5dbe4fa64a Simplify regexp in make-news-html-file
069ffbda09 * admin/admin.el (make-news-html-file): Set id on correct ...
bcc84ac7fe Add version headlines to HTML NEWS export
5d227ae83e ; * etc/NEWS: Fix formatting.
# Conflicts:
# etc/NEWS
Stefan Kangas [Sat, 17 Sep 2022 00:13:27 +0000 (02:13 +0200)]
; * etc/NEWS: Fix typo.
Stefan Kangas [Sat, 17 Sep 2022 00:13:05 +0000 (02:13 +0200)]
Simplify regexp in make-news-html-file
* admin/admin.el (make-news-html-file): Simplify regexp.
Suggested by Mattias Engdegård <mattiase@acm.org>.
Gregory Heytings [Fri, 16 Sep 2022 23:32:31 +0000 (23:32 +0000)]
Various improvements to admin/emake.
* admin/emake: Return the status code of make when the build fails.
Filter the output of emake *clean. Add three options --no-color
(useful for emake check for example), --no-check (useful for quicker
builds during development) and --no-fast.
Stefan Kangas [Fri, 16 Sep 2022 20:37:56 +0000 (22:37 +0200)]
Support XFCE in wallpaper.el
* lisp/image/wallpaper.el (wallpaper--default-commands)
(wallpaper-command): Support XFCE. (Bug#57781)
Thanks to Thierry Volpiatto <thievol@posteo.net>.
Stefan Kangas [Fri, 16 Sep 2022 20:24:20 +0000 (22:24 +0200)]
Accept more wide function signatures in docstrings
* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-ignore-function-signature.el"): New test.
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Make regexp more allowing to silence warning.
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-function-signature.el:
New file.
Stefan Kangas [Fri, 16 Sep 2022 19:54:29 +0000 (21:54 +0200)]
image-dired: Add support for PDF files (Bug#26432)
* lisp/image/image-dired.el
(image-dired--file-name-regexp): New function.
(image-dired-display-thumbnail-original-image): Clean up.
(image-dired-display-image): Support visiting PDF files.
* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs):
* lisp/image/image-dired.el (image-dired-get-thumbnail-image)
(image-dired-show-all-from-dir): Use above new function instead of
'image-file-name-regexp'.
Stefan Kangas [Fri, 16 Sep 2022 19:34:57 +0000 (21:34 +0200)]
image-dired: Print command when debugging
* lisp/image/image-dired-external.el (image-dired-create-thumb-1):
Display command and arguments when debugging.
* lisp/image/image-dired-util.el (image-dired-debug): Rename from
'image-dired-debug-message'.
Stefan Kangas [Fri, 16 Sep 2022 19:27:14 +0000 (21:27 +0200)]
; * lisp/progmodes/cperl-mode.el: Fix typo.
Stefan Kangas [Fri, 16 Sep 2022 19:23:17 +0000 (21:23 +0200)]
; * lisp/progmodes/cperl-mode.el: Fix Author header.
Stefan Kangas [Fri, 16 Sep 2022 19:19:46 +0000 (21:19 +0200)]
Delete mystery code from cperl-mode.el
* lisp/progmodes/cperl-mode.el: Delete commented out code referring to
some 'edit-var-mode-alist' that we don't think is used for anything.
Stefan Kangas [Fri, 16 Sep 2022 19:11:26 +0000 (21:11 +0200)]
Delete some commented out code in cperl-mode.el
The differences between this and the existing `cperl-ps-print-init'
are that some faces had been moved from italic to bold or vice versa,
and that there were some obsolete or non-existent face names
mentioned. So there is no point to keeping it given that it's been
commented out since 1999.
* lisp/progmodes/cperl-mode.el: Delete code commented out since 1999:
a slightly different, duplicate definition of `cperl-ps-print-init'.
Stefan Monnier [Fri, 16 Sep 2022 18:26:13 +0000 (14:26 -0400)]
Fix last occurrence of `font-lock-reference-face`
Well... except for CC-mode.
* lisp/cedet/semantic/grammar.el (semantic-grammar-mode-keywords-1):
Redirect reference to obsolete `font-lock-reference-face` to
`font-lock-constant-face`.
Stefan Kangas [Fri, 16 Sep 2022 17:46:31 +0000 (19:46 +0200)]
* admin/admin.el (make-news-html-file): Set id on correct tag.
Stefan Kangas [Fri, 16 Sep 2022 17:33:02 +0000 (19:33 +0200)]
Add version headlines to HTML NEWS export
This allows linking to, e.g. "NEWS.28.html#28.1" to go directly to
those release notes.
* admin/admin.el (admin--org-export-headers-format)
(make-news-html-file): Add XX.Y version headlines with an HTML anchor.