]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoproject-kill-buffer-conditions: Tweak
Dmitry Gutov [Sat, 5 Nov 2022 00:54:20 +0000 (02:54 +0200)]
project-kill-buffer-conditions: Tweak

* lisp/progmodes/project.el (project-kill-buffer-conditions): Tweak.

2 years ago; Make clang-format handle FOR_EACH_LIVE_BUFFER
Matt Armstrong [Fri, 4 Nov 2022 22:24:57 +0000 (15:24 -0700)]
; Make clang-format handle FOR_EACH_LIVE_BUFFER

* .clang-format (ForEachMacros): Add
FOR_EACH_LIVE_BUFFER.  (Bug#59027)

2 years agoConfigure clang-format to use tabs
Matt Armstrong [Thu, 3 Nov 2022 21:34:03 +0000 (14:34 -0700)]
Configure clang-format to use tabs

* .clang-format (UseTab): Set to "Always", to match
the (indent-tabs-mode . t) in .dir-locals.el.  (Bug#59027)

2 years agoPrint "decrypted" rot13 text is buffer is read-only
Philip Kaludercic [Fri, 28 Oct 2022 17:44:47 +0000 (19:44 +0200)]
Print "decrypted" rot13 text is buffer is read-only

* lisp/rot13.el (rot13-region): Add fallback if buffer is read-only
* doc/emacs/rmail.texi (Rmail Rot13): Document new behaviour.

2 years ago* lisp/net/rcirc.el (rcirc-print): Replace misjudged assertion
Philip Kaludercic [Fri, 4 Nov 2022 22:06:11 +0000 (23:06 +0100)]
* lisp/net/rcirc.el (rcirc-print): Replace misjudged assertion

2 years ago* lisp/textmodes/css-mode.el (css-mode-map): Prefer defvar-keymap.
Stefan Kangas [Fri, 4 Nov 2022 19:26:01 +0000 (20:26 +0100)]
* lisp/textmodes/css-mode.el (css-mode-map): Prefer defvar-keymap.

2 years ago* lisp/dired-aux.el (dired-check-process): Use progress reporter.
Stefan Kangas [Fri, 4 Nov 2022 19:23:55 +0000 (20:23 +0100)]
* lisp/dired-aux.el (dired-check-process): Use progress reporter.

2 years ago; package-vc: Pacify byte-compiler
Stefan Kangas [Fri, 4 Nov 2022 19:15:42 +0000 (20:15 +0100)]
; package-vc: Pacify byte-compiler

* lisp/emacs-lisp/package-vc.el (package-vc-selected-packages):
Declare.

2 years agoUse progress reporter in cpp.el
Stefan Kangas [Fri, 4 Nov 2022 15:25:21 +0000 (16:25 +0100)]
Use progress reporter in cpp.el

* lisp/progmodes/cpp.el (cpp-highlight-buffer): Use progress
reporter.
(cpp-progress-time, cpp-progress-message): Make obsolete in favor
of 'make-progress-reporter'.
(cpp-message-min-time-interval): Doc fix.

2 years ago* lisp/progmodes/cpp.el (cpp-edit-mode-map): Prefer defvar-keymap.
Stefan Kangas [Fri, 4 Nov 2022 14:38:41 +0000 (15:38 +0100)]
* lisp/progmodes/cpp.el (cpp-edit-mode-map): Prefer defvar-keymap.

2 years agoPacify gcc -Wanalyzer-null-dereference
Paul Eggert [Fri, 4 Nov 2022 18:00:49 +0000 (11:00 -0700)]
Pacify gcc -Wanalyzer-null-dereference

This is for gcc 12.2.1 20220819 (Red Hat 12.2.1-2) x86-64
when Emacs is configured with --enable-gcc-warnings.
* src/buffer.c (Fmove_overlay): Prefer BASE_EQ to EQ in a place
where they’re equivalent because the only symbol allowed here is nil.

2 years agoMerge branch 'feature/package+vc'
Philip Kaludercic [Fri, 4 Nov 2022 17:57:45 +0000 (18:57 +0100)]
Merge branch 'feature/package+vc'

2 years ago* lisp/emacs-lisp/package-vc.el: Expand commentary feature/package+vc
Philip Kaludercic [Fri, 4 Nov 2022 17:53:02 +0000 (18:53 +0100)]
* lisp/emacs-lisp/package-vc.el: Expand commentary

2 years ago; * lisp/emacs-lisp/package-vc.el (package-vc): Add missing :prefix
Philip Kaludercic [Fri, 4 Nov 2022 17:19:01 +0000 (18:19 +0100)]
; * lisp/emacs-lisp/package-vc.el (package-vc): Add missing :prefix

2 years agoLink to Manual from the package-vc group
Philip Kaludercic [Fri, 4 Nov 2022 17:17:45 +0000 (18:17 +0100)]
Link to Manual from the package-vc group

* lisp/emacs-lisp/package-vc.el (package-vc): Add 'custom-manual'
link.

2 years ago; * doc/emacs/package.texi: Rename to "Fetching Package Sources"
Philip Kaludercic [Fri, 4 Nov 2022 17:17:02 +0000 (18:17 +0100)]
; * doc/emacs/package.texi: Rename to "Fetching Package Sources"

2 years agoDocument 'package-vc-selected-packages'
Philip Kaludercic [Fri, 4 Nov 2022 17:04:35 +0000 (18:04 +0100)]
Document 'package-vc-selected-packages'

* doc/emacs/package.texi: Expand documentation and give example.
* etc/NEWS: Mention 'package-vc-selected-packages'.
* lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Remove
function.
(package-vc-ensure-packages): Add function based on
'package-vc--select-packages'.
(package-vc-selected-packages): Call 'package-vc-ensure-packages' from
custom setter.

2 years ago* lisp/simple.el (function-documentation): Fix bug#59014
Stefan Monnier [Fri, 4 Nov 2022 15:59:51 +0000 (11:59 -0400)]
* lisp/simple.el (function-documentation): Fix bug#59014

2 years agoFix calling file name handler for `load'.
Michael Albinus [Fri, 4 Nov 2022 14:39:58 +0000 (15:39 +0100)]
Fix calling file name handler for `load'.

* lisp/net/ange-ftp.el (ange-ftp-load): Add MUST-SUFFIX argument.

* lisp/net/tramp.el (tramp-handle-load): Adapt MUST_SUFFIX test.

* src/lread.c (Fload): Call handler with must_suffix.

* test/lisp/net/tramp-tests.el (tramp-test27-load): Extend test.

2 years agoNormalize some syntax table definitions
Stefan Kangas [Fri, 4 Nov 2022 14:00:02 +0000 (15:00 +0100)]
Normalize some syntax table definitions

* lisp/nxml/rng-cmpct.el (rng-c-syntax-table):
* lisp/progmodes/cperl-mode.el (cperl-mode-syntax-table)
(cperl-string-syntax-table2):
* lisp/progmodes/dcl-mode.el (dcl-mode-syntax-table): Normalize
definitions to better follow modern ELisp conventions.

2 years ago* lisp/progmodes/dcl-mode.el (dcl-mode-map): Prefer defvar-keymap.
Stefan Kangas [Fri, 4 Nov 2022 13:30:48 +0000 (14:30 +0100)]
* lisp/progmodes/dcl-mode.el (dcl-mode-map): Prefer defvar-keymap.

2 years ago* admin/authors.el: Don't recommend deprecated fgrep.
Stefan Kangas [Thu, 3 Nov 2022 15:58:17 +0000 (16:58 +0100)]
* admin/authors.el: Don't recommend deprecated fgrep.

2 years ago; * lisp/progmodes/project.el (project-buffers): Doc fix.
Eli Zaretskii [Fri, 4 Nov 2022 13:56:30 +0000 (15:56 +0200)]
; * lisp/progmodes/project.el (project-buffers): Doc fix.

2 years agoFix manual noverlay tests
Basil L. Contovounesios [Wed, 2 Nov 2022 01:52:16 +0000 (03:52 +0200)]
Fix manual noverlay tests

* test/manual/noverlay/Makefile.in: Add copyright notice.
(LIBS): Rename...
(PACKAGES): ...to this, to avoid confusion with Autoconf's LIBS.
All uses changed.
(CFLAGS): Break out -I flag...
(CPPFLAGS): ...into this new variable.
(LDFLAGS): Rename...
(LDLIBS): ...to this, which is expected to hold -l flags.
(top_builddir): New variable.
(EMACS): Define in terms of it.
(.PHONY): Add clean, distclean, and perf targets.
(have-libcheck): Remove redundant target.  All uses updated.
(itree-tests.o): Remove redundant dependency on its source file.
(itree-tests): Remove redundant (and uncompilable) rule.

* test/manual/noverlay/check-sanitize.sh: Use /usr/bin/env.  Add
copyright notice.  Enable pipefail option, to propagate itree-tests
exit status to caller.  Fix typo in usage message.  Strip less
information from Check's error messages.

* test/manual/noverlay/emacs-compat.h: Add copyright notice.
Include stdlib.h.
(emacs_abort, eassert): Consistently use EXIT_FAILURE.
(eassume): Define when necessary.

* test/manual/noverlay/itree-tests.c: Add copyright notice.  Include
standard headers before third-party ones.  Use most narrowly
applicable ck_assert* macro for the types being checked,
e.g. ck_assert_ptr_* macros for pointer values.  Replace removed
names and APIs with current ones, e.g. the itree_node field 'color'
is now called 'red'.  Ensure preconditions of itree API are
satisfied before use, e.g. itree_node otick being set appropriately
before insertion, or global iterator being initialized
before (implicit) use (bug#58976).  Make all functions static.
(DEF_TEST_SETUP): Remove all instances, replacing with...
(test_insert1_setup, test_insert2_setup, test_remove1_setup)
(test_remove2_setup): ...these new test fixtures.
(A, B, C, D, E, N_05, N_10, N_15, N_20, N_30, N_40, N_50, N_70)
(N_80, N_90, N_85, N_95): Define as static variables rather than
macros.
(test_get_tree4): Remove, inlining salient parts.
(shuffle): Move closer to users.
(test_create_tree): Accept itree_nodes as argument instead of
dynamically allocating them.  All callers changed.
(FOREACH): Remove unused macro.
(N_BEG, N_END): Define in terms of itree_node_begin and
itree_node_end, respectively.
(test_gap_insert_1, test_gap_insert_2, test_gap_insert_3)
(test_gap_insert_5, test_gap_insert_7, test_gap_insert_11): Use
test_setup_gap_node_noadvance.
(basic_suite): Group unit tests into test cases and fixtures.  Run
previously forgotten test_insert_14.
(main): Run suite as CK_ENV to allow specifying desired verbosity in
the environment.

2 years agoAvoid using too up-to-date values when restoring valuators
Po Lu [Fri, 4 Nov 2022 11:21:22 +0000 (19:21 +0800)]
Avoid using too up-to-date values when restoring valuators

* src/xterm.c (xi_has_scroll_valuators): New function.
(xi_handle_device_changed): If the device changed event provides
scroll valuators, then use the values in there.  (bug#58980)

2 years ago; Minor rephrase
Dmitry Gutov [Fri, 4 Nov 2022 10:40:50 +0000 (12:40 +0200)]
; Minor rephrase

2 years ago; * lisp/subr.el (setq-local): Fix last doc change.
Eli Zaretskii [Fri, 4 Nov 2022 07:49:48 +0000 (09:49 +0200)]
; * lisp/subr.el (setq-local): Fix last doc change.

2 years ago* lisp/tab-bar.el (tab-bar-fixed-width): New user option.
Juri Linkov [Fri, 4 Nov 2022 07:47:06 +0000 (09:47 +0200)]
* lisp/tab-bar.el (tab-bar-fixed-width): New user option.

(tab-bar-fixed-width-max): New user option.
(tab-bar-fixed-width-min): New variable.
(tab-bar-fixed-width-faces): New variable.
(tab-bar--fixed-width-hash): New function.
(tab-bar-make-keymap-1): Use 'tab-bar-fixed-width'.

https://lists.gnu.org/archive/html/emacs-devel/2022-10/msg02067.html

2 years ago; * lisp/emacs-lisp/oclosure.el: Fix typos.
Juanma Barranquero [Fri, 4 Nov 2022 07:41:43 +0000 (08:41 +0100)]
; * lisp/emacs-lisp/oclosure.el: Fix typos.

2 years ago; * lisp/subr.el (setq-local): Doc fix.
Juanma Barranquero [Fri, 4 Nov 2022 06:04:39 +0000 (07:04 +0100)]
; * lisp/subr.el (setq-local): Doc fix.

2 years ago; * etc/NEWS.27, etc/NEWS.28: Fix typos.
Juanma Barranquero [Fri, 4 Nov 2022 05:54:07 +0000 (06:54 +0100)]
; * etc/NEWS.27, etc/NEWS.28: Fix typos.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 4 Nov 2022 05:31:49 +0000 (06:31 +0100)]
Merge from origin/emacs-28

8cae9d8bd8 ; * doc/emacs/search.texi (Lax Search): Improve wording.  ...
e01e8a8f84 ; * lisp/dired-aux.el (dired-show-file-type): Doc fix.

2 years agoitree.c: Minor tightening
Stefan Monnier [Fri, 4 Nov 2022 03:16:12 +0000 (23:16 -0400)]
itree.c: Minor tightening

* src/itree.c (iter): Initialize to NULL.
(init_itree): Make sure it's not allocated before we overwrite it.
(itree_insert_gap): Tweak the end-loop.

2 years agoitree: Reproduce markers's behavior more faithfully (bug#58928)
Stefan Monnier [Fri, 4 Nov 2022 02:44:55 +0000 (22:44 -0400)]
itree: Reproduce markers's behavior more faithfully (bug#58928)

The most obvious problem was the lack of support for
`insert-before-markers`, but the behavior was also different in a few
other cases.

* src/itree.h (itree_insert_gap):
* src/itree.c (itree_insert_gap): Add `before_markers` arg.
* src/lisp.h (adjust_overlays_for_insert):
* src/buffer.c (adjust_overlays_for_insert): Add `before_markers` arg.

* src/insdel.c (adjust_markers_for_replace, adjust_markers_for_insert)
(adjust_markers_for_delete): Adjust overlays directly from here.
(insert_1_both, insert_from_string_1, insert_from_gap)
(insert_from_buffer_1, adjust_after_replace, replace_range)
(replace_range_2, del_range_2): Don't adjust overlays explicitly here
any more.

* test/src/buffer-tests.el (test-overlay-insert-before-markers-empty)
(test-overlay-insert-before-markers-non-empty): New tests.

2 years agoproject-buffers: Describe the default implementation
Dmitry Gutov [Fri, 4 Nov 2022 01:16:36 +0000 (03:16 +0200)]
project-buffers: Describe the default implementation

* lisp/progmodes/project.el (project-buffers):
Describe what the default implementation is doing (bug#58784).

2 years agoproject-kill-buffer-conditions: Skip Gnus modes as well
Dmitry Gutov [Fri, 4 Nov 2022 01:03:29 +0000 (03:03 +0200)]
project-kill-buffer-conditions: Skip Gnus modes as well

* lisp/progmodes/project.el (project-kill-buffer-conditions):
Skip Gnus modes as well (bug#58839).

2 years agoproject-kill-buffer-conditions: Skip hidden ones
Dmitry Gutov [Fri, 4 Nov 2022 00:58:58 +0000 (02:58 +0200)]
project-kill-buffer-conditions: Skip hidden ones

* lisp/progmodes/project.el (project-kill-buffer-conditions):
Make exception for "hidden" buffers (bug#58839).

2 years agoFix initialization of scroll valuator emacs_value
Po Lu [Fri, 4 Nov 2022 00:29:02 +0000 (08:29 +0800)]
Fix initialization of scroll valuator emacs_value

* src/xterm.c (xi_handle_device_changed): Initialize emacs_value
to 0, not DBL_MIN.  (bug#58980)

2 years agoAutoload all entry functions
Philip Kaludercic [Thu, 3 Nov 2022 22:15:12 +0000 (23:15 +0100)]
Autoload all entry functions

2 years agoOnly strip newlines when stringifying a value for Eshell
Jim Porter [Mon, 19 Sep 2022 00:42:09 +0000 (17:42 -0700)]
Only strip newlines when stringifying a value for Eshell

* lisp/eshell/esh-util.el (eshell-stringify): Use 'string-trim-right'
instead of stripping the last character of the result of
'pp-to-string' (bug#58810).

* test/lisp/eshell/esh-util-tests.el: New file.

2 years ago; Mention that 'package-vc-checkout' open a directory
Philip Kaludercic [Thu, 3 Nov 2022 18:41:46 +0000 (19:41 +0100)]
; Mention that 'package-vc-checkout' open a directory

* lisp/emacs-lisp/package-vc.el (package-vc-checkout): Mention it in
the docstring.

2 years ago; Explicitly mark internal functions as such
Philip Kaludercic [Thu, 3 Nov 2022 18:38:34 +0000 (19:38 +0100)]
; Explicitly mark internal functions as such

2 years ago* lisp/emacs-lisp/package-vc.el (package-vc-version): Use main file
Philip Kaludercic [Thu, 3 Nov 2022 18:28:47 +0000 (19:28 +0100)]
* lisp/emacs-lisp/package-vc.el (package-vc-version): Use main file

2 years agoAdd command 'package-vc-checkout'
Philip Kaludercic [Thu, 3 Nov 2022 18:26:21 +0000 (19:26 +0100)]
Add command 'package-vc-checkout'

* doc/emacs/package.texi: Document feature.
* etc/NEWS: Mention feature.
* lisp/emacs-lisp/package-vc.el (package-vc-clone): Extract
functionality out of 'package-vc-unpack'.
(package-vc-unpack): Extract functionality out to 'package-vc-clone'.
(package-vc-checkout): Add command.

2 years agoImprove suppression of bogus macOS warnings
Paul Eggert [Thu, 3 Nov 2022 18:09:53 +0000 (11:09 -0700)]
Improve suppression of bogus macOS warnings

* configure.ac: On macOS, always use -Wno-deprecated-declarations,
as the false alarms appear even if --disable-gcc-warnings is given
(Bug#58966).

2 years ago; * doc/emacs/search.texi (Lax Search): Improve wording. (Bug#58992)
Eli Zaretskii [Thu, 3 Nov 2022 18:02:00 +0000 (20:02 +0200)]
; * doc/emacs/search.texi (Lax Search): Improve wording.  (Bug#58992)

2 years agoFix overlays order in Flyspell (bug#58970)
Juri Linkov [Thu, 3 Nov 2022 17:35:45 +0000 (19:35 +0200)]
Fix overlays order in Flyspell (bug#58970)

Flyspell relies on the sorting order of overlays from 'overlays-in'
that returned the overlays sorted by decreased 'overlay-start'.
But after the recent merge of the noverlay branch, the order was reversed.
So need to change the order back to the expected by Flyspell.

* lisp/textmodes/flyspell.el (flyspell-auto-correct-previous-word):
Sort overlays returned from 'overlays-in' descending by 'overlay-start'.

2 years agoPort interval trees to --enable-checking=structs
Basil L. Contovounesios [Wed, 2 Nov 2022 01:50:38 +0000 (03:50 +0200)]
Port interval trees to --enable-checking=structs

Some names under the interval_* namespace were renamed under the
itree_* namespace in commits:

  0. f421b58db5 of 2022-10-19
  "Prefix all itree.h type names with itree_".
  1. 37a1145410 of 2022-10-19
  "Rename all exported itree.h functions with the itree_ prefix"

Further, some values still referenced in commentary were removed in
commits:

  2. 258e618364 of 2022-10-17
  "Delete the itree_null sentinel node, use NULL everywhere."
  3. 2c4a3910b3 of 2022-10-02
  "itree: Use a single iterator object"

* src/emacs.c (main): Allocate global itree iterator once and for
all.
* src/alloc.c (mark_overlay):
* src/buffer.c (set_overlays_multibyte):
* src/itree.c (itree_destroy): Update commentary.
(interval_stack_ensure_space, itree_insert_gap): Prefer
unsigned-to-unsigned comparisons over signed-to-unsigned.
(interval_stack_push_flagged, interval_tree_insert)
(interval_tree_contains, itree_iterator_start)
(itree_iterator_finish, itree_iterator_next, itree_iterator_narrow):
Improve assertions.
(itree_init): Rename...
(init_itree): ...to this, for consistency with other global init
functions.
(itree_create): Stop leaking a global iterator allocation on each
call.
(interval_tree_init): Complete renames of
interval_tree -> itree_tree and interval_tree_clear -> itree_clear.
(interval_tree_remove_fix): Fix indentation.
* src/itree.h: Declare init_itree.
(ITREE_FOREACH): Fix typo in commentary.

* src/pdumper.c [CHECK_STRUCTS]
(dump_interval_node): Use the correct name in the HASH condition
and #error message.
(dump_overlay, dump_buffer): Update HASH (bug#58975).

2 years ago* src/gnutls.c (Fgnutls_available_p): Avoid duplicating capabilities.
Juanma Barranquero [Thu, 3 Nov 2022 13:41:28 +0000 (14:41 +0100)]
* src/gnutls.c (Fgnutls_available_p): Avoid duplicating capabilities.

2 years agoPrefer defvar-keymap in profiler.el
Stefan Kangas [Wed, 2 Nov 2022 14:43:35 +0000 (15:43 +0100)]
Prefer defvar-keymap in profiler.el

* lisp/profiler.el (profiler-report-mode-map): Prefer
defvar-keymap.

2 years ago; * emoji.el (emoji--define-transient): Adapt to recent changes in transient.
Jonas Bernoulli [Wed, 2 Nov 2022 22:33:59 +0000 (23:33 +0100)]
; * emoji.el (emoji--define-transient): Adapt to recent changes in transient.

2 years agoFurther simplify valuator reset code
Po Lu [Thu, 3 Nov 2022 11:27:24 +0000 (19:27 +0800)]
Further simplify valuator reset code

* src/xterm.c (xi_reset_scroll_valuators_for_device_id): Minor
style adjustments.
(handle_one_xevent): Don't check frames; reset on all XI_Enter
and XI_Leave events.

2 years ago; * lisp/dired-aux.el (dired-show-file-type): Doc fix.
Eli Zaretskii [Thu, 3 Nov 2022 09:59:30 +0000 (11:59 +0200)]
; * lisp/dired-aux.el (dired-show-file-type): Doc fix.

2 years agoSuppress deprecation warnings on macOS (bug#58966)
Gerd Möllmann [Thu, 3 Nov 2022 09:39:37 +0000 (10:39 +0100)]
Suppress deprecation warnings on macOS (bug#58966)

* configure.ac (CHECK_LISP_OBJECT_TYPE): Add
-Wno-deprecated-declarations for darwin.

2 years agoFix 'text-property-search-backward' with 1-char long properties
Eli Zaretskii [Thu, 3 Nov 2022 09:25:50 +0000 (11:25 +0200)]
Fix 'text-property-search-backward' with 1-char long properties

* lisp/emacs-lisp/text-property-search.el
(text-property--find-end-backward): Don't miss the end of
text-property value at point.  This fixes searches backward when
the property is on a single character position.  (Bug#58937)

2 years ago; Fix a typo in Eglot manual
dannyfreeman [Wed, 2 Nov 2022 17:24:30 +0000 (13:24 -0400)]
; Fix a typo in Eglot manual

* doc/mist/eglot.texi (Customizing Eglot): 'flymake-error' face
mistakenly appears twice.  (Bug#58969)

2 years ago; * doc/lispref/control.texi (Generators): Fix typo.
Juanma Barranquero [Thu, 3 Nov 2022 02:49:08 +0000 (03:49 +0100)]
; * doc/lispref/control.texi (Generators): Fix typo.

2 years agoInitialize child signal handling before posix_spawn too.
Paul Eggert [Wed, 2 Nov 2022 20:24:26 +0000 (13:24 -0700)]
Initialize child signal handling before posix_spawn too.

Problem reported by Tino Calancha (Bug#58960).
* src/callproc.c (call_process): Initialize SIGCHLD handling
before possibly creating a child with emacs_span.  This need not
be in the critical section that calls emacs_spawn, so do it
outside the critical section.
* src/process.c (child_signal_init): Now extern.

2 years ago; Fix typo
Juri Linkov [Wed, 2 Nov 2022 18:36:49 +0000 (20:36 +0200)]
; Fix typo

2 years agoAdd the parameter :noquery to open-network-stream (bug#58948)
Juri Linkov [Wed, 2 Nov 2022 18:22:10 +0000 (20:22 +0200)]
Add the parameter :noquery to open-network-stream (bug#58948)

* doc/lispref/processes.texi (Network): Add :noquery for open-network-stream.

* lisp/net/network-stream.el (open-network-stream): Pass the
parameter :noquery to make-network-process.  Doc fix.

* lisp/progmodes/eglot.el (eglot--connect): Pass `:noquery t' to
eglot--inferior-bootstrap to use in open-network-stream call, like
`:noquery t' is passed to make-process in other places.

2 years ago; * doc/misc/cl.texi (Mapping over Sequences): Fix typos.
Juanma Barranquero [Wed, 2 Nov 2022 16:19:46 +0000 (17:19 +0100)]
; * doc/misc/cl.texi (Mapping over Sequences): Fix typos.

2 years ago; Update TODO section
Philip Kaludercic [Wed, 2 Nov 2022 16:16:39 +0000 (17:16 +0100)]
; Update TODO section

2 years ago; * admin/git-bisect-start: Improve commentary.
Gregory Heytings [Wed, 2 Nov 2022 14:20:39 +0000 (14:20 +0000)]
; * admin/git-bisect-start: Improve commentary.

2 years ago* lisp/man.el (Man-mode-map): Prefer defvar-keymap.
Stefan Kangas [Wed, 2 Nov 2022 14:06:43 +0000 (15:06 +0100)]
* lisp/man.el (Man-mode-map): Prefer defvar-keymap.

2 years ago; * admin/git-bisect-start: Improve commentary.
Eli Zaretskii [Wed, 2 Nov 2022 13:47:58 +0000 (15:47 +0200)]
; * admin/git-bisect-start: Improve commentary.

2 years ago; * admin/git-bisect-start: Use a full reference.
Gregory Heytings [Wed, 2 Nov 2022 13:07:09 +0000 (13:07 +0000)]
; * admin/git-bisect-start: Use a full reference.

2 years ago; Handle case that was forgotten in the last commit
Philip Kaludercic [Wed, 2 Nov 2022 12:58:14 +0000 (13:58 +0100)]
; Handle case that was forgotten in the last commit

2 years agoTrack file name in 'package--downloads-in-progress'
Philip Kaludercic [Wed, 2 Nov 2022 10:56:42 +0000 (11:56 +0100)]
Track file name in 'package--downloads-in-progress'

* lisp/emacs-lisp/package.el (package--download-one-archive): Move
'cl-pushnew' call from 'package--download-one-archive' and cons file
name onto the archive.
(package--download-one-archive): Cons the file name onto the archive.
(package--download-and-read-archives): Remove 'cl-pushnew' call.

2 years agoImprove commentary in some parts of xterm.c
Po Lu [Wed, 2 Nov 2022 10:27:16 +0000 (18:27 +0800)]
Improve commentary in some parts of xterm.c

* src/xterm.c (x_probe_xfixes_extension): Rename to
`x_fixes_pointer_blanking_supported', as fixes is now used for
selection tracking as well.  All callers changed.
(x_focus_changed): Document where this code is used.

2 years ago; Replace 'let*' with 'let' where possible
Philip Kaludercic [Wed, 2 Nov 2022 09:15:28 +0000 (10:15 +0100)]
; Replace 'let*' with 'let' where possible

* lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Do it.
(package-vc--read-archive-data): Do it.

2 years agoRemove unused local in simple_search
Paul Eggert [Wed, 2 Nov 2022 06:03:25 +0000 (23:03 -0700)]
Remove unused local in simple_search

* src/search.c (simple_search): Remove unused local.

2 years agosrc/buffer.c: Fix interaction between overlays & indirect buffers (bug#58928)
Stefan Monnier [Wed, 2 Nov 2022 01:38:55 +0000 (21:38 -0400)]
src/buffer.c: Fix interaction between overlays & indirect buffers (bug#58928)

* src/buffer.c (adjust_overlays_for_insert)
(adjust_overlays_for_delete): Repeat for all buffers sharing the same text.

* src/itree.c (itree_insert_gap, itree_delete_gap): Allow an empty tree.

* test/src/buffer-tests.el (buffer-tests--overlays-indirect-bug58928):
New test.

2 years agoproject-switch-project: Avoid altering default-directory in cb
Dmitry Gutov [Tue, 1 Nov 2022 23:30:08 +0000 (01:30 +0200)]
project-switch-project: Avoid altering default-directory in cb

* lisp/progmodes/project.el (project-switch-project):
Avoid altering default-directory in the current buffer, even
temporarily (bug#58784).

2 years agovc-svn-ignore-completion-table: Ignore empty lines
Dmitry Gutov [Tue, 1 Nov 2022 22:46:02 +0000 (00:46 +0200)]
vc-svn-ignore-completion-table: Ignore empty lines

* lisp/vc/vc-svn.el (vc-svn-ignore-completion-table):
Make sure to ignore empty lines (bug#58889).

2 years agoAdd a script to ease bisecting.
Gregory Heytings [Tue, 1 Nov 2022 18:20:00 +0000 (18:20 +0000)]
Add a script to ease bisecting.

* admin/git-bisect-start: New script.

* admin/notes/repo (Bisecting): Mention the script.

* admin/emake: Add a Copyright blurb.

2 years ago* lisp/net/dbus.el (dbus-debug): Declare. (Bug#58865)
Michael Albinus [Tue, 1 Nov 2022 15:35:40 +0000 (16:35 +0100)]
* lisp/net/dbus.el (dbus-debug): Declare.  (Bug#58865)

2 years agoEnsure 'package-vc-update' runs 'package-vc-unpack-1' only once
Philip Kaludercic [Tue, 1 Nov 2022 15:35:23 +0000 (16:35 +0100)]
Ensure 'package-vc-update' runs 'package-vc-unpack-1' only once

* lisp/emacs-lisp/package-vc.el (package-vc-update): Use
'vc-sourced-packages-list' and other hacks.

2 years ago* src/xterm.c (x_term_init): Fix last change.
Po Lu [Tue, 1 Nov 2022 11:20:03 +0000 (19:20 +0800)]
* src/xterm.c (x_term_init): Fix last change.

2 years agoFix leak on Lucid build
Po Lu [Tue, 1 Nov 2022 11:11:19 +0000 (19:11 +0800)]
Fix leak on Lucid build

* src/xterm.c (x_term_init): Rectify wrong fix for bug#18403.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 1 Nov 2022 09:30:09 +0000 (10:30 +0100)]
Merge from origin/emacs-28

1862df834c ; * src/search.c (Fmatch_data): Doc fix.
15fc5225b1 ; * lisp/whitespace.el (whitespace-trailing): Fix a typo.
9f3c896f7c ; * doc/emacs/text.texi (Quotation Marks): Typo fix.  (Bug...

# Conflicts:
# src/search.c

2 years ago; Mention git bisect's --first-parent in admin/notes/repo
Gerd Möllmann [Tue, 1 Nov 2022 09:25:28 +0000 (10:25 +0100)]
; Mention git bisect's --first-parent in admin/notes/repo

2 years agoPreven a buffer-overflow (bug#58850)
Gerd Möllmann [Tue, 1 Nov 2022 09:14:07 +0000 (10:14 +0100)]
Preven a buffer-overflow (bug#58850)

* src/print.c (print_vectorlike): Don't use sprintf.

2 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Tue, 1 Nov 2022 05:00:54 +0000 (06:00 +0100)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2022-10-29 17:48:52 UTC.

2 years agoFix leaks of XImage structures in image.c
Po Lu [Tue, 1 Nov 2022 04:51:38 +0000 (12:51 +0800)]
Fix leaks of XImage structures in image.c

* src/image.c (image_clear_image, lookup_image): Fix coding
style.
(x_destroy_x_image): Remove unnecessary assertion.  Call
XDestroyImage, since otherwise only the image data is freed.
(image_from_emacs_colors): Rename variables to make more sense.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Tue, 1 Nov 2022 04:07:50 +0000 (05:07 +0100)]
; Auto-commit of loaddefs files.

2 years agoFix eglot-shutdown-all: Match current eglot-shutdown signature
Stephen Leake [Tue, 1 Nov 2022 00:30:02 +0000 (17:30 -0700)]
Fix eglot-shutdown-all: Match current eglot-shutdown signature

2 years agoFix tramp-handle-file-newer-than-file-p
Michael Albinus [Mon, 31 Oct 2022 15:48:15 +0000 (16:48 +0100)]
Fix tramp-handle-file-newer-than-file-p

* lisp/net/tramp.el (tramp-handle-file-newer-than-file-p): Don't use
fractions of seconds.  (Bug#58842)

2 years agoPrefer defvar-keymap in cus-edit.el
Stefan Kangas [Mon, 31 Oct 2022 15:42:26 +0000 (16:42 +0100)]
Prefer defvar-keymap in cus-edit.el

* lisp/cus-edit.el (custom-mode-map, custom-mode-link-map): Prefer
defvar-keymap.

2 years ago* lisp/emacs-lisp/multisession.el: Add Commentary. (Bug#58845)
Stefan Kangas [Mon, 31 Oct 2022 14:28:36 +0000 (15:28 +0100)]
* lisp/emacs-lisp/multisession.el: Add Commentary.  (Bug#58845)

2 years ago* lisp/vcursor.el (vcursor-map): Prefer defvar-keymap.
Stefan Kangas [Mon, 31 Oct 2022 14:19:32 +0000 (15:19 +0100)]
* lisp/vcursor.el (vcursor-map): Prefer defvar-keymap.

2 years ago; Avoid loading package-vc in 'package-load-descriptor'
Philip Kaludercic [Mon, 31 Oct 2022 09:51:40 +0000 (10:51 +0100)]
; Avoid loading package-vc in 'package-load-descriptor'

* lisp/emacs-lisp/package.el (package-load-descriptor): Remove the
:commit check.

The property is mostly unused anyway, and this unnecessarily slows
down initialisation if a package is installed from source.

2 years ago; Actually check if NAME-OR-URL is a string
Philip Kaludercic [Mon, 31 Oct 2022 08:59:48 +0000 (09:59 +0100)]
; Actually check if NAME-OR-URL is a string

* lisp/emacs-lisp/package-vc.el (package-vc-install): Use stringp as
predicate instead of binding it as a variable.

2 years agoAllow specifying and pinning source packages to be installed
Philip Kaludercic [Mon, 31 Oct 2022 08:58:37 +0000 (09:58 +0100)]
Allow specifying and pinning source packages to be installed

* lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Add
custom setter for 'package-vc-selected-packages'.
(package-vc-selected-packages): Add user option.

2 years agoFix semantic-symref-perform-search when dir contains a space
Dmitry Gutov [Mon, 31 Oct 2022 00:51:14 +0000 (02:51 +0200)]
Fix semantic-symref-perform-search when dir contains a space

* lisp/cedet/semantic/symref/grep.el (semantic-symref-grep--local-dir):
New variable.
(semantic-symref-perform-search): Use it.  And use "." when
expanding the template to substitute for the current dir.
(semantic-symref-parse-tool-output-one-line): Use it (bug#55016)

2 years agoSpeed up vc-default-checkin-patch a little
Dmitry Gutov [Mon, 31 Oct 2022 00:48:16 +0000 (02:48 +0200)]
Speed up vc-default-checkin-patch a little

* lisp/vc/vc.el (vc-default-checkin-patch): Drop some
'revert-buffer' calls to speed up the process a little (bug#52349).

2 years agoPrefer defvar-keymap in simula.el
Stefan Kangas [Sun, 30 Oct 2022 20:30:41 +0000 (21:30 +0100)]
Prefer defvar-keymap in simula.el

* lisp/progmodes/simula.el (simula-mode-map): Prefer
defvar-keymap.

2 years ago; Delete duplicate definition from simula.el
Stefan Kangas [Sun, 30 Oct 2022 20:26:45 +0000 (21:26 +0100)]
; Delete duplicate definition from simula.el

* lisp/progmodes/simula.el (simula-mode-menu): Delete duplicate
menu definition.

2 years ago; Update TODO section
Philip Kaludercic [Sun, 30 Oct 2022 20:12:48 +0000 (21:12 +0100)]
; Update TODO section

2 years ago; * src/search.c (Fmatch_data): Doc fix.
Eli Zaretskii [Sun, 30 Oct 2022 17:57:14 +0000 (19:57 +0200)]
; * src/search.c (Fmatch_data): Doc fix.

2 years agoMerge remote-tracking branch 'origin/master' into feature/package+vc
Philip Kaludercic [Sun, 30 Oct 2022 17:45:37 +0000 (18:45 +0100)]
Merge remote-tracking branch 'origin/master' into feature/package+vc